| 52 | } |
| 53 | |
| 54 | bool 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 | |
| 63 | bool probeBQ27220Signature() { |
| 64 | uint16_t soc = 0; |
no test coverage detected