Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/input/
Dinput_adc_keys.c34 const struct adc_keys_code_config *code_cfg; member
75 const struct adc_keys_code_config *code_cfg; in adc_keys_process() local
86 diff = abs(sample_mv - cfg->code_cfg[i].press_mv); in adc_keys_process()
89 closest_mv = cfg->code_cfg[i].press_mv; in adc_keys_process()
109 code_cfg = &cfg->code_cfg[i]; in adc_keys_process()
110 key_state = &cfg->key_state[code_cfg->key_index]; in adc_keys_process()
116 if (closest_mv == code_cfg->press_mv) { in adc_keys_process()
185 cfg->code_cfg[i].key_index, cfg->code_cfg[i].press_mv, in adc_keys_init()
186 cfg->key_code[cfg->code_cfg[i].key_index]); in adc_keys_init()
222 .code_cfg = adc_keys_code_cfg_##n, \