NetBurner 3.5.6
PDF Version
platform/SB800EX/include/rtc.h
1/*NB_REVISION*/
2
3/*NB_COPYRIGHT*/
4
5/*******************************************************************************
6 * The following is a description of the basic time structure defined in the
7 * time.h standard C library, which is used by the RTC functions.
8 *
9 * struct tm
10 * {
11 * int tm_sec; // Second (0-59)
12 * int tm_min; // Minute (0-59)
13 * int tm_hour; // Hour (0-23)
14 * int tm_mday; // Day of the month (1-31)
15 * int tm_mon; // Month of the year [January(0)-December(11)]
16 * int tm_year; // Years since 1900
17 * int tm_wday; // Day of the week [Sunday(0)-Saturday(6)]
18 * int tm_yday; // Days since January 1st (0-365)
19 * int tm_isdst; // Daylight Saving Time flag (in effect if greater than
20 * // zero, not in effect if equal to zero, information not
21 * // available if less than zero)
22 * };
23 ******************************************************************************/
24
25#ifndef _RTC_H
26#define _RTC_H
27
28#include <time.h>
29
30#ifdef __cplusplus
31extern "C"
32{
33#endif /* __cplusplus */
34
43 int RTCGetTime(struct tm &bts);
44
52 int RTCSetTime(struct tm &bts);
53
59 int RTCSetSystemFromRTCTime(void);
60
66 int RTCSetRTCfromSystemTime(void);
67
68#ifdef __cplusplus
69}
70#endif /* __cplusplus */
71
72#endif /* _RTC_H */