Home
last modified time | relevance | path

Searched refs:tempValue (Results 1 – 4 of 4) sorted by relevance

/drivers/peripheral/sensor/chipset/temperature/
Dtemperature_aht20.c32 uint64_t tempValue; in ReadAht20RawData() local
65 tempValue = value[AHT20_TEMP_VALUE_IDX_THREE] & AHT20_TEMP_MASK; in ReadAht20RawData()
66 tempValue = (tempValue << AHT20_TEMP_SHFIT_BITS) | value[AHT20_TEMP_VALUE_IDX_FOUR]; in ReadAht20RawData()
67 tempValue = (tempValue << AHT20_TEMP_SHFIT_BITS) | value[AHT20_TEMP_VALUE_IDX_FIVE]; in ReadAht20RawData()
69 …rawData->temperature = ((tempValue * AHT20_TEMP_SLOPE) / AHT20_TEMP_RESOLUTION) - AHT20_TEMP_CONSA… in ReadAht20RawData()
Dtemperature_sht30.c45 uint16_t tempValue; in ReadSht30RawData() local
61 tempValue = value[SHT30_TEMP_VALUE_IDX_ZERO]; in ReadSht30RawData()
62 tempValue <<= SENSOR_DATA_WIDTH_8_BIT; in ReadSht30RawData()
63 tempValue |= value[SHT30_TEMP_VALUE_IDX_ONE]; in ReadSht30RawData()
65 rawData->temperature = (SHT30_TEMP_CONSATNT + ((SHT30_TEMP_SLOPE * tempValue) / 0xFFFF)); in ReadSht30RawData()
/drivers/peripheral/sensor/chipset/als/
Dals_bh1750.c32 uint16_t tempValue; in ReadBh1750RawData() local
51 tempValue = reg[BH1750_TEMP_VALUE_IDX_ZERO]; in ReadBh1750RawData()
52 tempValue <<= SENSOR_DATA_WIDTH_8_BIT; in ReadBh1750RawData()
53 tempValue |= reg[BH1750_TEMP_VALUE_IDX_ONE]; in ReadBh1750RawData()
57 rawData->als = (tempValue * BH1750_TEMP_CONSATNT_1) / BH1750_TEMP_CONSATNT_2; in ReadBh1750RawData()
/drivers/peripheral/sensor/chipset/humidity/
Dhumidity_sht30.c45 uint16_t tempValue; in ReadSht30RawData() local
61 tempValue = value[SHT30_HUM_VALUE_INDEX_THREE]; in ReadSht30RawData()
62 tempValue <<= SENSOR_DATA_WIDTH_8_BIT; in ReadSht30RawData()
63 tempValue |= value[SHT30_HUM_VALUE_INDEX_FOUR]; in ReadSht30RawData()
65 rawData->humidity = ((SHT30_HUM_SLOPE * tempValue) / SHT30_HUM_RESOLUTION); in ReadSht30RawData()