Lines Matching +full:6 +full:ma
56 /* only run test for datasheet example of 1mA current LSB and 2 mOhm shunt */ in test_datasheet_example()
78 zexpect_within(11.98, actual, 1.25e-3, "Expected 11.98 V, got %.6f V", actual); in test_datasheet_example()
82 zexpect_within(10.0, actual, 1e-3, "Expected 10 A, got %.6f V", actual); in test_datasheet_example()
86 zexpect_within(119.82, actual, 25e-3, "Expected 119.82 W, got %.6f W", actual); in test_datasheet_example()
96 /* Confirm SHUNT_CAL register which is 5120e-6 / Current_LSB * Rshunt */ in test_shunt_cal()
97 double shunt_cal = 5120e-6 / (fixture->current_lsb_uA * 1e-6 * in test_shunt_cal()
98 fixture->rshunt_uOhms * 1e-6); in test_shunt_cal()
127 double current_expected_A = fixture->current_lsb_uA * 1e-6 * current_register; in test_current()
137 zexpect_within(current_expected_A, current_actual_A, fixture->current_lsb_uA*1e-6, in test_current()
138 "Expected %.6f A, got %.6f A", current_expected_A, current_actual_A); in test_current()
171 zexpect_within(voltage_expected_V, voltage_actual_V, 1e-6, in test_bus_voltage()
172 "Expected %.6f A, got %.6f A", voltage_expected_V, voltage_actual_V); in test_bus_voltage()
196 double power_expected_W = power_register * scale * fixture->current_lsb_uA * 1e-6; in test_power()
206 zexpect_within(power_expected_W, power_actual_W, 1e-6, in test_power()
207 "Expected %.6f W, got %.6f W for %d", power_expected_W, in test_power()
254 DT_INST_FOREACH_STATUS_OKAY_VARGS(INA230_TESTS, 6)