Lines Matching refs:input_mv
36 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()
139 int32_t input_mv = 3000; in test_task_current_sense_amplifier() local
143 ret = init_adc(&adc_node_2.port, input_mv); in test_task_current_sense_amplifier()
160 zassert_within(calculated_current, input_mv * 2, MV_OUTPUT_EPS, in test_task_current_sense_amplifier()
162 input_mv * 2); in test_task_current_sense_amplifier()