Home
last modified time | relevance | path

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

/Zephyr-Core-3.7.0/drivers/adc/
Dadc_npcx.c165 static inline void adc_npcx_enable_threshold_detect(const struct device *dev, uint8_t th_sel, in adc_npcx_enable_threshold_detect() argument
172 THEN(config->base) |= BIT(th_sel); in adc_npcx_enable_threshold_detect()
174 THRCTL(config->base, th_sel) |= BIT(NPCX_THRCTL_THEN); in adc_npcx_enable_threshold_detect()
179 THEN(config->base) &= ~BIT(th_sel); in adc_npcx_enable_threshold_detect()
181 THRCTL(config->base, th_sel) &= ~BIT(NPCX_THRCTL_THEN); in adc_npcx_enable_threshold_detect()
510 const uint8_t th_sel, in adc_npcx_threshold_ctrl_set_param() argument
518 &t_data->control[th_sel]; in adc_npcx_threshold_ctrl_set_param()
525 if (!param || th_sel >= config->threshold_count) { in adc_npcx_threshold_ctrl_set_param()
566 const uint8_t th_sel) in adc_npcx_threshold_ctrl_setup() argument
573 &t_data->control[th_sel]; in adc_npcx_threshold_ctrl_setup()
[all …]
/Zephyr-Core-3.7.0/drivers/sensor/nuvoton/nuvoton_adc_cmp_npcx/
Dadc_cmp_npcx.c38 uint8_t th_sel; member
68 LOG_DBG("Initialize ADC CMP threshold selection (%d)", config->th_sel); in adc_cmp_npcx_init()
75 ret = adc_npcx_threshold_ctrl_set_param(config->adc, config->th_sel, in adc_cmp_npcx_init()
85 ret = adc_npcx_threshold_ctrl_set_param(config->adc, config->th_sel, in adc_cmp_npcx_init()
102 config->th_sel, &param); in adc_cmp_npcx_init()
117 config->th_sel, &param); in adc_cmp_npcx_init()
145 config->th_sel, &param); in adc_cmp_npcx_set_threshold()
155 config->th_sel, &param); in adc_cmp_npcx_set_threshold()
191 config->th_sel, !!val->val1); in adc_cmp_npcx_attr_set()
229 return adc_npcx_threshold_ctrl_set_param(config->adc, config->th_sel, in adc_cmp_npcx_trigger_set()
[all …]
/Zephyr-Core-3.7.0/include/zephyr/drivers/adc/
Dadc_npcx_threshold.h69 const uint8_t th_sel,
87 int adc_npcx_threshold_ctrl_enable(const struct device *dev, uint8_t th_sel,