84 const uint32_t c1 = uint32_t(this->
prom_[0]);
85 const uint32_t c2 = uint32_t(this->
prom_[1]);
86 const uint16_t c3 = uint16_t(this->
prom_[2]);
87 const uint16_t c4 = uint16_t(this->
prom_[3]);
88 const int32_t c5 = int32_t(this->
prom_[4]);
89 const uint16_t c6 = uint16_t(this->
prom_[5]);
90 const uint32_t d1 = raw_pressure;
91 const int32_t d2 = raw_temperature;
94 const int64_t dt = d2 - (c5 << 8);
95 int32_t temp = (2000 + ((dt * c6) >> 23));
97 int64_t off = (c2 << 16) + ((dt * c4) >> 7);
98 int64_t sens = (c1 << 15) + ((dt * c3) >> 8);
101 const int32_t t2 = (dt * dt) >> 31;
102 int32_t off2 = ((5 * (temp - 2000) * (temp - 2000)) >> 1);
103 int32_t sens2 = ((5 * (temp - 2000) * (temp - 2000)) >> 2);
105 off2 = (off2 + 7 * (temp + 1500) * (temp + 1500));
106 sens2 = sens2 + ((11 * (temp + 1500) * (temp + 1500)) >> 1);
116 const int32_t p = ((((d1 * sens) >> 21) - off) >> 15);