Home
last modified time | relevance | path

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

/Zephyr-Core-3.5.0/drivers/adc/
Dadc_emul.c409 uint32_t ref_v; in adc_emul_get_chan_value() local
438 ref_v = adc_emul_get_ref_voltage(data, chan_cfg->ref); in adc_emul_get_chan_value()
439 err = adc_gain_invert(chan_cfg->gain, &ref_v); in adc_emul_get_chan_value()
440 if (ref_v == 0 || err) { in adc_emul_get_chan_value()
447 temp = (uint64_t)input_mV * data->res_mask / ref_v; in adc_emul_get_chan_value()