GCLIB_DLL_EXPORTED GReturn GCALL GFirmwareDownload ( GCon  g,
GCStringIn  filepath 
)

Upgrade firmware.

Parameters:
g Connection's handle.
filepath The full file path to the Galil-supplied firmware hex file. See http://www.galil.com/downloads/firmware
Returns:
The success status or error code of the function. See gclib_errors.h for possible values.
 {.cpp}
  ec(GInfo(g, buf, sizeof(buf))); //get conntroller info
  cout << buf << '\n'; //print the info
  ec(GFirmwareDownload(g, "F:/1806.dmc/dmc-1806-r11a.hex"));
  ec(GInfo(g, buf, sizeof(buf))); //get the info again
  cout << buf << '\n';
  // example output:
  // GALILPCI1, DMC1846 Rev 1.1a-CM, 4232
  // GALILPCI1, DMC1846 Rev 1.1a, 4232