Home
last modified time | relevance | path

Searched refs:input_mv (Results 1 – 2 of 2) sorted by relevance

/Zephyr-Core-3.5.0/tests/drivers/adc/adc_rescale/src/
Dmain.c36 static int init_adc(const struct adc_dt_spec *spec, int input_mv) in init_adc() argument
46 ret = adc_emul_const_value_set(spec->dev, spec->channel_id, input_mv); in init_adc()
59 int32_t input_mv = 1000; in test_task_voltage_divider() local
63 ret = init_adc(&adc_node_0.port, input_mv); in test_task_voltage_divider()
81 zassert_within(calculated_voltage, input_mv * 2, MV_OUTPUT_EPS, in test_task_voltage_divider()
82 "%u != %u should have set value", calculated_voltage, input_mv * 2); in test_task_voltage_divider()
99 int32_t input_mv = 3000; in test_task_current_sense_shunt() local
103 ret = init_adc(&adc_node_1.port, input_mv); in test_task_current_sense_shunt()
120 zassert_within(calculated_current, input_mv * 2, MV_OUTPUT_EPS, in test_task_current_sense_shunt()
122 input_mv * 2); in test_task_current_sense_shunt()
[all …]
/Zephyr-Core-3.5.0/tests/drivers/adc/adc_emul/src/
Dmain.c198 const uint16_t input_mv = 1500; in ZTEST_USER() local
213 ret = adc_emul_const_value_set(adc_dev, ADC_1ST_CHANNEL_ID, input_mv); in ZTEST_USER()
220 check_samples(samples, input_mv, 0 /* step */, 1 /* channels */, in ZTEST_USER()
273 const uint16_t input_mv = 1500; in ZTEST_USER() local
288 channel1_param.value = input_mv; in ZTEST_USER()
298 check_samples(samples, input_mv, SEQUENCE_STEP, 1 /* channels */, in ZTEST_USER()
409 const uint16_t input_mv = 1000; in ZTEST_USER() local
429 ret = adc_emul_const_value_set(adc_dev, ADC_1ST_CHANNEL_ID, input_mv); in ZTEST_USER()
432 ret = adc_emul_const_value_set(adc_dev, ADC_2ND_CHANNEL_ID, input_mv); in ZTEST_USER()
439 check_samples(samples * 2, input_mv, 0 /* step */, 2 /* channels */, in ZTEST_USER()
[all …]