SDK Programming Guide Version 1.511
ABLELink
R
Ethernet-Serial Server MAXI Series
WriteRTCDate
Description:
Write the Date to the RTC as system date.
Include:
DAPAPI.H
Usage: void WriteRTCDate( uchar year, uchar month, uchar day, uchar
weekday);
Input Parameters:
With BCD format
year
:
0x00 ~ 0x99 (2000 ~ 2099 years, BCD format).
month
:
0x01 ~ 0x12 (1 ~ 12 month, BCD format).
day
:
0x01 ~ 0x31 (1 ~ 31 day, BCD format).
weekday
:
0x01 ~ 0x07 (1 ~ 7 weekday, BCD format).
Return Value:
None
Example:
//if set the date to (2001/03/16 F)
WriteRTCTime(0x01, 0x03, 0x16, 0x05);
Remarks:
EnableWRProtect
Description:
Enable RTC write protect. (user can only read RTC but not write it).
Include:
DAPAPI.H
Usage: void
EnableWRProtect(void);
Input Parameters:
void
Return Value:
None
Example:
EnableWRProtect();
Remarks:
DisableWRProtect
Description:
Disable RTC write protect. (user can read and write RTC).
Include:
DAPAPI.H
Usage: void
DisableWRProtect(void);
Input Parameters:
void
Return Value:
None
Example:
DisableWRProtect();
Remarks:
Copyright © 2004 Atop Technologies, Inc.
All rights reserved. Designed in Taiwan.