GxFpga3571SetModeline

Purpose

Sets the specified modeline parameter.

Syntax

GxFpgaSetModeline (nHandle ,nScroll, nSignal, dwValue, pnStatus)

Parameters

Name
Type
Comments
nHandle
SHORT
Handle to a GX3500 board.
nScroll
SHORT
The scroll can be as follows:
0.   GXFPGA_3571_MODELINE_SCROLL_HORIZONTAL.
1.   GXFPGA_3571_MODELINE_ SCROLL_VERTICAL.
nSignal
SHORT
The modeline signal parameter can be as follows:
0.   GXFPGA_3571_MODELINE_ SIGNAL_ SYNC.
1.   GXFPGA_3571_MODELINE_ SIGNAL_FRONT_PORCH.
2.   GXFPGA_3571_MODELINE_ SIGNAL_SYNC_PULSE.
3.   GXFPGA_3571_MODELINE_ SIGNAL_BACK_PORCH.
dwValue
PDWORD
See comments below.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

The value for dwValue is dependent on the signal parameter requested:

GXFPGA_3571_MODELINE_ SIGNAL_SYNC – The returned value is the number of pixels per line.

GXFPGA_3571_MODELINE_ SIGNAL_FRONT_PORCH – The number of black pixels drawn to the right / bottom of the screen.

GXFPGA_3571_MODELINE_ SIGNAL_SYNC_PULSE – The amount of time it takes: to start another line / move back up to the first line.

GXFPGA_3571_MODELINE_ SIGNAL_BACK_PORCH – The number of black pixels drawn to the left / top of the screen.

Example

The following example sets the number of pixels per line on the horizontal scroll to 720:

 

GxFpga3571SetModeline (nHandle, GXFPGA_3571_MODELINE_SCROLL_HORIZONTAL, GXFPGA_3571_MODELINE_ SIGNAL_SYNC, 720, &nStatus);

 

See Also

GxFpga3571ResetModeline, GxFpga3571SetAdvancedMode, GxFpga3571GetAdvancedMode, GxFpgaGetErrorString