149
SYNTAX
int SYS_SetAlarm(int hour, int min, int sec);
INPUT
hour = hours (in decimal number)
min = minutes (in decimal number)
sec = seconds (in decimal number)
OUTPUT
0 Normal
< 0 Error (error within INT1Ah)
Note:
This function simply calls INT1AH (AH = 6) internally. Therefore, if this function or INT1Ah
(AH=6) is called and if the alarm has already been set, an error results.
Note that the validity of parameters as time is not checked.
Acquisition of Alarm Setting
This function is used to acquire the current alarm setting made for the RTC (Real Time Clock).
SYNTAX
void SYS_GetAlarm(int *hour, int *min, int *sec);
INPUT
hour = Pointer to the area from which hours is read.
min = Pointer to the area from which minutes is read.
sec = Pointer to the area from which seconds is read.
OUTPUT
None
Note :
This function returns the time data set for the RTC. Note that the validity of data as time is not
checked.