MCPcopy Create free account
hub / github.com/BruceDevices/firmware / GetVusbinData

Method GetVusbinData

lib/utility/AXP192.cpp:227–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225}
226
227uint16_t AXP192::GetVusbinData(void) {
228 uint16_t vin = 0;
229 uint8_t buf[2];
230 ReadBuff(0x5a, 2, buf);
231 vin = ((buf[0] << 4) + buf[1]); // V
232 return vin;
233}
234
235uint16_t AXP192::GetIusbinData(void) {
236 uint16_t iin = 0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected