C API for BALTECH SDK
rtc.h
Go to the documentation of this file.
1 
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)
18 
21 #define BRP_Rtc_ErrVoltageLow BRP_ERR_STATUS(0x0400, 0x02)
22 
29 brp_errcode brp_Rtc_GetTime(brp_protocol protocol, unsigned ClockId, unsigned* Now);
37 brp_errcode brp_Rtc_SetTime(brp_protocol protocol, unsigned ClockId, unsigned Now);
38 #endif
39 
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.
Definition: errorcodes.h:23
struct brp_protocol_t * brp_protocol
This is a generic handle of a protocol.
Definition: protocol.h:34
brp_errcode brp_Rtc_SetTime(brp_protocol protocol, unsigned ClockId, unsigned Now)
Set the time of the on-board RTC.