![](http://datasheet.mmic.net.cn/260000/PPSMMANUAL_datasheet_15946768/PPSMMANUAL_82.png)
15-2
Programmer’s Manual
to the application.
15.1.1
IRPT_AUDIO
It is a message generated from audio tools. An audio stops after it has finishefor buttons, and selection icons.
the user has called AudioStopTone() or AudioStopWave(). After audio playing
stops, this interrupt is sent to the task that called AudioPlayTone() or
AudioPlayWave() to indicate that the audio playing is finished.
15.1.2
IRPT_PEN
It is a message generated from a pen active area. When the application defines
an active area as pen area on the display, this message is sent to the application
when pen input sequence occurs over this active area. The message returns the
coordinates of the pen input points.
The data message returned by IRPT_PEN consists of a list of 16-bit words. Each
pair of 16-bit words in the list represents the x and y coordinate of a pen input
point on the touch panel. There will always be at least 1 pair of coordinate. A pair
of (-1,-1) signals the end of the list.
15.1.3
IRPT_INPUT_STATUS
This message is sent to the application to report the pen action status at the
beginning and the end of each pen action within a valid pen active area. For
example, when an active area created for pen input is touched, this message,
Table 15-1 System Interrupt Identifiers
Interrupt Identifier
Interrupt Source
Data from Handler
IRPT_AUDIO
PPSM Audio tools,
indicating audio stopped
N/A
IRPT_HWR
Handwriting recognition
Data from handwriting
recognition engine
IRPT_ICON
Icon input
Icon active area identifier and
status
IRPT_INPUT_STATUS
Pen input with pen status
Pen status information
IRPT_KEY
Soft keyboard input
Keycode, coordinate of pen
touch
IRPT_NONE
No interrupt
N/A
IRPT_PEN
Pen input
Pointer to (x,y) list
IRPT_RTC
System clock alarm
N/A
IRPT_TIMER
Timer timeout and alarm
N/A
IRPT_UART
UART data transfer
Data transmission status
IRPT_USER
User
User defined
Personal Portable System Manager
Programmer’s Manual
Interrupt Interrupt Handling
15-3
together with the pen status, is sent to the application before any of the pen (x, y)
coordinates are sent; then, when the pen stroke is finished and the pen leaves the
touch panel, this message is again sent to the application after the last (x, y)
coordinate to report the pen-up condition. This status allows the application to be
aware of the pen action sequence, whether it has been dragged in from another
area, or it is a pen down, etc.
shows the messages types that are
returned. Figure 15-2shows the pen actions that would generate these pen
messages.
15.1.4
IRPT_ICON
Icon area is for the purpose of selection only. It does not yield any coordinate data
from the pen interrupt handler. When an icon active area is touched, PPSM sends
a soft interrupt with its i
dentifier to the application’s interrupt buffer. Two soft
interrupts will be generated from each action: one interrupt for pen-down or pen
drag in, and one interrupt for pen-up or pen drag up. This type of area is designed
Table 15-3
shows the messages types that are returned.
Table 15-2 Messages generated for IRPT_INPUT_STATUS
Message
Description
PPSM_INPUT_TOUCH
A pen down condition
PPSM_INPUT_DRAG
Pen is dragged in from another area
PPSM_INPUT_PEN_UP
Pen has left the touch panel
PPSM_INPUT_DRAG_UP
Pen is dragged out of the current pen area into
another area
Table 15-3 Messages generated for IRPT_ICON
Message
Description
PPSM_ICON_TOUCH
An icon pen down condition
Pen is dragged in from another area
PPSM_ICON_PEN_UP
Pen has left the touch panel
PPSM_ICON_DRAG_UP
Pen is dragged out of the current pen area into
another area
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.