BALTECH SDK wrapper functions reference
rtc.h
Go to the documentation of this file.
1 
10 #ifndef __BRP_BALTECH_SDK_CMDS_RTC_H__
11 #define __BRP_BALTECH_SDK_CMDS_RTC_H__
12 #include "../typedefs.h"
13 #ifdef BALTECH_SDK_INTERNAL
14 
17 #define BRP_Rtc_ErrHardware BRP_ERR_STATUS(0x0400, 0x01)
18 #endif // BALTECH_SDK_INTERNAL
19 #ifdef BALTECH_SDK_INTERNAL
20 
23 #define BRP_Rtc_ErrVoltageLow BRP_ERR_STATUS(0x0400, 0x02)
24 #endif // BALTECH_SDK_INTERNAL
25 #ifdef BALTECH_SDK_INTERNAL
26 typedef struct {
27  brp_protocol protocol;
28  unsigned ClockId;
29  unsigned* Now;
30 } brp_Rtc_GetTime_t;
39 #ifdef BRP_SUPPORT_LEGACY_METHODS
40 brp_errcode brp_Rtc_GetTime(brp_protocol protocol, unsigned ClockId, unsigned* Now);
41 #else
42 brp_errcode brp_Rtc_GetTime(brp_Rtc_GetTime_t params);
43 #endif
44 #endif // BALTECH_SDK_INTERNAL
45 #ifdef BALTECH_SDK_INTERNAL
46 typedef struct {
47  brp_protocol protocol;
48  unsigned ClockId;
49  unsigned Now;
50 } brp_Rtc_SetTime_t;
59 #ifdef BRP_SUPPORT_LEGACY_METHODS
60 brp_errcode brp_Rtc_SetTime(brp_protocol protocol, unsigned ClockId, unsigned Now);
61 #else
62 brp_errcode brp_Rtc_SetTime(brp_Rtc_SetTime_t params);
63 #endif
64 #endif // BALTECH_SDK_INTERNAL
65 #endif
66 
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