23-6
Timer Tools
Programmer’s Manual
23.8
DateTimeSet
Syntax
STATUS
DateTimeSet
(U16 year U16 month U16 day U16 hour U16 minute
U16 second)
Description
Sets the system date and time.
Parameter
Return Value
PPSM_ERR_YEAR
Invalid year pointer
PPSM_ERR_MONTH
Invalid month pointer
PPSM_ERR_DAY
Invalid day pointer
PPSM_ERR_HOUR
Invalid hour pointer
PPSM_ERR_MINUTE
Invalid minute pointer
PPSM_ERR_SECOND
Invalid second pointer
Name
Description
year
Input year value, starts from 1900
month
Input month value, in range 1 - 12
day
Input day value, in range 1 - 31
hour
Input hour value, in range 0 - 23
minute
Input minute value, in range 0 - 59
second
Input second value, in range 0 - 59
Name
Description
PPSM_OK
Successful operation
PPSM_ERR_YEAR
Invalid year value
PPSM_ERR_MONTH
Invalid month value
PPSM_ERR_DAY
Invalid day value
PPSM_ERR_HOUR
Invalid hour value
PPSM_ERR_MINUTE
Invalid minute value
PPSM_ERR_SECOND
Invalid second value
Name
Description
Personal Portable System Manager
Programmer’s Manual
Timer Tools
23-7
23.9
DeleteTimer
Syntax
STATUS
DeleteTimer
Description
Delete the timer in timer list specified by
task as far as the timer identifier is known.
. Timer can be deleted in any
Parameter
Return Value
InputTimeout
Syntax
STATUS
InputTimeout
Description
Sets the repetitive time-out period for data input from the touch panel. This
time-out routine is an explicit time-out routine dedicated for the pen input
device.
Once this time-out routine is activated, the time-out period specified in the
argument list is set and count down begins immediately after pen up condition
is detected. If the time-out period expires before the next pen down has
occurred, PPSM will generate a timer interrupt to the calling application;
otherwise, the time-out period is reset ready for the next pen input sequence.
This is a repetitive time-out that will continuously set the timer for time-out after
each pen input stroke, until it is disabled.
To disable the time-out, call this function with zero as the argument. Maximum
value allowed is 1000.
In IrptGetData(), the alarm id read will be 0xFFFFFFFF to distinguish this input
timeout from normal timeout.
Name
Description
timerId
Name
Description
PPSM_OK
Successful operation
PPSM_ERROR
If the
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.