Searched refs:current_lsb_uA (Results 1 – 2 of 2) sorted by relevance
/Zephyr-latest/tests/drivers/sensor/ina230/src/ |
D | ina230_test.c | 25 const uint16_t current_lsb_uA; member 57 if (fixture->current_lsb_uA != 1000 || fixture->rshunt_uOhms != 2000) { in test_datasheet_example() 97 double shunt_cal = 5120e-6 / (fixture->current_lsb_uA * 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() 196 double power_expected_W = power_register * scale * fixture->current_lsb_uA * 1e-6; in test_power() 217 .current_lsb_uA = DT_INST_PROP(inst, current_lsb_microamps), \
|
/Zephyr-latest/tests/drivers/sensor/ina237/src/ |
D | ina237_test.c | 20 const uint16_t current_lsb_uA; member 52 double shunt_cal = 819.2e6 * fixture->current_lsb_uA * 1e-6 * fixture->rshunt_uOhms * 1e-6; in test_shunt_cal() 86 double current_expected_A = fixture->current_lsb_uA * 1e-6 * current_register; in test_current() 96 zexpect_within(current_expected_A, current_actual_A, fixture->current_lsb_uA*1e-6, in test_current() 151 double power_expected_W = 0.2 * fixture->current_lsb_uA * 1e-6 * power_register; in test_power() 251 .current_lsb_uA = DT_INST_PROP(inst, current_lsb_microamps), \
|