Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/input/
Dinput_adc_keys.c52 int32_t sample_mv; in adc_keys_read() local
64 sample_mv = (int32_t)sample_raw; in adc_keys_read()
65 adc_raw_to_millivolts_dt(&cfg->channel, &sample_mv); in adc_keys_read()
67 return sample_mv; in adc_keys_read()
73 int32_t sample_mv, closest_mv = 0; in adc_keys_process() local
79 sample_mv = adc_keys_read(dev); in adc_keys_process()
86 diff = abs(sample_mv - cfg->code_cfg[i].press_mv); in adc_keys_process()
93 diff = abs(sample_mv - cfg->keyup_mv); in adc_keys_process()
99 LOG_DBG("sample=%d mV, closest=%d mV, diff=%d mV", sample_mv, closest_mv, closest_diff); in adc_keys_process()