Real-Time Clock (OAL) (Compact 2013)
3/26/2014
The real-time clock (RTC) manages time and date information and handles alarms. The header file that defines the RTC module interface is %_WINCEROOT%\Platform\Common\Src\Inc\oal_rtc.h. The RTC functions are typically part of a library with a name similar to oal_rtc_timer.lib, but they are ultimately linked into oal.lib, and then oal.exe.
The following table lists the main RTC functions. You can find sample code that implements these functions for an x86-based RTC in the folder %_WINCEROOT%\Platform\common\src\x86\common\rtc.
Purpose |
Function name |
---|---|
Sets the time |
|
Gets the time |
For more information about these functions, see OAL Functions.