| 201 | //----------coulomb_end_at_here---------- |
| 202 | |
| 203 | uint16_t AXP192::GetVbatData(void) { |
| 204 | uint16_t vbat = 0; |
| 205 | uint8_t buf[2]; |
| 206 | ReadBuff(0x78, 2, buf); |
| 207 | vbat = ((buf[0] << 4) + buf[1]); // V |
| 208 | return vbat; |
| 209 | } |
| 210 | |
| 211 | uint16_t AXP192::GetVinData(void) { |
| 212 | uint16_t vin = 0; |
nothing calls this directly
no outgoing calls
no test coverage detected