Home
last modified time | relevance | path

Searched refs:temperature (Results 1 – 25 of 340) sorted by relevance

12345678910>>...14

/Zephyr-latest/samples/sensor/die_temp_polling/
DREADME.rst2 :name: CPU die temperature polling
5 Get CPU die temperature data from a sensor using polling.
10 This sample periodically reads temperature from the CPU Die
11 temperature sensor and display the results.
31 CPU Die temperature[dietemp]: 22.6 °C
32 CPU Die temperature[dietemp]: 22.8 °C
33 CPU Die temperature[dietemp]: 23.1 °C
/Zephyr-latest/samples/bluetooth/peripheral_ht/src/
Dhts.c84 static double temperature = 20U; in hts_indicate() local
94 temperature++; in hts_indicate()
95 if (temperature == 30U) { in hts_indicate()
96 temperature = 20U; in hts_indicate()
113 temperature = sensor_value_to_double(&temp_value); in hts_indicate()
116 printf("temperature is %gC\n", temperature); in hts_indicate()
118 mantissa = (uint32_t)(temperature * 100); in hts_indicate()
/Zephyr-latest/drivers/sensor/nxp/nxp_tempmon/
DKconfig1 # NXP temperature monitor (TEMPMON)
7 bool "NXP temperature monitor (TEMPMON)"
11 Enable driver for the NXP temperature monitor (TEMPMON).
12 This is used to retrieve on-die operational temperature.
/Zephyr-latest/samples/sensor/adt7420/
DREADME.rst2 :name: ADT7420 high-accuracy digital I2C temperature sensor
5 Get temperature data from an ADT7420 sensor using polling and window mode.
10 This sample application periodically (1Hz) measures the ambient temperature
15 temperature. As soon as the temperature goes outside the window an
55 [0:00:00.011]: temperature 21.203125 Cel
56 [0:00:01.015]: temperature 21.171875 Cel
57 [0:00:02.019]: temperature 21.171875 Cel
58 [0:00:03.023]: temperature 21.187500 Cel
59 [0:00:04.027]: temperature 21.140625 Cel
/Zephyr-latest/samples/sensor/max17262/src/
Dmain.c22 struct sensor_value voltage, avg_current, temperature; in main() local
29 sensor_channel_get(dev, SENSOR_CHAN_GAUGE_TEMP, &temperature); in main()
35 temperature.val1, temperature.val2); in main()
/Zephyr-latest/drivers/sensor/meas/ms5837/
Dms5837.c67 data->temperature = 2000 + (dT * data->tempsens) / (1ll << 23); in ms5837_compensate_30()
76 temp_sq = (int64_t)(data->temperature - 2000) * (data->temperature - 2000); in ms5837_compensate_30()
77 if (data->temperature < 2000) { in ms5837_compensate_30()
81 if (data->temperature < -1500) { in ms5837_compensate_30()
82 temp_sq = (data->temperature + 1500) * in ms5837_compensate_30()
83 (data->temperature + 1500); in ms5837_compensate_30()
96 data->temperature -= Ti; in ms5837_compensate_30()
119 data->temperature = 2000 + (dT * data->tempsens) / (1ll << 23); in ms5837_compensate_02()
123 temp_sq = (int64_t)(data->temperature - 2000) * (data->temperature - 2000); in ms5837_compensate_02()
124 if (data->temperature < 2000) { in ms5837_compensate_02()
[all …]
/Zephyr-latest/samples/sensor/jc42/
DREADME.rst5 Get ambient temperature from a JEDEC JC 42.4 compliant temperature sensor (polling & trigger
12 temperature. The result is written to the console.
15 maintains a |plusminus| 2 |deg| C window around the current temperature.
16 When the temperature moves outside the window an alert is given, and the
17 window is moved to center on the new temperature.
22 The sample requires a JEDEC JC 42.4 compliant temperature sensor. The
25 The MCP9808 digital temperature sensor converts temperatures between -20 |deg|
32 The MCP9808, which is a JEDEC JC 42.4 compliant temperature sensor, is
/Zephyr-latest/drivers/sensor/nxp/p3t1755/
DKconfig1 # P3T1755 digital temperature sensor
7 bool "P3T1755 digital temperature sensor driver"
13 Enable driver for the P3T1755 digital temperature sensor.
/Zephyr-latest/drivers/sensor/infineon/xmc4xxx_temp/
DKconfig9 Enable driver for temperature sensor on Infineon XMC4XXX targets.
14 int "Offset adjumstment of the temperature reading"
21 int "Gain adjumstment of the temperature reading"
24 Gain adjustment of the temperature reading. Range [0, 63].
/Zephyr-latest/drivers/sensor/st/stts751/
DKconfig1 # ST Microelectronics STTS751 temperature sensor
7 bool "STTS751 temperature sensor"
15 Enable driver for STTS751 I2C-based temperature sensor.
63 int "High temperature threshold alarm"
66 HIGH temperature threshold to trigger an alarm
70 int "Low temperature threshold alarm"
73 LOW temperature threshold to trigger an alarm
/Zephyr-latest/drivers/sensor/st/stm32_digi_temp/
DKconfig1 # STM32 digital temperature sensor configuration options
12 Enable the driver for STM32 digital temperature sensor. This sensor
13 is different from the STM32 analog temperature sensor, which is read
15 temperature driver also requires the ADC driver to be enabled. The
/Zephyr-latest/samples/sensor/thermometer/
DREADME.rst5 Get ambient temperature data from a temperature sensor and get alerts when temperature drifts
11 This sample application periodically measures the ambient temperature
38 To build for other boards and ambient temperature sensors, enable the sensor
48 If the attached sensor supports alerts when the temperature drifts above or
62 Set temperature lower limit to 25.5°C
63 Set temperature upper limit to 26.5°C
/Zephyr-latest/drivers/sensor/st/stts22h/
DKconfig1 # ST Microelectronics STTS22H temperature sensor
7 bool "STTS22H temperature sensor"
15 Enable driver for STTS22H I2C-based temperature sensor.
/Zephyr-latest/drivers/sensor/nordic/temp/
DKconfig1 # nRF temperature sensor configuration options
12 of the temperature sensor driver.
20 Enable driver for nRF5 temperature sensor.
28 Enable driver for nRF temperature sensor accessed through the nRF
/Zephyr-latest/drivers/sensor/nxp/nxp_kinetis_temp/
DKconfig1 # NXP Kinetis temperature sensor configuration options
12 Enable driver for NXP Kinetis temperature sensor.
21 ADC resolution to use for the temperature sensor and bandgap
29 ADC oversampling to use for the temperature sensor and
/Zephyr-latest/drivers/sensor/maxim/max31865/
Dmax31865.c93 double temperature; in calculate_temperature() local
96 temperature = (-RTD_A + sqrt(delta)) / (2 * RTD_B); in calculate_temperature()
97 if (temperature > 0.0) { in calculate_temperature()
98 return temperature; in calculate_temperature()
102 temperature = RTD_C[0] + RTD_C[1] * resistance + RTD_C[2] * pow(resistance, 2) - in calculate_temperature()
105 return temperature; in calculate_temperature()
119 double temperature; in calculate_temperature() local
121 temperature = (resistance - resistance_0) / (resistance_0 * RTD_A); in calculate_temperature()
122 return temperature; in calculate_temperature()
240 data->temperature = calculate_temperature(resistance, config->resistance_at_zero); in max31865_get_temperature()
[all …]
/Zephyr-latest/drivers/sensor/meas/ms5607/
Dms5607.c39 data->temperature = 2000 + (dT * data->tempsens) / (1ll << 23); in ms5607_compensate()
48 temp_sq = (int64_t)(data->temperature - 2000) * in ms5607_compensate()
49 (int64_t)(data->temperature - 2000); in ms5607_compensate()
50 if (data->temperature < 2000) { in ms5607_compensate()
54 if (data->temperature < -1500) { in ms5607_compensate()
55 temp_sq = (int64_t)(data->temperature + 1500) * in ms5607_compensate()
56 (int64_t)(data->temperature + 1500); in ms5607_compensate()
69 data->temperature -= Ti; in ms5607_compensate()
150 val->val1 = data->temperature / 100; in ms5607_channel_get()
151 val->val2 = data->temperature % 100 * 10000; in ms5607_channel_get()
[all …]
/Zephyr-latest/drivers/sensor/st/lis2dh/
Dlis2dh.c58 ret = lis2dh->hw_tf->read_data(dev, cfg->temperature.dout_addr, raw, in lis2dh_sample_fetch_temp()
72 lis2dh->temperature.val1 = (int32_t)((int8_t)raw[1]); in lis2dh_sample_fetch_temp()
73 if (cfg->temperature.fractional_bits == 0) { in lis2dh_sample_fetch_temp()
74 lis2dh->temperature.val2 = 0; in lis2dh_sample_fetch_temp()
76 lis2dh->temperature.val2 = in lis2dh_sample_fetch_temp()
77 (raw[0] >> (8 - cfg->temperature.fractional_bits)); in lis2dh_sample_fetch_temp()
78 lis2dh->temperature.val2 = (lis2dh->temperature.val2 * 1000000); in lis2dh_sample_fetch_temp()
79 lis2dh->temperature.val2 >>= cfg->temperature.fractional_bits; in lis2dh_sample_fetch_temp()
80 if (lis2dh->temperature.val1 < 0) { in lis2dh_sample_fetch_temp()
81 lis2dh->temperature.val2 *= -1; in lis2dh_sample_fetch_temp()
[all …]
/Zephyr-latest/drivers/sensor/th02/
Dth02.c68 uint16_t temperature = 0U; in get_temp() local
77 temperature = read8(i2c, TH02_REG_DATA_H) << 8; in get_temp()
78 temperature |= read8(i2c, TH02_REG_DATA_L); in get_temp()
79 temperature >>= 2; in get_temp()
81 return temperature; in get_temp()
/Zephyr-latest/drivers/sensor/maxim/max6675/
Dmax6675.c72 int32_t temperature; in max6675_channel_get() local
78 temperature = (data->sample >> TEMPERATURE_POS) * TEMPERATURE_RES; in max6675_channel_get()
79 val->val1 = temperature / 100; in max6675_channel_get()
80 val->val2 = (temperature - val->val1 * 100) * 10000; in max6675_channel_get()
/Zephyr-latest/drivers/sensor/lm77/
DKconfig1 # LM77 temperature sensor configuration
13 Enable driver for the LM77 digital temperature sensor with 2-wire
24 Enable trigger support for the LM77 digital temperature sensor.
27 interrupt mode). After a trigger event the LM77 temperature must be
/Zephyr-latest/drivers/sensor/st/stm32_temp/
Dstm32_temp.c129 float temperature; in convert_adc_sample_to_temperature() local
151 temperature = (float)(cfg->v25 - vsense); in convert_adc_sample_to_temperature()
153 temperature = (float)(vsense - cfg->v25); in convert_adc_sample_to_temperature()
155 temperature /= cfg->average_slope; in convert_adc_sample_to_temperature()
156 temperature += 25.0f; in convert_adc_sample_to_temperature()
189 temperature = (dividend / avg_slope_code) + cfg->ts_cal1_temp; in convert_adc_sample_to_temperature()
202 temperature = (slope * (sense_data - (calib[0] >> cfg->calib_data_shift))) in convert_adc_sample_to_temperature()
207 return temperature; in convert_adc_sample_to_temperature()
/Zephyr-latest/drivers/sensor/nct75/
DKconfig5 bool "NCT75 temperature sensor"
10 Enable driver for the NCT75 temperature sensor.
/Zephyr-latest/drivers/sensor/silabs/si7060/
DKconfig1 # SI7060 temperature sensor configuration options
12 Enable driver for SI7060 temperature sensors.
/Zephyr-latest/tests/drivers/build_all/sensor/
Dpwm.dtsi14 lower-temperature-limit = <(-100)>;
15 higher-temperature-limit = <250>;

12345678910>>...14