C# Class LibUsbDotNet.Descriptors.UsbDeviceDescriptor

Inheritance: UsbDescriptor
ファイルを表示 Open project: arvydas/BlinkStickDotNet Class Usage Examples

Public Properties

Property Type Description
BcdDevice short
BcdUsb short
Class ClassCodeType
ConfigurationCount byte
ManufacturerStringIndex byte
MaxPacketSize0 byte
ProductID short
ProductStringIndex byte
Protocol byte
SerialStringIndex byte
Size int
SubClass byte
VendorID short

Public Methods

Method Description
Equals ( UsbDeviceDescriptor other ) : bool

Determines whether the specified UsbDeviceDescriptor is equal to the current UsbDeviceDescriptor.

Equals ( object obj ) : bool

Determines whether the specified T:System.Object is equal to the current T:System.Object.

GetHashCode ( ) : int

Serves as a hash function for a particular type.

ToString ( ) : string

Returns a T:System.String that represents the current UsbDeviceDescriptor.

ToString ( string prefixSeperator, string entitySperator, string suffixSeperator ) : string

Returns a T:System.String that represents the current UsbDeviceDescriptor.

operator ( ) : bool

Private Methods

Method Description
UsbDeviceDescriptor ( ) : System
UsbDeviceDescriptor ( MonoUsbDeviceDescriptor usbDeviceDescriptor ) : System

Method Details

Equals() public method

Determines whether the specified UsbDeviceDescriptor is equal to the current UsbDeviceDescriptor.
The parameter is null.
public Equals ( UsbDeviceDescriptor other ) : bool
other UsbDeviceDescriptor The to compare with the current .
return bool

Equals() public method

Determines whether the specified T:System.Object is equal to the current T:System.Object.
The parameter is null.
public Equals ( object obj ) : bool
obj object The to compare with the current .
return bool

GetHashCode() public method

Serves as a hash function for a particular type.
public GetHashCode ( ) : int
return int

ToString() public method

Returns a T:System.String that represents the current UsbDeviceDescriptor.
public ToString ( ) : string
return string

ToString() public method

Returns a T:System.String that represents the current UsbDeviceDescriptor.
public ToString ( string prefixSeperator, string entitySperator, string suffixSeperator ) : string
prefixSeperator string The field prefix string.
entitySperator string The field/value seperator string.
suffixSeperator string The value suffix string.
return string

operator() public static method

public static operator ( ) : bool
return bool

Property Details

BcdDevice public_oe property

Device Release Number
public short BcdDevice
return short

BcdUsb public_oe property

USB Specification Number which device complies too.
public short BcdUsb
return short

Class public_oe property

Class Code (Assigned by USB Org) If equal to Zero, each interface specifies it’s own class code; If equal to 0xFF, the class code is vendor specified; Otherwise field is valid Class Code.
public ClassCodeType Class
return ClassCodeType

ConfigurationCount public_oe property

Number of Possible Configurations
public byte ConfigurationCount
return byte

ManufacturerStringIndex public_oe property

Index of Manufacturer String Descriptor
public byte ManufacturerStringIndex
return byte

MaxPacketSize0 public_oe property

Maximum Packet Size for Zero Endpoint. Valid Sizes are 8, 16, 32, 64
public byte MaxPacketSize0
return byte

ProductID public_oe property

Product ID (Assigned by Manufacturer)
public short ProductID
return short

ProductStringIndex public_oe property

Index of Product String Descriptor
public byte ProductStringIndex
return byte

Protocol public_oe property

Protocol Code (Assigned by USB Org)
public byte Protocol
return byte

SerialStringIndex public_oe property

Index of Serial Number String Descriptor
public byte SerialStringIndex
return byte

Size public_oe static_oe property

Total size of this structure in bytes.
public static int Size
return int

SubClass public_oe property

Subclass Code (Assigned by USB Org)
public byte SubClass
return byte

VendorID public_oe property

Vendor ID (Assigned by USB Org)
public short VendorID
return short