Home
last modified time | relevance | path

Searched refs:temperature (Results 1 - 13 of 13) sorted by relevance

/drivers/peripheral/sensor/chipset/temperature/
H A Dtemperature_aht20.c69 rawData->temperature = ((tempValue * AHT20_TEMP_SLOPE) / AHT20_TEMP_RESOLUTION) - AHT20_TEMP_CONSATNT; in ReadAht20RawData()
77 static int32_t temperature; in ReadAht20Data() local
98 temperature = rawData.temperature; in ReadAht20Data()
102 event.dataLen = sizeof(temperature); in ReadAht20Data()
103 event.data = (uint8_t *)&temperature; in ReadAht20Data()
184 HDF_LOGE("%s: Creating temperature cfg failed because detection failed", __func__); in Aht20InitDriver()
192 HDF_LOGE("%s: Register temperature failed", __func__); in Aht20InitDriver()
198 HDF_LOGE("%s: Init AHT20 temperature sensor failed", __func__); in Aht20InitDriver()
H A Dtemperature_sht30.c65 rawData->temperature = (SHT30_TEMP_CONSATNT + ((SHT30_TEMP_SLOPE * tempValue) / 0xFFFF)); in ReadSht30RawData()
68 HDF_LOGE("%s: Calc temperature crc8 failed!", __func__); in ReadSht30RawData()
78 static int32_t temperature; in ReadSht30Data() local
99 temperature = rawData.temperature; in ReadSht30Data()
103 event.dataLen = sizeof(temperature); in ReadSht30Data()
104 event.data = (uint8_t *)&temperature; in ReadSht30Data()
167 HDF_LOGE("%s: Creating temperature cfg failed because detection failed", __func__); in Sht30InitDriver()
175 HDF_LOGE("%s: Register temperature failed", __func__); in Sht30InitDriver()
181 HDF_LOGE("%s: Init SHT30 temperature senso in Sht30InitDriver()
[all...]
/drivers/hdf_core/framework/model/sensor/driver/gas/
H A Dsensor_gas_driver.h37 int16_t temperature; member
52 int16_t temperature; /*! Temperature in degree celsius */ member
/drivers/hdf_core/adapter/khdf/linux/model/sensor/
H A DMakefile73 obj-$(CONFIG_DRIVERS_HDF_SENSOR_TEMPERATURE) += $(SENSOR_ROOT_DIR)/temperature/sensor_temperature_driver.o
75 obj-$(CONFIG_DRIVERS_HDF_SENSOR_TEMPERATURE_AHT20) += $(SENSOR_ROOT_CHIPSET)/chipset/temperature/temperature_aht20.o
77 obj-$(CONFIG_DRIVERS_HDF_SENSOR_TEMPERATURE_SHT30) += $(SENSOR_ROOT_CHIPSET)/chipset/temperature/temperature_sht30.o
96 -I$(srctree)/drivers/hdf/peripheral/sensor/chipset/temperature \
97 -I$(srctree)/drivers/hdf/framework/model/sensor/driver/temperature \
/drivers/hdf_core/framework/model/sensor/driver/temperature/
H A Dsensor_temperature_driver.h20 int32_t temperature; member
/drivers/peripheral/battery/interfaces/hdi_service/include/
H A Dbattery_interface_impl.h45 int32_t GetTemperature(int32_t& temperature) override;
H A Dpower_supply_provider.h86 int32_t ParseTemperature(int32_t* temperature);
/drivers/peripheral/battery/interfaces/hdi_service/src/
H A Dbattery_interface_impl.cpp121 int32_t BatteryInterfaceImpl::GetTemperature(int32_t& temperature) in GetTemperature() argument
123 return powerSupplyProvider_->ParseTemperature(&temperature); in GetTemperature()
208 info.temperature = batteryInfo.temperature_; in GetBatteryInfo()
H A Dbattery_thread.cpp193 event.temperature = batteryInfo->temperature_; in UpdateBatteryInfo()
216 event.capacity, event.voltage, event.curNow, event.temperature, event.healthState, in UpdateBatteryInfo()
H A Dpower_supply_provider.cpp818 int32_t PowerSupplyProvider::ParseTemperature(int32_t* temperature) in ParseTemperature() argument
827 *temperature = value; in ParseTemperature()
/drivers/peripheral/battery/interfaces/hdi_service/test/unittest/src/
H A Dhdi_service_test.cpp239 BATTERY_HILOGE(LABEL_TEST, "read system file temperature is %{public}d", battTemperature); in ReadTemperatureSysfs()
241 BATTERY_HILOGE(LABEL_TEST, "read system file temperature is %{public}d", battTemperature); in ReadTemperatureSysfs()
814 int32_t temperature = 0; in HWTEST_F() local
816 giver_->ParseTemperature(&temperature); in HWTEST_F()
819 LABEL_TEST, "Not Mock HdiService001::temperature=%{public}d, t=%{public}d", temperature, sysfsTemp); in HWTEST_F()
820 ASSERT_TRUE(temperature == sysfsTemp); in HWTEST_F()
823 giver_->ParseTemperature(&temperature); in HWTEST_F()
824 BATTERY_HILOGI(LABEL_TEST, "HdiService001::temperature=%{public}d.", temperature); in HWTEST_F()
[all...]
/drivers/peripheral/sensor/chipset/gas/
H A Dgas_bme688_driver.c20 /* This internal API is used to calculate the temperature in integer */
170 rawData->temperature = fieldData.temperature; in Bme688HalReadSensorRawData()
176 reTemp = fieldData.temperature; in Bme688HalReadSensorRawData()
182 rawData->temperature = reTemp; in Bme688HalReadSensorRawData()
272 HDF_LOGI("%s rawData->temperature = %d", __func__, rawData.temperature); in ReadBme688Data()
278 tmp[GAS_PART_TEMP] = rawData.temperature; in ReadBme688Data()
624 /* Cap temperature */ in BmeHalCalcResHeat()
875 fieldData->temperature in BmeHalReadFieldData()
[all...]
/drivers/peripheral/usb/hdi_service/include/
H A Dusbd_type.h211 int32_t temperature; member

Completed in 9 milliseconds