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

Method ReadReg

lib/RTC/cplus_RTC.cpp:174–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172}
173
174uint8_t cplus_RTC::ReadReg(uint8_t reg) {
175 wr->beginTransmission(0x51);
176 wr->write(reg);
177 wr->endTransmission(false);
178 wr->requestFrom(0x51, 1);
179 return wr->read();
180}
181
182int cplus_RTC::SetAlarmIRQ(int afterSeconds) {
183 uint8_t reg_value = 0;

Callers

nothing calls this directly

Calls 2

writeMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected