Lines Matching full:sequence
125 struct adc_sequence sequence = { in test_task_one_channel() local
131 (void)adc_sequence_init_dt(&adc_channels[0], &sequence); in test_task_one_channel()
133 ret = adc_read_dt(&adc_channels[0], &sequence); in test_task_one_channel()
152 struct adc_sequence sequence = { in test_task_multiple_channels() local
158 (void)adc_sequence_init_dt(&adc_channels[0], &sequence); in test_task_multiple_channels()
161 sequence.channels |= BIT(adc_channels[i].channel_id); in test_task_multiple_channels()
164 ret = adc_read_dt(&adc_channels[0], &sequence); in test_task_multiple_channels()
198 struct adc_sequence sequence = { in test_task_asynchronous_call() local
209 (void)adc_sequence_init_dt(&adc_channels[0], &sequence); in test_task_asynchronous_call()
211 ret = adc_read_async(adc_channels[0].dev, &sequence, &async_sig); in test_task_asynchronous_call()
239 const struct adc_sequence *sequence, in sample_with_interval_callback() argument
242 if (sequence->options->user_data != &my_sequence_identifier) { in sample_with_interval_callback()
243 user_data = sequence->options->user_data; in sample_with_interval_callback()
260 struct adc_sequence sequence = { in test_task_with_interval() local
268 (void)adc_sequence_init_dt(&adc_channels[0], &sequence); in test_task_with_interval()
270 ret = adc_read_dt(&adc_channels[0], &sequence); in test_task_with_interval()
276 zassert_equal(user_data, sequence.options->user_data, in test_task_with_interval()
278 user_data, sequence.options->user_data); in test_task_with_interval()
295 const struct adc_sequence *sequence, in repeated_samplings_callback() argument
310 * written in the same place), then the sequence is finished in repeated_samplings_callback()
330 * is repeated 9 times, and then the sequence is finished. in test_task_repeated_samplings()
337 struct adc_sequence sequence = { in test_task_repeated_samplings() local
344 (void)adc_sequence_init_dt(&adc_channels[0], &sequence); in test_task_repeated_samplings()
347 sequence.channels |= BIT(adc_channels[1].channel_id); in test_task_repeated_samplings()
350 ret = adc_read_dt(&adc_channels[0], &sequence); in test_task_repeated_samplings()
370 struct adc_sequence sequence = { in test_task_invalid_request() local
379 ret = adc_read_dt(&adc_channels[0], &sequence); in test_task_invalid_request()
383 ret = adc_read_async(adc_channels[0].dev, &sequence, &async_sig); in test_task_invalid_request()
388 * Make the sequence parameters valid, now the request should succeed. in test_task_invalid_request()
390 sequence.resolution = adc_channels[0].resolution; in test_task_invalid_request()
392 ret = adc_read_dt(&adc_channels[0], &sequence); in test_task_invalid_request()