Skip to main content

GenericDescriptor Class

NuGet: GHIElectronics.TinyCLR.Devices.UsbClient
Assembly: GHIElectronics.TinyCLR.Devices.UsbClient
Namespace: GHIElectronics.TinyCLR.Devices.UsbClient

A generic descriptor returned in response to a control request.

public class GenericDescriptor : Descriptor

Constructors​

GenericDescriptor(byte RequestType, ushort Value, byte[] Payload)​

public GenericDescriptor(byte RequestType, ushort Value, byte[] Payload) : base(0)

Creates a new generic descriptor.

Fields​

REQUEST_OUT​

public const byte REQUEST_OUT

Request direction marking an out (host to device) transfer.

REQUEST_IN​

public const byte REQUEST_IN

Request direction marking an in (device to host) transfer.

REQUEST_Standard​

public const byte REQUEST_Standard

Standard request type.

REQUEST_Class​

public const byte REQUEST_Class

Class request type.

REQUEST_Vendor​

public const byte REQUEST_Vendor

Vendor request type.

REQUEST_Device​

public const byte REQUEST_Device

Request recipient is the device.

REQUEST_Interface​

public const byte REQUEST_Interface

Request recipient is an interface.

REQUEST_Endpoint​

public const byte REQUEST_Endpoint

Request recipient is an endpoint.

REQUEST_Other​

public const byte REQUEST_Other

Request recipient is another element.

bmRequestType​

public byte bmRequestType

The request type.

bRequest​

public byte bRequest

The request code.

wValue​

public ushort wValue

The request value.

wIndex​

public ushort wIndex

The request index.

payload​

public byte[] payload

The descriptor data returned for the request.