Lines Matching full:samples

69  * @brief Check if samples for specific channel are correct. It can check
70 * samples with arithmetic sequence with common difference.
72 * @param expected_count Number of samples that are expected to be set
76 * samples were generated
78 * @param channel_id ADC channel from which samples are checked
106 * @brief Check if any values in buffer were set after expected samples.
108 * @param expected_count Number of samples that are expected to be set
124 * samples.
128 * @param samples Number of requested samples for each channel
133 int samples) in start_adc_read() argument
139 .extra_samplings = samples - 1, in start_adc_read()
142 if (samples > 1) { in start_adc_read()
199 const int samples = 4; in ZTEST_USER() local
217 start_adc_read(adc_dev, BIT(ADC_1ST_CHANNEL_ID), samples); in ZTEST_USER()
219 /* Check samples */ in ZTEST_USER()
220 check_samples(samples, input_mv, 0 /* step */, 1 /* channels */, 0 /* first channel data */, in ZTEST_USER()
223 check_empty_samples(samples); in ZTEST_USER()
231 const int samples = 4; in ZTEST_USER() local
248 start_adc_read(adc_dev, BIT(ADC_1ST_CHANNEL_ID), samples); in ZTEST_USER()
250 /* Check samples */ in ZTEST_USER()
251 check_samples(samples, input_mv, 0 /* step */, 1 /* channels */, 0 /* first channel data */, in ZTEST_USER()
254 check_empty_samples(samples); in ZTEST_USER()
262 const int samples = 4; in ZTEST_USER() local
279 start_adc_read(adc_dev, BIT(ADC_1ST_CHANNEL_ID), samples); in ZTEST_USER()
281 /* Check samples */ in ZTEST_USER()
282 check_samples(samples, input_mv, 0 /* step */, 1 /* channels */, in ZTEST_USER()
286 check_empty_samples(samples); in ZTEST_USER()
294 const int samples = 3; in ZTEST_USER() local
318 BIT(ADC_2ND_CHANNEL_ID), samples); in ZTEST_USER()
320 /* Check samples */ in ZTEST_USER()
321 check_samples(samples * 2, input1_mv, 0 /* step */, 2 /* channels */, in ZTEST_USER()
324 check_samples(samples * 2, input2_mv, 0 /* step */, 2 /* channels */, in ZTEST_USER()
328 check_empty_samples(samples * 2); in ZTEST_USER()
336 const int samples = 4; in ZTEST_USER() local
357 start_adc_read(adc_dev, BIT(ADC_1ST_CHANNEL_ID), samples); in ZTEST_USER()
359 /* Check samples */ in ZTEST_USER()
360 check_samples(samples, input_mv, SEQUENCE_STEP, 1 /* channels */, in ZTEST_USER()
364 check_empty_samples(samples); in ZTEST_USER()
373 const int samples = 4; in ZTEST_USER() local
392 start_adc_read(adc_dev, BIT(ADC_1ST_CHANNEL_ID), samples); in ZTEST_USER()
394 /* Check samples */ in ZTEST_USER()
395 check_samples(samples, input_mV, in ZTEST_USER()
399 check_empty_samples(samples); in ZTEST_USER()
412 const int samples = 3; in ZTEST_USER() local
441 BIT(ADC_2ND_CHANNEL_ID), samples); in ZTEST_USER()
443 /* Check samples */ in ZTEST_USER()
444 check_samples(samples * 2, input1_mv, SEQUENCE_STEP, in ZTEST_USER()
447 check_samples(samples * 2, input2_mv, SEQUENCE_STEP, in ZTEST_USER()
451 check_empty_samples(samples * 2); in ZTEST_USER()
463 const int samples = 3; in ZTEST_USER() local
490 BIT(ADC_2ND_CHANNEL_ID), samples); in ZTEST_USER()
492 /* Check samples */ in ZTEST_USER()
493 check_samples(samples * 2, input1_mv, SEQUENCE_STEP, in ZTEST_USER()
496 check_samples(samples * 2, input2_mv, 0 /* step */, 2 /* channels */, in ZTEST_USER()
500 check_empty_samples(samples * 2); in ZTEST_USER()
508 const int samples = 3; in ZTEST_USER() local
533 start_adc_read(adc_dev, channel_mask, samples); in ZTEST_USER()
535 /* Check samples */ in ZTEST_USER()
536 check_samples(samples * 2, input_mv, 0 /* step */, 2 /* channels */, in ZTEST_USER()
539 check_samples(samples * 2, input_mv, 0 /* step */, 2 /* channels */, in ZTEST_USER()
543 check_empty_samples(samples * 2); in ZTEST_USER()
552 start_adc_read(adc_dev, channel_mask, samples); in ZTEST_USER()
554 /* Check samples */ in ZTEST_USER()
555 check_samples(samples * 2, input_mv, 0 /* step */, 2 /* channels */, in ZTEST_USER()
558 check_samples(samples * 2, input_mv, 0 /* step */, 2 /* channels */, in ZTEST_USER()
562 check_empty_samples(samples * 2); in ZTEST_USER()
573 const int samples = 4; in ZTEST_USER() local
591 start_adc_read(adc_dev, BIT(ADC_1ST_CHANNEL_ID), samples); in ZTEST_USER()
594 * Check samples - returned value should max out on reference value. in ZTEST_USER()
597 check_samples(samples, ADC_REF_INTERNAL_MV, 0 /* step */, in ZTEST_USER()
601 check_empty_samples(samples); in ZTEST_USER()
603 for (i = 0; i < samples; i++) { in ZTEST_USER()
617 const int samples = 3; in ZTEST_USER() local
655 BIT(ADC_2ND_CHANNEL_ID), samples); in ZTEST_USER()
657 /* Check samples */ in ZTEST_USER()
658 check_samples(samples * 2, input1_mv, 0 /* step */, 2 /* channels */, in ZTEST_USER()
661 check_samples(samples * 2, input2_mv, 0 /* step */, 2 /* channels */, in ZTEST_USER()
665 check_empty_samples(samples * 2); in ZTEST_USER()
675 const int samples = 3; in ZTEST_USER() local
706 BIT(ADC_2ND_CHANNEL_ID), samples); in ZTEST_USER()
708 /* Check samples */ in ZTEST_USER()
709 check_samples(samples * 2, input1_mv, 0 /* step */, 2 /* channels */, in ZTEST_USER()
711 check_samples(samples * 2, input2_mv, 0 /* step */, 2 /* channels */, in ZTEST_USER()
714 check_empty_samples(samples * 2); in ZTEST_USER()
727 BIT(ADC_2ND_CHANNEL_ID), samples); in ZTEST_USER()
729 /* Check samples */ in ZTEST_USER()
730 check_samples(samples * 2, input1_mv, 0 /* step */, 2 /* channels */, in ZTEST_USER()
733 check_samples(samples * 2, input2_mv, 0 /* step */, 2 /* channels */, in ZTEST_USER()
737 check_empty_samples(samples * 2); in ZTEST_USER()