|
Files |
file | otRTC.h |
| Real Time Clock Library for BF51x.
|
Modules |
| Version History |
| RTC - Code example |
Enumerations |
enum | RtcInterrupts {
Rtc_Stopwatch = 1,
Rtc_Alarm = 2,
Rtc_Seconds = 4,
Rtc_Minutes = 8,
Rtc_Hours = 16,
Rtc_24_Hours = 32,
Rtc_Day_Alarm = 64
} |
Functions |
U32 | RtcGetTime (U8 *h, U8 *m, U8 *s) |
| Get current time.
|
void | RtcSetTime (U8 h, U8 m, U8 s) |
| Set current time.
|
U32 | RtcGetDate (int *year, int *month, int *day) |
| Get current date.
|
void | RtcSetDate (int year, int month, int day) |
| Set date.
|
void | RtcSetAlarm (U8 h, U8 m, U8 s) |
| Set a time at which an interrupt will be triggered. Only hours, minutes, seconds are used.
|
void | RtcSetDayAlarm (int year, int month, int day, U8 h, U8 m, U8 s) |
| Set a time at which an interrupt will be triggered.
|
void | RtcOn () |
void | RtcSetInterruptService (void(*pCallback)(void)) |
void | RtcInterruptEnable (U16 intSource, bool ena) |
void | RtcSetCountDown (U16 val) |
| Set a value for the stopwatch.
|
U16 | RtcGetCountDown () |