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);
Esempio n. 3
0
 [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);
Esempio n. 5
0
 // 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);