User manual

RC200/203 Manual
www.celoxica.com Page 52
5.10.1 Touch screen management tasks
extern macro proc RC200TouchScreenRun (ClockRate);
Parameters:
ClockRate: Clock rate of the clock domain of the call to this
macro, in Hz.
Timing: Does not terminate in normal use.
Description:
Runs the device management tasks for the touch screen. You
must run this macro in parallel with accesses to the device.
5.10.2 Touch screen position (raw)
extern macro proc RC200TouchScreenReadRaw (XPtr, YPtr, TouchPtr);
Parameters: XPtr: Pointer to an lvalue of type unsigned 12.
YPtr: Pointer to an lvalue of type unsigned 12.
TouchPtr: Pointer to an lvalue of type unsigned 1.
Timing: 1 clock cycle.
Description:
Returns the last sensed position of the pointing device on the
touch screen, in raw coordinates. The coordinates range from 0
to 4095 and are independent of display resolution.
The value returned in
*TouchPtr is the current state of the
pointing device, where 1 means the pointer is touching the
screen.
5.10.3 Touch screen position (scaled)
extern macro proc RC200TouchScreenReadScaled (XPtr, YPtr, TouchPtr);