Lines Matching refs:channel_id
61 uint8_t channel_id; member
77 uint8_t channel_id = channel_cfg->channel_id; in adc_sam_channel_setup() local
80 afec->AFEC_CGR &= ~(3 << channel_id * 2U); in adc_sam_channel_setup()
87 afec->AFEC_CGR |= (1 << (channel_id * 2U)); in adc_sam_channel_setup()
90 afec->AFEC_CGR |= (2 << (channel_id * 2U)); in adc_sam_channel_setup()
129 data->channel_id = find_lsb_set(data->channels) - 1; in adc_sam_start_conversion()
131 LOG_DBG("Starting channel %d", data->channel_id); in adc_sam_start_conversion()
140 afec->AFEC_CHER = (1 << data->channel_id); in adc_sam_start_conversion()
143 afec->AFEC_IER = (1 << data->channel_id); in adc_sam_start_conversion()
349 afec->AFEC_CHDR |= BIT(data->channel_id); in adc_sam_isr()
350 afec->AFEC_IDR |= BIT(data->channel_id); in adc_sam_isr()
352 afec->AFEC_CSELR = AFEC_CSELR_CSEL(data->channel_id); in adc_sam_isr()
356 data->channels &= ~BIT(data->channel_id); in adc_sam_isr()