Exemplo n.º 1
0
 /// <summary>
 /// Instantiates a DeviceInformation object.
 /// </summary>
 /// <param name="flags">Indicates device state.</param>
 /// <param name="type">Indicates the device type.</param>
 /// <param name="id">The Vendor ID and Product ID of the device.</param>
 /// <param name="locId">The physical location identifier of the device.</param>
 /// <param name="serialNumber">The device serial number.</param>
 /// <param name="description">The device description.</param>
 public FtDevice(FtFlag flags, FtDeviceType type, uint id, uint locId, string serialNumber, string description)
 {
     Flags        = flags;
     Type         = type;
     Id           = id;
     LocId        = locId;
     SerialNumber = serialNumber;
     Description  = description;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Instantiates a FT232H device object.
 /// </summary>
 /// <param name="flags">Indicates device state.</param>
 /// <param name="type">Indicates the device type.</param>
 /// <param name="id">The Vendor ID and Product ID of the device.</param>
 /// <param name="locId">The physical location identifier of the device.</param>
 /// <param name="serialNumber">The device serial number.</param>
 /// <param name="description">The device description.</param>
 public Ft232HDevice(FtFlag flags, FtDeviceType type, uint id, uint locId, string serialNumber, string description)
     : base(flags, type, id, locId, serialNumber, description)
 {
 }
Exemplo n.º 3
0
 /// <summary>
 /// Get Device Information Detail
 /// </summary>
 /// <param name="index">Index of the device</param>
 /// <param name="flags">Flags</param>
 /// <param name="chiptype">Device type</param>
 /// <param name="id">ID</param>
 /// <param name="locid">Location ID</param>
 /// <param name="serialnumber">Serial Number</param>
 /// <param name="description">Description</param>
 /// <param name="ftHandle">Handle</param>
 /// <returns>The status</returns>
 public static FtStatus FT_GetDeviceInfoDetail(uint index, out uint flags, out FtDeviceType chiptype, out uint id, out uint locid, in byte serialnumber, in byte description, out IntPtr ftHandle)