User manual
RC200/203 Manual
www.celoxica.com Page 61
Parameters: XPtr: Pointer to an lvalue of type unsigned 9.
YPtr: Pointer to an lvalue of type unsigned 9.
RGBPtr: Pointer to an lvalue of type unsigned 24.
Timing: 1 or more clock cycles (read blocks until data is ready).
Description:
Reads a single RGB encoded pixel from the video input
selected by
RC200VideoInSetInput(). This form of input
requires a colour space converter which is built automatically.
After the macro returns,
(*XPtr, *YPtr) are the coordinates
of the most recently sampled pixel, which has the colour value
(
*RGBPtr). Each pixel is presented at most once (pixels can be
missed if they are not read quickly enough), at a rate of 13.5
MHz
during the visible portion of the input video. The RGB
data is formatted as follows:
(*RGBPtr)[23:16] - Red value
(*RGBPtr)[15: 8] - Green value
(*RGBPtr)[ 7: 0] - Blue value
The chrominance and luminance values range from 0 to 255.
The value in
XPtr ranges from 0 to 719 for an entire video line
of 720 pixels. The value returned in
YPtr varies from 0 to the
number of visible lines - 1: 0-575 for PAL and 0-479 for NTSC.
5.13 Audio I/O macros
To use the audio macros you need to:
1. Call
RC200AudioRun() in parallel with the rest of your audio code.
2. Set the audio input to the line in connector or the microphone using
RC200AudioInSetInput().
5.13.1 Audio codec management tasks
extern macro proc RC200AudioRun (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 Audio codec. You
must run this macro in parallel with accesses to the device.