GxFpgaWriteRegister

Purpose

Writes a buffer of 32-bit double words to the FPGA’s register space.

Syntax

GxFpgaWriteRegister (nHandle, dwOffset, pvData, dwSize, pnStatus)

Parameters

Name
Type
Comments
nHandle
SHORT
Handle for a GX3700 board.
dwOffset
DWORD
The offset in the FPGA’s register space in terms of bytes, must be aligned to 4 bytes address.
pvData
PDWORD
A buffer that will be written to the FPGA’s registers. Buffer size must be as indicated by the dwSize.
dwSize
DWORD
The number of bytes to be written to the registers must be multiple of 4.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

This function will write one or more double words to the FPGA’s registers. The offset to be written to must be 4-byte aligned.

The Maximum value of dwOffset is 0x400.

Example

The following example writes 400 bytes to the card register space at offset 8:

 

DWORD adwData[100];

GxFpgaWriteRegister (nHandle, 0x8, &adwData, 400, &nStatus);

 

See Also

GxFpgaReadRegister, GxFpgaGetErrorString