User manual

RC200/203 Manual
www.celoxica.com Page 56
Parameters: Mode: A video mode expression.
ClockRate: Clock rate of the clock domain of the call to
RC200VideoOutRun() in Hz. Used to determine the
horizontal screen resolution.
Description:
Macro expressions which return the dimensions of the
visible screen (from 0 to
RC200VideoOutGetVisibleXY()-
1), and the total number of rows and columns scanned in
including blanking.
"CT" variants require a compile time constant mode, i.e. the
Mode parameter must not be store in a variable or passed
through a function parameter. As a result, the return value
is also a compile time constant.
5.11.4 Disabling video output
extern macro proc RC200VideoOutDisable ();
Parameters: None.
Timing: Typically 1 clock cycle.
Description: Disables the video output.
5.11.5 Writing a pixel
extern macro proc RC200VideoOutWrite24 (RGB24);
extern macro proc RC200VideoOutWrite30 (RGB30);
Parameters: RGB24: Compound colour expression, of type unsigned 24.
RGB30: Compound colour expression, of type unsigned 30.
Timing: 1 clock cycle.
Description:
Writes a single pixel to the display, at the current scan
position.
In both cases the video output expression is a concatenation
of the red, green and blue components (i.e. R @ G @ B). In
the case of 24-bit colour, these components are each 8 bits
wide. In the case of 30-bit colour, these components are
each 10 bits wide. In 24-bit mode, the lower DAC bits are
suitably padded to use the entire output range.
You must call
RC200VideoOutEnable() before using these
macros.