18-12
Programmer’s Manual
Returns a single pair of X and Y coordinates of the pen-touch panel contact
point. A set of -1 will be returned from this module if the pen is out of the touch
panel range, i.e. pen up.
Parameter
Return Value
18.18
PenSetInputMax
Syntax
STATUS PenSetInputMax( S16 x, S16 y)
Description
It allows the user to define the bottom-right corner of the touch panel
coordinate in terms of screen display coordinate. It is usually called when the
system is doing calibration/re-calibration and should only be called by
CalibratePen( U16 logoFlag) at the device driver level.
Parameter
Return Value
Name
Description
xPos
Returns the X position of pen input point
yPos
Returns the Y position of pen input point
Name
Description
PPSM_OK
Successful operation
Name
Description
x
x-coordinate of
the bottom-right corner
of the touch panel coordinate in turn
of screen display coordinate.
y
y-coordinate of
the bottom-right corner
of the touch panel coordinate in turn
of screen display coordinate.
Name
Description
PPSM_OK
Successful operation
Personal Portable System Manager
Programmer’s Manual
Pen Input TPen Input Tools
18-13
Syntax
STATUS
PenSetInputOrg
Description
It allows the user to define the top-left corner of the touch panel coordinate in
terms of screen display coordinate. It is usually called when the system is
doing calibration/re-calibration and should only be called by CalibratePen( U16
logoFlag) at the device driver level.
Parameter
Return Value
18.20
PenSetRate
Syntax
STATUS
PenSetRate
Description
To allow user to define the period for pen sampling dynamically. The sampling
period set in an task does not affect other
task’s sampling period. It only takes
effect after at least one active area has been created under the calling task.
Parameter
Name
Description
x
y
Name
Description
PPSM_OK
Successful operation
Name
Description
samplingPeriod
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.