Lines Matching full:sequence
133 static int check_buffer_size(const struct adc_sequence *sequence, in check_buffer_size() argument
139 if (sequence->options) { in check_buffer_size()
140 needed_buffer_size *= (1 + sequence->options->extra_samplings); in check_buffer_size()
143 if (sequence->buffer_size < needed_buffer_size) { in check_buffer_size()
145 sequence->buffer_size, needed_buffer_size); in check_buffer_size()
153 const struct adc_sequence *sequence) in start_read() argument
156 uint32_t selected_channels = sequence->channels; in start_read()
171 if (sequence->oversampling != 0U) { in start_read()
176 switch (sequence->resolution) { in start_read()
188 sequence->resolution); in start_read()
195 /* Enable the channels selected for the pointed sequence. in start_read()
212 error = check_buffer_size(sequence, active_channels); in start_read()
217 m_data.buffer = sequence->buffer; in start_read()
220 adc_context_start_read(&m_data.ctx, sequence); in start_read()
228 const struct adc_sequence *sequence) in adc_nrfx_read() argument
233 error = start_read(dev, sequence); in adc_nrfx_read()
242 const struct adc_sequence *sequence, in adc_nrfx_read_async() argument
248 error = start_read(dev, sequence); in adc_nrfx_read_async()