
DAQFlex Message-based Firmware Specification Loading a FPGA configuration file onto the device (Linux and Mac OS X)
10
Example code
The following code shows how to load the FPGA configuration bitfile onto a USB-1608G device. The code
below is written in C++/pseudocode, but it can be written in any language.
file = open(USB_1608g.rbf);
size = getSize(file);
while (size > 0);
{
count = file read(buffer, 64);
device = ControlTransfer(RT_out, 0x51, count, buffer);
size = size – count;
}
file close();
Kommentare zu diesen Handbüchern