21 #ifndef COSA_PCF8563_HH 22 #define COSA_PCF8563_HH 178 } __attribute__((packed));
204 } __attribute__((packed));
227 int read(
void* regs, uint8_t size, uint8_t pos = 0);
237 int write(
void* regs, uint8_t size, uint8_t pos = 0);
control_status_2_t cs2
Control Status 2.
control_status_1_t cs1
Control Status 1.
time_t clock
Real-Time Clock.
int read(void *regs, uint8_t size, uint8_t pos=0)
int write(void *regs, uint8_t size, uint8_t pos=0)
uint8_t hours
00-23 Hours (BCD).
timer_control_t tc
Timer Control.
uint8_t timer
Timer Period.
control_status_1_t(uint8_t value=0)
clock_control_t(uint8_t value=0)
bool set_alarm(alarm_t &alarm)
control_status_2_t(uint8_t value=0)
bool set_time(time_t &now)
static const uint8_t DISABLE
uint8_t date
01-31 Date (BCD).
bool get_alarm(alarm_t &alarm)
uint8_t as_uint8
Unsigned byte access.
uint8_t as_uint8
Unsigned byte access.
uint8_t as_uint8
Unsigned byte access.
uint8_t as_uint8
Unsigned byte access.
timer_control_t(uint8_t value=0)
IOStream & operator<<(IOStream &cout, PCF8563::alarm_t &alarm)
alarm_t alarm
Alarm Function.
bool get_time(time_t &now)
uint8_t minutes
00-59 Minutes (BCD).
clock_control_t cc
Clock Output Control.
uint8_t day
00-06 Day (BCD).