MCPcopy Create free account
hub / github.com/bmorcelli/Launcher / Read13Bit

Method Read13Bit

lib/utility/AXP192.cpp:72–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72uint16_t AXP192::Read13Bit(uint8_t Addr) {
73 uint16_t Data = 0;
74 uint8_t buf[2];
75 ReadBuff(Addr, 2, buf);
76 Data = ((buf[0] << 5) + buf[1]); //
77 return Data;
78}
79
80uint16_t AXP192::Read16bit(uint8_t Addr) {
81 uint16_t ReData = 0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected