Lines Matching refs:output
151 uint32_t output; in adc_calculate_output() local
154 output = (input * (MAX_RESULT + 1)) / ref; in adc_calculate_output()
155 if (output > MAX_RESULT) { in adc_calculate_output()
156 output = MAX_RESULT; in adc_calculate_output()
159 return output; in adc_calculate_output()
208 uint32_t index, input, output, expected_output; in test_convert_internal() local
224 output = adc_read_data(qts, adc); in test_convert_internal()
225 g_assert_cmpuint(output, ==, expected_output); in test_convert_internal()
236 uint32_t index, input, vref, output, expected_output; in test_convert_external() local
255 output = adc_read_data(qts, adc); in test_convert_external()
256 g_assert_cmpuint(output, ==, expected_output); in test_convert_external()
268 uint32_t index, input, output, expected_output; in test_interrupt() local
284 output = adc_read_data(qts, adc); in test_interrupt()
285 g_assert_cmpuint(output, ==, expected_output); in test_interrupt()
328 uint32_t output; in test_calibrate() local
346 output = adc_read_data(qts, adc); in test_calibrate()
347 g_assert_cmpuint(output, ==, expected_output); in test_calibrate()
349 calibrated_voltage = adc_calibrate(output, expected_rv); in test_calibrate()