Searched refs:sample_mv (Results 1 – 1 of 1) sorted by relevance
52 int32_t sample_mv; in adc_keys_read() local64 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() local79 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()