Home
last modified time | relevance | path

Searched refs:dac_offset (Results 1 – 6 of 6) sorted by relevance

/hal_espressif-2.7.6/components/driver/esp32c3/
Drtc_tempsensor.c54 static const tsens_dac_offset_t dac_offset[TSENS_DAC_MAX] = { variable
70 REGI2C_WRITE_MASK(I2C_SAR_ADC, I2C_SARADC_TSENS_DAC, dac_offset[tsens.dac_offset].set_val); in temp_sensor_set_config()
75 dac_offset[tsens.dac_offset].range_min, in temp_sensor_set_config()
76 dac_offset[tsens.dac_offset].range_max, in temp_sensor_set_config()
77 dac_offset[tsens.dac_offset].error_max); in temp_sensor_set_config()
86 tsens->dac_offset = REGI2C_READ_MASK(I2C_SAR_ADC, I2C_SARADC_TSENS_DAC); in temp_sensor_get_config()
88 if (tsens->dac_offset == dac_offset[i].set_val) { in temp_sensor_get_config()
89 tsens->dac_offset = dac_offset[i].index; in temp_sensor_get_config()
132 static float parse_temp_sensor_raw_value(uint32_t tsens_raw, const int dac_offset) in parse_temp_sensor_raw_value() argument
137 …float result = (TSENS_ADC_FACTOR * (float)tsens_raw - TSENS_DAC_FACTOR * dac_offset - TSENS_SYS_OF… in parse_temp_sensor_raw_value()
[all …]
/hal_espressif-2.7.6/components/driver/esp32s2/
Drtc_tempsensor.c54 static const tsens_dac_offset_t dac_offset[TSENS_DAC_MAX] = { variable
73 REGI2C_WRITE_MASK(I2C_SAR_ADC, I2C_SARADC_TSENS_DAC, dac_offset[tsens.dac_offset].set_val); in temp_sensor_set_config()
81 dac_offset[tsens.dac_offset].range_min, in temp_sensor_set_config()
82 dac_offset[tsens.dac_offset].range_max, in temp_sensor_set_config()
83 dac_offset[tsens.dac_offset].error_max); in temp_sensor_set_config()
94 tsens->dac_offset = REGI2C_READ_MASK(I2C_SAR_ADC, I2C_SARADC_TSENS_DAC); in temp_sensor_get_config()
96 if ((int)tsens->dac_offset == dac_offset[i].set_val) { in temp_sensor_get_config()
97 tsens->dac_offset = dac_offset[i].index; in temp_sensor_get_config()
154 static float parse_temp_sensor_raw_value(uint32_t tsens_raw, const int dac_offset) in parse_temp_sensor_raw_value() argument
159 …float result = (TSENS_ADC_FACTOR * (float)tsens_raw - TSENS_DAC_FACTOR * dac_offset - TSENS_SYS_OF… in parse_temp_sensor_raw_value()
[all …]
/hal_espressif-2.7.6/components/driver/esp32c3/include/driver/
Dtemp_sensor.h38 …temp_sensor_dac_offset_t dac_offset; /*!< The temperature measurement range is configured with … member
42 #define TSENS_CONFIG_DEFAULT() {.dac_offset = TSENS_DAC_L2, \
/hal_espressif-2.7.6/components/driver/esp32s2/include/driver/
Dtemp_sensor.h41 …temp_sensor_dac_offset_t dac_offset; /*!< The temperature measurement range is configured with … member
48 #define TSENS_CONFIG_DEFAULT() {.dac_offset = TSENS_DAC_L2, \
/hal_espressif-2.7.6/components/driver/esp32s3/include/driver/
Dtemp_sensor.h41 …temp_sensor_dac_offset_t dac_offset; /*!< The temperature measurement range is configured with … member
48 #define TSENS_CONFIG_DEFAULT() {.dac_offset = TSENS_DAC_L2, \
/hal_espressif-2.7.6/examples/peripherals/temp_sensor/main/
Dtemp_sensor_main.c29 ESP_LOGI(TAG, "default dac %d, clk_div %d", temp_sensor.dac_offset, temp_sensor.clk_div); in tempsensor_example()
30 temp_sensor.dac_offset = TSENS_DAC_DEFAULT; // DEFAULT: range:-10℃ ~ 80℃, error < 1℃. in tempsensor_example()