Class RTC¶
Defined in File BlackBox_RTC.hpp
Inheritance Relationships¶
Base Type¶
public I2C::Device(Class Device)
Class Documentation¶
-
class
BlackBox::RTC: public I2C::Device¶ Class for interfacing with RTC.
Public Functions
-
RTC(std::uint16_t address = 0x68, i2c_port_t = 0)¶
-
~RTC() = default¶
-
virtual void
init() final¶
-
void
adjustRTC(std::tm newTime)¶
-
void
adjustESP()¶
-
void
reset()¶
-
std::tm
now()¶
-
M41T62Regs::M41T62_dev_t
registers() const¶ Retrieve copy of cached registers.
- Returns
copy of cached registers
-
const M41T62Regs::M41T62_dev_t &
regs() const¶ Retrieve const reference to cached registers.
- Returns
copy of cached registers
-
void
writeRegisters(const M41T62Regs::M41T62_dev_t&)¶ Write registers.
-