//----------------------------------------------------------------------- // // Copyright © 2012 Nils Hammar and Future Technology Devices International Limited. All rights reserved. // //----------------------------------------------------------------------- namespace FtdiApi.Structs { using System.Runtime.InteropServices; /// /// EEPROM Header struct. /// [System.Diagnostics.CodeAnalysis.SuppressMessage("StyleCop.CSharp.NamingRules", "SA1307:AccessibleFieldsMustBeginWithUpperCaseLetter", Justification = "Reviewed.")] [StructLayout(LayoutKind.Sequential, Pack = 4)] internal struct FT_EEPROM_HEADER { /// /// EEPROM Data. /// FTxxxx device type to be programmed /// public uint deviceType; // Device descriptor options /// /// EEPROM Data. /// 0x0403 /// public ushort VendorId; /// /// EEPROM Data. /// 0x6001 /// public ushort ProductId; /// /// EEPROM Data. /// non-zero if serial number to be used /// public byte SerNumEnable; // Config descriptor options /// /// EEPROM Data. /// 0 < MaxPower <= 500 /// public ushort MaxPower; /// /// EEPROM Data. /// 0 = bus powered, 1 = self powered /// public byte SelfPowered; /// /// EEPROM Data. /// 0 = not capable, 1 = capable /// public byte RemoteWakeup; // Hardware options /// /// EEPROM Data. /// non-zero if pull down in suspend enabled /// public byte PullDownEnable; } }