57 addr = ((addr << 1) |
READ);
71 addr = ((addr << 1) |
WRITE);
116 uint8_t* bp = (uint8_t*) buf;
121 do *bp++ =
read();
while (--size);
130 uint8_t* bp = (uint8_t*) buf;
135 do write(*bp++);
while (--size);
uint8_t read_ram(uint8_t addr)
uint8_t minutes
00-59 Minutes.
Read/write bit in write mode.
void write(uint8_t addr, uint8_t data)
void set_time(time_t &now)
RTC register burst transfer.
OutputPin m_cs
Chip select, asserted high.
void write_protect(bool flag)
uint8_t month
01-12 Month.
static const size_t RAM_MAX
Read/write bit in read mode.
uint8_t seconds
00-59 Seconds.
IOPin m_sda
Serial data, bidirectional.
void _write(int value) const
void get_time(time_t &now)
uint8_t hours
00-23 Hours.
OutputPin m_clk
Clock for synchronized data.
void write_ram(uint8_t addr, uint8_t data)