
23-2
Timer Tools
Programmer’s Manual
23.3
AlarmRead
Syntax
STATUS
AlarmRead
(P_U16 year P_U16 month, P_U16 day P_U16 hour
P_U16 minute, P_U16 second)
Description
Reads the up coming alarm set for the current task in alarm list.
Parameter
Return Value
23.4
AlarmReadId
Syntax
STATUS
AlarmReadId
(U32 alarmId, P_U16 year, P_U16 month P_U16 day
P_U16 hour P_U16 minute, P_U16 second)
Description
This function will read the alarm time set in alarmId.
Parameter
Name
Description
year
Pointer to the year value of the alarm
month
Pointer to the month value of the alarm
day
Pointer to the day value of the alarm
hour
Pointer to the hour value of the alarm
minute
Pointer to the minute value of the alarm
second
Pointer to the second value of the alarm
Name
Description
PPSM_OK
Successful operation
PPSM_ERR_NO_ALARM
No alarm is set
Name
Description
alarmId
The identifier of the alarm to be read
year
Pointer to the year of the alarm
month
Pointer to the month of the alarm
Personal Portable System Manager
Programmer’s Manual
Timer Tools
23-3
Return Value
AlarmSet
Syntax
STATUS
AlarmSet
(U16
second)
Description
Sets the year month
set, the application will receive a software interrupt message from the system
when the specified time is reached.
values of an alarm. Once
Parameter
day
hour
minute
second
Name
Description
PPSM_OK
Successful operation
PPSM_ERROR
Error if any of the year, month, day, hour,
minute or second is NULL
PPSM_ERR_NO_ALARM
No alarm with the specified
Name
Description
year
month
day
hour
minute
second
Name
Description
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.