Lines Matching refs:channel_cfg

196 					   const struct adc_channel_cfg *channel_cfg)  in ads131m02_configure_gain()  argument
200 switch (channel_cfg->gain) { in ads131m02_configure_gain()
202 gain_cfg = ADS131M02_GET_GAIN(channel_cfg->channel_id, in ads131m02_configure_gain()
206 gain_cfg = ADS131M02_GET_GAIN(channel_cfg->channel_id, in ads131m02_configure_gain()
210 gain_cfg = ADS131M02_GET_GAIN(channel_cfg->channel_id, in ads131m02_configure_gain()
214 gain_cfg = ADS131M02_GET_GAIN(channel_cfg->channel_id, in ads131m02_configure_gain()
218 gain_cfg = ADS131M02_GET_GAIN(channel_cfg->channel_id, in ads131m02_configure_gain()
222 gain_cfg = ADS131M02_GET_GAIN(channel_cfg->channel_id, in ads131m02_configure_gain()
226 gain_cfg = ADS131M02_GET_GAIN(channel_cfg->channel_id, in ads131m02_configure_gain()
230 gain_cfg = ADS131M02_GET_GAIN(channel_cfg->channel_id, in ads131m02_configure_gain()
288 const struct adc_channel_cfg *channel_cfg) in ads131m02_setup() argument
301 switch (channel_cfg->channel_id) { in ads131m02_setup()
313 ret = ads131m02_acquistion_time(channel_cfg->acquisition_time, &enable); in ads131m02_setup()
322 const struct adc_channel_cfg *channel_cfg) in ads131m02_channel_setup() argument
326 if (channel_cfg->channel_id != 0 && channel_cfg->channel_id != 1) { in ads131m02_channel_setup()
330 if (channel_cfg->reference != ADC_REF_INTERNAL) { in ads131m02_channel_setup()
335 if (!channel_cfg->differential) { in ads131m02_channel_setup()
339 ret = ads131m02_configure_gain(dev, channel_cfg); in ads131m02_channel_setup()
344 ret = ads131m02_setup(dev, channel_cfg); in ads131m02_channel_setup()