Writes a buffer of 32 bit double words to the FPGA’s memory space.
GxFpgaWriteRegister (nHandle, dwOffset, pvData, dwSize, pnStatus)
Name |
Type |
Comments |
nHandle |
SHORT |
Handle for a GX3500 board. |
dwOffset |
DWORD |
The offset in the FPGA’s register space in terms of bytes, must be aligned to 4 bytes address. |
pvData |
PVOID |
A buffer that will be written to the FPGA’s shared memory. Buffer size must be as indicated by the dwSize. |
dwSize |
DWORD |
The number of bytes to be read from the memory location, must be multiple of 4. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
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.
The following example writes 400 bytes to the card register space at offset 8:
DWORD adwData[100];
GxFpgaWriteRegister (nHandle, 0x8, &adwData, 400, &nStatus);
GxFpgaReadRegister, GxFpgaReadMemory,GxFpgaWriteMemory, GxFpgaGetErrorString