Hardware description
5.9.2 Reading from the RS-232 port
extern macro proc RC200RS232Read (
DataPtr
);
Parameters:
DataPtr
: Pointer to an
lvalue
of type
unsigned 8.
Timing:
1 or more clock cycles (the read is blocked until data is ready).
Description:
Reads a single item of data from the RS232 port and stores it in the
lvalue
pointed at by
DataPtr
.
5.9.3 Writing to the RS-232 port
extern macro proc RC200RS232Write (
Data
);
Parameters:
Data
: data value of type
unsigned 8.
Timing:
1 or more clock cycles (until the data is sent).
Description:
Writes a single item of data to the RS-232 port from the expression
Data
.
5.10 Touch screen macros
You can use the touch screen macros to determine the position of the pointing device.
RC200TouchScreenReadRaw()
determines the position in raw coordinates.
RC200TouchScreenReadScaled()
determines the position scaled to 640 x 480 resolution. You need
to run these macros in parallel with
RC200TouchScreenRun()
.
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
);
www.celoxica.com
Page 46