Home
last modified time | relevance | path

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

/Zephyr-Core-3.6.0/drivers/adc/
Dadc_npcx.c517 struct adc_npcx_threshold_control *const t_ctrl = in adc_npcx_threshold_ctrl_set_param() local
536 t_ctrl->chnsel = (uint8_t)param->val; in adc_npcx_threshold_ctrl_set_param()
540 t_ctrl->l_h = !!param->val; in adc_npcx_threshold_ctrl_set_param()
548 t_ctrl->thrval = (uint16_t)param->val; in adc_npcx_threshold_ctrl_set_param()
556 t_ctrl->work = (struct k_work *)param->val; in adc_npcx_threshold_ctrl_set_param()
572 struct adc_npcx_threshold_control *const t_ctrl = in adc_npcx_threshold_ctrl_setup() local
588 if (t_ctrl->chnsel >= config->channel_count || in adc_npcx_threshold_ctrl_setup()
589 t_ctrl->thrval >= api->ref_internal || in adc_npcx_threshold_ctrl_setup()
590 t_ctrl->thrval == 0 || t_ctrl->work == 0) { in adc_npcx_threshold_ctrl_setup()
597 NPCX_THRCTL_CHNSEL, t_ctrl->chnsel); in adc_npcx_threshold_ctrl_setup()
[all …]