C# Класс LibUsbDotNet.Descriptors.UsbDeviceDescriptor

Наследование: UsbDescriptor
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
UsbDeviceDescriptor ( ) : System
UsbDeviceDescriptor ( MonoUsbDeviceDescriptor usbDeviceDescriptor ) : System

Описание методов

Equals() публичный Метод

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 .
Результат bool

Equals() публичный Метод

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 .
Результат bool

GetHashCode() публичный Метод

Serves as a hash function for a particular type.
public GetHashCode ( ) : int
Результат int

ToString() публичный Метод

Returns a T:System.String that represents the current UsbDeviceDescriptor.
public ToString ( ) : string
Результат string

ToString() публичный Метод

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.
Результат string

operator() публичный статический Метод

public static operator ( ) : bool
Результат bool

Описание свойств

BcdDevice публичное свойство

Device Release Number
public short BcdDevice
Результат short

BcdUsb публичное свойство

USB Specification Number which device complies too.
public short BcdUsb
Результат short

Class публичное свойство

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
Результат ClassCodeType

ConfigurationCount публичное свойство

Number of Possible Configurations
public byte ConfigurationCount
Результат byte

ManufacturerStringIndex публичное свойство

Index of Manufacturer String Descriptor
public byte ManufacturerStringIndex
Результат byte

MaxPacketSize0 публичное свойство

Maximum Packet Size for Zero Endpoint. Valid Sizes are 8, 16, 32, 64
public byte MaxPacketSize0
Результат byte

ProductID публичное свойство

Product ID (Assigned by Manufacturer)
public short ProductID
Результат short

ProductStringIndex публичное свойство

Index of Product String Descriptor
public byte ProductStringIndex
Результат byte

Protocol публичное свойство

Protocol Code (Assigned by USB Org)
public byte Protocol
Результат byte

SerialStringIndex публичное свойство

Index of Serial Number String Descriptor
public byte SerialStringIndex
Результат byte

Size публичное статическое свойство

Total size of this structure in bytes.
public static int Size
Результат int

SubClass публичное свойство

Subclass Code (Assigned by USB Org)
public byte SubClass
Результат byte

VendorID публичное свойство

Vendor ID (Assigned by USB Org)
public short VendorID
Результат short