MCPcopy Create free account
hub / github.com/crosspoint-reader/crosspoint-reader / readBQ27220CurrentMA

Function readBQ27220CurrentMA

lib/hal/HalGPIO.cpp:54–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54bool readBQ27220CurrentMA(int16_t* outCurrent) {
55 uint16_t raw = 0;
56 if (!readI2CReg16LE(I2C_ADDR_BQ27220, BQ27220_CUR_REG, &raw)) {
57 return false;
58 }
59 *outCurrent = static_cast<int16_t>(raw);
60 return true;
61}
62
63bool probeBQ27220Signature() {
64 uint16_t soc = 0;

Callers 1

isUsbConnectedMethod · 0.85

Calls 1

readI2CReg16LEFunction · 0.85

Tested by

no test coverage detected