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)); }
[DllImport("libftdi.so.0")] internal static extern void ftdi_eeprom_initdefaults(out ftdi_eeprom eeprom);
// init and build eeprom from ftdi_eeprom structure [DllImport("libftdi.so.0")] internal static extern int ftdi_eeprom_build(ref ftdi_eeprom eeprom, ref byte[] output);