using System; using System.Collections.Generic; using System.Text; namespace DirectUSB.Parameters { public class DeviceTypeParameter : Parameter { #region Constructors / Teardown public DeviceTypeParameter(short type, bool valid, byte[] data) : base(type, valid, data) { //Do nothing } #endregion #region Public Properties public ushort DeviceType { get { ushort ret; ret = Data[1]; ret |= (ushort)(((ushort)Data[0] << 8) & 0x0000FF00); return ret; } } #endregion } }