Searched refs:lsb (Results 1 – 1 of 1) sorted by relevance
202 uint8_t msb = 0, csb = 0, lsb = 0; in MPL3115ReadBarometer() local261 lsb = tempBuf[2]; in MPL3115ReadBarometer()266 float decimal = ( ( float )( lsb >> 4 ) ) / 16.0; in MPL3115ReadBarometer()272 float pressure = ( float )( ( msb << 16 | csb << 8 | lsb ) >> 6 ); in MPL3115ReadBarometer()273 lsb &= 0x30; // Bits 5/4 represent the fractional component in MPL3115ReadBarometer()274 lsb >>= 4; // Get it right aligned in MPL3115ReadBarometer()275 float decimal = ( ( float )lsb ) / 4.0; in MPL3115ReadBarometer()295 uint8_t msb = 0, lsb = 0; in MPL3115ReadTemperature() local339 lsb = tempBuf[1]; in MPL3115ReadTemperature()343 val = ~( ( msb << 8 ) + lsb ) + 1; // 2's complement in MPL3115ReadTemperature()[all …]