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