Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/adc/
Dadc_xmc4xxx.c196 uint32_t ch_num = channel_cfg->channel_id; in adc_xmc4xxx_channel_setup() local
199 if (ch_num >= XMC4XXX_CHANNEL_COUNT) { in adc_xmc4xxx_channel_setup()
200 LOG_ERR("Channel %d is not valid", ch_num); in adc_xmc4xxx_channel_setup()
231 channel_config.result_reg_number = ch_num; in adc_xmc4xxx_channel_setup()
234 XMC_VADC_GROUP_ChannelInit(adc_group, ch_num, &channel_config); in adc_xmc4xxx_channel_setup()
236 adc_group->RCR[ch_num] = 0; in adc_xmc4xxx_channel_setup()
238 XMC_VADC_GROUP_ScanAddChannelToSequence(adc_group, ch_num); in adc_xmc4xxx_channel_setup()
Dadc_ene_kb1200.c104 int ch_num; in adc_kb1200_start_read() local
107 ch_num = find_lsb_set(channels) - 1; in adc_kb1200_start_read()
109 while (config->adc->ADCDAT[ch_num] & ADC_INVALID_VALUE) { in adc_kb1200_start_read()
120 *data->buffer = (uint16_t)(config->adc->ADCDAT[ch_num]); in adc_kb1200_start_read()
128 channels &= ~BIT(ch_num); in adc_kb1200_start_read()
/Zephyr-latest/drivers/dma/
Ddma_andes_atcdmac300.c466 uint32_t ch_num; in dma_atcdmac300_init() local
469 for (ch_num = 0; ch_num < ATCDMAC100_MAX_CHAN; ch_num++) { in dma_atcdmac300_init()
470 sys_write32(0, DMA_CH_CTRL(dev, ch_num)); in dma_atcdmac300_init()