Lines Matching refs:channel_cfg
211 const struct adc_channel_cfg *channel_cfg) in ads1119_channel_setup() argument
217 if (channel_cfg->channel_id != 0) { in ads1119_channel_setup()
221 switch (channel_cfg->reference) { in ads1119_channel_setup()
232 if (channel_cfg->differential) { in ads1119_channel_setup()
233 if (channel_cfg->input_positive == 0 && channel_cfg->input_negative == 1) { in ads1119_channel_setup()
235 } else if (channel_cfg->input_positive == 1 && channel_cfg->input_negative == 2) { in ads1119_channel_setup()
237 } else if (channel_cfg->input_positive == 2 && channel_cfg->input_negative == 3) { in ads1119_channel_setup()
243 if (channel_cfg->input_positive == 0) { in ads1119_channel_setup()
245 } else if (channel_cfg->input_positive == 1) { in ads1119_channel_setup()
247 } else if (channel_cfg->input_positive == 2) { in ads1119_channel_setup()
249 } else if (channel_cfg->input_positive == 3) { in ads1119_channel_setup()
255 data->differential = channel_cfg->differential; in ads1119_channel_setup()
257 dr = ads1119_acq_time_to_dr(dev, channel_cfg->acquisition_time); in ads1119_channel_setup()
264 switch (channel_cfg->gain) { in ads1119_channel_setup()