Writes a buffer of 32 bit double words to the FPGA’s memory space.
GxFpgaWriteMemory (nHandle, dwOffset, pvData, dwSize, pnStatus)
Name |
Type |
Comments |
nHandle |
SHORT |
Handle for a GX3500 board. |
dwOffset |
DWORD |
The offset in the FPGA’s shared memory 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 memory. The offset to be written to must be 4 byte aligned.
The Maximum value of dwOffset is 0x40000.
The following example writes 400 bytes to the card memory space at offset 8:
DWORD adwData[100];
GxFpgaWriteMemory (nHandle, 0x8, &adwData, 400, &nStatus);
GxFpgaReadMemory, GxFpgaReadRegister, GxFpgaWriteRegister, GxFpgaGetErrorString