8.2 Resetting the RTC
LeoSetRTC( )function
#include
<PR/leo.h> s32 LeoSetRTC(LEOCmd *cmdBlock, LEODiskTime *RTCdata, OSMesgQueue *mq); RTCdata specified time |
Sets the RTC time to the time specified by RTCdata, a LEODiskTime structure. See the previous section for information on the LEODiskTime structure.
The years (yearhi, yearlo) that can be set are in the range 1996 to 2095. Attempting to use a value outside this range causes a LEO_ERROR_ILLEGAL_TIMER_VALUE error to be returned.
For information on return values, cmdBlock, or mq, see the description in section "Section 7.2, Asynchronous Functions."