C API for BALTECH SDK
rtc.h
Go to the documentation of this file.
1 
12 #ifndef __BRP_BALTECH_API_CMDS_RTC_H__
13 #define __BRP_BALTECH_API_CMDS_RTC_H__
14 #include "../typedefs.h"
19 #define BRP_Rtc_ErrHardware BRP_ERR_STATUS(0x0400, 0x01)
20 
24 #define BRP_Rtc_ErrVoltageLow BRP_ERR_STATUS(0x0400, 0x02)
25 
33 brp_errcode brp_Rtc_GetTime(brp_protocol protocol, unsigned ClockId, unsigned* Now);
42 brp_errcode brp_Rtc_SetTime(brp_protocol protocol, unsigned ClockId, unsigned Now);
43 #endif
44 
brp_errcode brp_Rtc_GetTime(brp_protocol protocol, unsigned ClockId, unsigned *Now)
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)