Loads the video memory with the specified color.
GxFpga3571LoadColor (nHandle ,dwRgbColor, pnStatus)
Name |
Type |
Comments |
nHandle |
SHORT |
Handle to a GX3500 board. |
dwRgbColor |
SHORT |
Specified the 24-bit RGB value to load into the video memory.See comments. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
The GX3571 must be set to standby/programming mode using GxFpga3571SetVideoOutputMode prior to calling this function.
This function will program the video memory to output the user-specified RGB pixel. dwRgbColor should be formatted as follows:
32-bit DWORD = [2 bits XX] [8 bits red] [2 bits XX] [8 bits green] [2 bits XX] [8 bits blue] [2 bits XX].
The following constants are provided:
GXFPGA_3571_COLOR_BLACK = 0x00000000.
GXFPGA_3571_COLOR_WHITE = 0x3FCFF3FC.
GXFPGA_3571_COLOR_RED = 0x3FC00000.
GXFPGA_3571_COLOR_GREEN = 0x000FF000.
GXFPGA_3571_COLOR_BLUE = 0x000003FC.
GXFPGA_3571_COLOR_YELLOW = 0x3FCFF000.
GXFPGA_3571_COLOR_CYAN = 0x000FF3FC.
GXFPGA_3571_COLOR_MAGENTA = 0x3FC003FC.
The following example sets the GX3571 to output a green screen:
GxFpga3571LoadColor (nHandle, GXFPGA_3571_COLOR_GREEN, &nStatus);
GxFpga3571SetVideoMode , GxFpga3571LoadArray, GxFpga3571LoadFile, GxFpgaGetErrorString