Home
last modified time | relevance | path

Searched refs:conversion_factor (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/drivers/adc/
Dadc_mcux_lpadc.c67 uint32_t conversion_factor = 0; in mcux_lpadc_acquisition_time_setup() local
86 conversion_factor = 1; in mcux_lpadc_acquisition_time_setup()
93 conversion_factor = 1000000000 / adc_freq_hz; in mcux_lpadc_acquisition_time_setup()
100 if ((3 * conversion_factor) >= acquisition_time_value) { in mcux_lpadc_acquisition_time_setup()
102 } else if ((5 * conversion_factor) >= acquisition_time_value) { in mcux_lpadc_acquisition_time_setup()
104 } else if ((7 * conversion_factor) >= acquisition_time_value) { in mcux_lpadc_acquisition_time_setup()
106 } else if ((11 * conversion_factor) >= acquisition_time_value) { in mcux_lpadc_acquisition_time_setup()
108 } else if ((19 * conversion_factor) >= acquisition_time_value) { in mcux_lpadc_acquisition_time_setup()
110 } else if ((35 * conversion_factor) >= acquisition_time_value) { in mcux_lpadc_acquisition_time_setup()
112 } else if ((67 * conversion_factor) >= acquisition_time_value) { in mcux_lpadc_acquisition_time_setup()
[all …]
/Zephyr-latest/drivers/sensor/adi/adltc2990/
Dadltc2990.c201 uint16_t conversion_factor; in adltc2990_fetch_property_value() local
205 conversion_factor = ADLTC2990_VOLTAGE_SINGLEENDED_CONVERSION_FACTOR; in adltc2990_fetch_property_value()
207 conversion_factor = ADLTC2990_VOLTAGE_DIFFERENTIAL_CONVERSION_FACTOR; in adltc2990_fetch_property_value()
209 conversion_factor = ADLTC2990_TEMPERATURE_CONVERSION_FACTOR; in adltc2990_fetch_property_value()
223 *output = (voltage_value * conversion_factor) / sensor_val_divisor; in adltc2990_fetch_property_value()