Description: hour: 0-23.
minute: 0-59.
sec: 0-59.
Return Value: On success, returns NoError.
On error, returns the TimeError (-19).
Example: Please refer to “GetTime()” for more detailed information.
GetDate()
Function: Reads the system date from the RTC
Syntax:
void GetDate(int *year,int *month,int *day);
Header: #include
”7188xc.h”
Description: year: 2000-2080
month: 1-12
day: 1-31
Example: Please refer to “GetTime()” for more detailed information.
SetDate()
Function: Sets the system date to the RTC
Syntax:
int SetDate(int year,int month,int day);
Header: #include
”7188xc.h”
Description: year: 2000-2080
month: 1-12
day: 1-31
Return Value: On success, returns NoError.
On error, returns DateError (-18).
Example: Please refer to “GetTime()” for more detailed information.
GetWeekDay()
Function: Reads the weekday from the RTC.
Syntax:
int GetWeekDay(void);
Header: #include
”7188xc.h”
Description: Reads the weekday from the RTC.
Return Value: 0=>Sunday
1-6=>Monday to Saturday.
Example: Please refer to “GetTime()” for more detailed information.
Note:
GetWeekDay() does not check whether the weekday is correct
or not, only reads the value from the RTC. When using the MiniOS7
I-7188XC Series User’s Manual(Ver.1.0, Apr/2007,7MH-21-10) ---
111
Содержание I-7188XC Series
Страница 87: ...I 7188XC Series User s Manual Ver 1 0 Apr 2007 7MH 21 10 87...
Страница 136: ...I 7188XC Series User s Manual Ver 1 0 Apr 2007 7MH 21 10 136...
Страница 142: ...Step 8 Make the project I 7188XC Series User s Manual Ver 1 0 Apr 2007 7MH 21 10 142...
Страница 149: ...Step 8 Rebuild the project I 7188XC Series User s Manual Ver 1 0 Apr 2007 7MH 21 10 149...