11 #ifndef __BRP_BALTECH_API_CMDS_RTC_H__ 12 #define __BRP_BALTECH_API_CMDS_RTC_H__ 13 #include "../typedefs.h" 17 #define BRP_Rtc_ErrHardware BRP_ERR_STATUS(0x0400, 0x01) 21 #define BRP_Rtc_ErrVoltageLow BRP_ERR_STATUS(0x0400, 0x02) brp_errcode brp_Rtc_GetTime(brp_protocol protocol, unsigned ClockId, unsigned *Now)
Retrieve current time of on-board RTC.
unsigned int brp_errcode
This type is used library-wide for passing error codes in the return value of functions.
struct brp_protocol_t * brp_protocol
This is a generic handle of a protocol.
brp_errcode brp_Rtc_SetTime(brp_protocol protocol, unsigned ClockId, unsigned Now)
Set the time of the on-board RTC.