Lines Matching refs:sequence
190 const struct adc_sequence *sequence) in mcux_gau_adc_do_read() argument
198 if (sequence->channels & (0xFFFF << NUM_ADC_CHANNELS)) { in mcux_gau_adc_do_read()
205 num_channels += ((sequence->channels & (0x1 << i)) ? 1 : 0); in mcux_gau_adc_do_read()
209 if ((sequence->options != NULL && sequence->buffer_size < in mcux_gau_adc_do_read()
210 ((1 + sequence->options->extra_samplings) * num_channels)) || in mcux_gau_adc_do_read()
211 (sequence->options == NULL && sequence->buffer_size < num_channels)) { in mcux_gau_adc_do_read()
224 if (sequence->channels & (0x1 << channel)) { in mcux_gau_adc_do_read()
234 if (sequence->resolution == 12 || sequence->resolution == 11) { in mcux_gau_adc_do_read()
236 } else if (sequence->resolution == 14 || sequence->resolution == 13) { in mcux_gau_adc_do_read()
238 } else if (sequence->resolution == 16 || sequence->resolution == 15) { in mcux_gau_adc_do_read()
247 if (sequence->oversampling == 0) { in mcux_gau_adc_do_read()
249 } else if (sequence->oversampling == 1) { in mcux_gau_adc_do_read()
251 } else if (sequence->oversampling == 2) { in mcux_gau_adc_do_read()
253 } else if (sequence->oversampling == 3) { in mcux_gau_adc_do_read()
255 } else if (sequence->oversampling == 4) { in mcux_gau_adc_do_read()
263 if (sequence->calibrate) { in mcux_gau_adc_do_read()
269 data->results = sequence->buffer; in mcux_gau_adc_do_read()
270 data->results_length = sequence->buffer_size; in mcux_gau_adc_do_read()
271 data->repeat = sequence->buffer; in mcux_gau_adc_do_read()
273 adc_context_start_read(&data->ctx, sequence); in mcux_gau_adc_do_read()
279 const struct adc_sequence *sequence) in mcux_gau_adc_read() argument
285 error = mcux_gau_adc_do_read(dev, sequence); in mcux_gau_adc_read()
292 const struct adc_sequence *sequence, in mcux_gau_adc_read_async() argument
299 error = mcux_gau_adc_do_read(dev, sequence); in mcux_gau_adc_read_async()