Lines Matching refs:channel_id
182 uint8_t channel_id = channel_cfg->channel_id; in adc_nrfx_channel_setup() local
185 if (channel_id >= SAADC_CH_NUM) { in adc_nrfx_channel_setup()
274 m_data.single_ended_channels &= ~BIT(channel_cfg->channel_id); in adc_nrfx_channel_setup()
277 m_data.single_ended_channels |= BIT(channel_cfg->channel_id); in adc_nrfx_channel_setup()
301 m_data.positive_inputs[channel_id] = channel_cfg->input_positive; in adc_nrfx_channel_setup()
303 nrf_saadc_channel_init(NRF_SAADC, channel_id, &config); in adc_nrfx_channel_setup()
309 channel_id, in adc_nrfx_channel_setup()
475 uint8_t channel_id; in start_read() local
491 channel_id = 0U; in start_read()
493 if (selected_channels & BIT(channel_id)) { in start_read()
497 if (m_data.positive_inputs[channel_id] == 0U) { in start_read()
499 channel_id); in start_read()
512 if ((m_data.single_ended_channels & BIT(channel_id)) && in start_read()
515 channel_id); in start_read()
527 nrf_saadc_burst_set(NRF_SAADC, channel_id, in start_read()
533 channel_id, in start_read()
535 saadc_psels[m_data.positive_inputs[channel_id]] in start_read()
537 m_data.positive_inputs[channel_id] in start_read()
544 channel_id, in start_read()
548 channel_id, in start_read()
551 } while (++channel_id < SAADC_CH_NUM); in start_read()