9-2
Text DisTimer Management
Programmer’s Manual
STATUS
AlarmReadId
(U32 alarmId P_U16 year P_U16 month P_U16 day
P_U16 hour P_U16 minute, P_U16 second)
Read the coming clock alarm time using AlarmRead() and read the specific clock
alarm time by using AlarmReadId(). If no alarm is set, all arguments will return
zero.
9.4
Setting Clock Alarm
STATUS
AlarmSet
(U16 year U16 month, U16 day U16 hour U16 minute, U16
second)
STATUS
AlarmSetId
(P_U32 alarmId U16 year U16 month, U16 day U16
hour U16 minute, U16 second)
Set the clock alarm. When the alarm time is reached, PPSM will generate a soft
interrupt to the application that called this tool. The interrupt message type will be
IRPT_RTC. If AlarmSetId() is used, the alarm id. will be returned with the
IRPT_RTC when time is reached.
9.5
Clearing Clock Alarm
void
AlarmClear
(void)
void
AlarmClearId
(U32 alarmId)
Clear the clock alarm in current task using AlarmClear() or clear specific alarm
using AlarmClearId(). PPSM will no longer generate the IRPT_RTC message to
the application.
9.6
Setting Periodic Alarm
STATUS
SetPeriod
(U16 period)
STATUS
SetPeriodId
(P_U32 alarmId U16 period)
Set or clear the periodic alarm. PPSM generates periodic interrupts to the
application that calls this tool. The HOUR periodic interrupt is applicable to
MC68EZ328 only. If SetPeriodId() is used to set a periodic alarm, the alarm id. will
be returned. The period that is allowed are:
RTC_PERI_NONE
Disable periodic interrupt
RTC_PERI_SECOND
Second periodic interrupt
RTC_PERI_MINUTE
Minute periodic interrupt
RTC_PERI_HOUR
Hour periodic interrupt
RTC_PERI_MIDNIGHT
Midnight periodic interrupt
Personal Portable System Manager
Programmer’s Manual
8-9
TextMap(tId, (P_TEXT)moto, len);
/* read current character cursor position (should be at beginning of 3rd row in this
case) */
TextReadCursor(tId, &curPos);
.
.
.
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.