Lines Matching refs:channel_config

58 		.channel_config =                                                                  \
74 struct adc_channel_cfg channel_config; member
177 adc->channel_config.channel_id = (uint8_t)strtol(argv[1], NULL, 10); in cmd_adc_ch_id()
178 retval = adc_channel_setup(adc->dev, &adc->channel_config); in cmd_adc_ch_id()
204 adc->channel_config.differential = (uint8_t)diff; in cmd_adc_ch_diff()
205 retval = adc_channel_setup(adc->dev, &adc->channel_config); in cmd_adc_ch_diff()
228 adc->channel_config.input_negative = (uint8_t)strtol(argv[1], NULL, 10); in cmd_adc_ch_neg()
229 retval = adc_channel_setup(adc->dev, &adc->channel_config); in cmd_adc_ch_neg()
255 adc->channel_config.input_positive = (uint8_t)strtol(argv[1], NULL, 10); in cmd_adc_ch_pos()
256 retval = adc_channel_setup(adc->dev, &adc->channel_config); in cmd_adc_ch_pos()
278 adc->channel_config.gain = gain; in cmd_adc_gain()
283 retval = adc_channel_setup(adc->dev, &adc->channel_config); in cmd_adc_gain()
308 adc->channel_config.acquisition_time = in cmd_adc_acq()
311 adc->channel_config.acquisition_time = in cmd_adc_acq()
314 adc->channel_config.acquisition_time = in cmd_adc_acq()
317 adc->channel_config.acquisition_time = in cmd_adc_acq()
320 retval = adc_channel_setup(adc->dev, &adc->channel_config); in cmd_adc_acq()
342 retval = adc_channel_setup(adc->dev, &adc->channel_config); in cmd_adc_reso()
365 adc->channel_config.reference = reference; in cmd_adc_ref()
366 retval = adc_channel_setup(adc->dev, &adc->channel_config); in cmd_adc_ref()
386 adc->channel_config.channel_id = adc_channel_id; in cmd_adc_read()
388 .channels = BIT(adc->channel_config.channel_id), in cmd_adc_read()
417 adc->channel_config.acquisition_time, in cmd_adc_print()
418 adc->channel_config.channel_id, in cmd_adc_print()
419 adc->channel_config.differential, in cmd_adc_print()
423 adc->channel_config.input_positive); in cmd_adc_print()
424 if (adc->channel_config.differential != 0) { in cmd_adc_print()
426 adc->channel_config.input_negative); in cmd_adc_print()