Lines Matching refs:channel_cfg
279 const struct adc_channel_cfg *channel_cfg) in adc_b91_channel_setup() argument
291 if (channel_cfg->channel_id > 0) { in adc_b91_channel_setup()
297 if (channel_cfg->reference != ADC_REF_INTERNAL) { in adc_b91_channel_setup()
332 switch (channel_cfg->gain) { in adc_b91_channel_setup()
345 switch (channel_cfg->acquisition_time) { in adc_b91_channel_setup()
378 input_positive = adc_b91_get_pin(channel_cfg->input_positive); in adc_b91_channel_setup()
379 input_negative = adc_b91_get_pin(channel_cfg->input_negative); in adc_b91_channel_setup()
381 channel_cfg->differential) { in adc_b91_channel_setup()
384 } else if (channel_cfg->differential && (input_negative == (uint8_t)NOINPUTN)) { in adc_b91_channel_setup()
390 data->differential = channel_cfg->differential; in adc_b91_channel_setup()
396 if (channel_cfg->differential) { in adc_b91_channel_setup()
400 adc_set_diff_input(channel_cfg->input_positive, channel_cfg->input_negative); in adc_b91_channel_setup()
407 adc_set_diff_input(channel_cfg->input_positive, GND); in adc_b91_channel_setup()