[DllImport("libftdi")] internal static extern void ftdi_eeprom_initdefaults(out ftdi_eeprom eeprom);
public void WriteEEPROM(ftdi_eeprom eeprom) { byte[] data = new byte[128]; ftdi_eeprom.ftdi_eeprom_build(ref eeprom, ref data); CheckRet(ftdi_write_eeprom(ref ftdi, ref data)); }
// init and build eeprom from ftdi_eeprom structure [DllImport("libftdi")] internal static extern int ftdi_eeprom_build(ref ftdi_eeprom eeprom, ref byte[] output);