C# Class LibUsbDotNet.Descriptors.UsbConfigDescriptor

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

Public Properties

Property Type Description
Attributes byte
ConfigID byte
InterfaceCount byte
MaxPower byte
Size int
StringIndex byte
TotalLength short

Public Methods

Method Description
ToString ( ) : string

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

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

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

Private Methods

Method Description
UsbConfigDescriptor ( ) : System
UsbConfigDescriptor ( MonoUsbConfigDescriptor descriptor ) : System

Method Details

ToString() public method

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

ToString() public method

Returns a T:System.String that represents the current UsbConfigDescriptor.
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

Property Details

Attributes public_oe property

D7 Reserved, set to 1. (USB 1.0 Bus Powered) D6 Self Powered D5 Remote Wakeup D4..0 Reserved, set to 0.
public byte Attributes
return byte

ConfigID public_oe property

Value to use as an argument to select this Configuration
public byte ConfigID
return byte

InterfaceCount public_oe property

Number of Interfaces
public byte InterfaceCount
return byte

MaxPower public_oe property

Maximum Power Consumption in 2mA units
public byte MaxPower
return byte

Size public_oe static_oe property

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

StringIndex public_oe property

Index of String Descriptor describing this Configuration
public byte StringIndex
return byte

TotalLength public_oe property

Total length in bytes of data returned
public short TotalLength
return short