Hardware description
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 mouse PS/2 port and stores it in the
lvalue
pointed at by
DataPtr
.
Note that these are raw bytes from the mouse. To do interpreted access (e.g.
mouse positions) you should use the PAL PS/2 API.
5.8.3 Writing data to the mouse
extern macro proc RC200PS2MouseWrite (
Data
);
Parameters:
Data
: Data value of type
unsigned 8.
Timing:
1 or more clock cycles (until data is sent).
Description:
Writes a single item of data to the mouse PS/2 port from the expression
Data
.
Note that these are raw bytes to the mouse. To do interpreted access (e.g. mouse
positions) you should use the PAL PS/2 API.
5.8.4 Keyboard management tasks
extern macro proc RC200PS2KeyboardRun (
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 keyboard. You must run this macro in
parallel with accesses to the device.
5.8.5 Reading data from the keyboard
extern macro proc RC200PS2KeyboardRead (
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 keyboard PS/2 port and stores it in the
lvalue
pointed at by
DataPtr
.
Note that these are raw bytes from the keyboard. To do interpreted access (e.g.
ASCII keyboard characters) you should use the PAL PS/2 API.
5.8.6 Writing data to the keyboard
extern macro proc RC200PS2KeyboardWrite (
Data
);
www.celoxica.com
Page 43