![](http://datasheet.mmic.net.cn/260000/PPSMMANUAL_datasheet_15946768/PPSMMANUAL_160.png)
29-6
SysInterrupt Handling Tools
Programmer’s Manual
29.4
IrptSendData
Syntax
STATUS
IrptSendData
(U16 irptType, U32 sData,P_U32 data,U32 size)
Description
Passes the user defined interrupt message from interrupt handler back to
application level. This routine should be called from the user installed inteSyntax
handler only. After this message is sent from the interrupt handler, the
application that has requested the handler will be able to receive this message
via the IrptGetData() tool.
Parameter
Return Value
Name
Description
irptType
Interrupt Identifier:
IRPT_SPIM
IRPT_SPIS(DragonBall only)
IRPT_IRQ1
IRPT_IRQ2
IRPT_IRQ3
IRPT_IRQ6
IRPT_INT
IRPT_WDOG
IRPT_PWM
IRPT_USER
sData
This field can be used to send 4 bytes or
less data to the application
data
Data buffer for storing data to send to the
application
size
The size of data being sent, in number of
bytes
Name
Description
PPSM_OK
Successful operation
PPSM_ERR_IRPT_HANDLER
Handler not requested by application
PPSM_NO_MEMORY
Not enough memory
Personal Portable System Manager
Programmer’s Manual
30-1
Chapter 30 System Tools
30.1
PPSMInit
STATUS
PPSMInit
(U16
Description
PPSM initialization routine. This routine must be called at the beginning of the
system file before any of the PPSM tools can be used.
The input argument allows the system caller to decide if pen calibration is
required at this time.
With the default calibration device driver, two cross-hairs will be drawn on the
screen, one near the top-right corner and the other near the bottom-left corner.
The user must press the center of these cross-hairs one at a time to perform
the pen input calibration.
The default calculation value is based on a LCD that has 320 pixels by 240
pixels (physical sizes 12 cm by 9 cm), using a 10-bit A/D convertor. An offset
of 100 (in A/D output unit) is chosen as the A/D non-linear area around the
edge of the touch panel. User may define his own calibration method by
changing CalibratePen() in PenInit.C of the device driver library.
If logo displaying is required, a Motorola logo will be displayed on the LCD
screen during the pen calibration. Depending on the physical LCD screen
dimensions, a different logo is displayed. There are 2 logos, one for a large
screen, one for a small screen. If the LCD screen width is less than 150 pixels
or the LCD height is less than 80 pixels, no logo is displayed.
Width (pixels)
Height (pixels)
Motorola Logo
width => 280
height => 150
Standard Logo
150 <= width < 280
80 <= height < 150
New Small Logo
width < 150
height < 80
None
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.