Android Guides | Samples

Android.Hardware.Usb.UsbConstants Class

Contains constants for the USB protocol.

See Also: UsbConstants

Syntax

[Android.Runtime.Register("android/hardware/usb/UsbConstants", DoNotGenerateAcw=true)]
public sealed class UsbConstants : Object

Remarks

Contains constants for the USB protocol. These constants correspond to definitions in linux/usb/ch9.h in the linux kernel.

[Android Documentation]

Requirements

Namespace: Android.Hardware.Usb
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 12

The members of Android.Hardware.Usb.UsbConstants are listed below.

See Also: Object

Public Constructors

Public Fields

const
UsbInterfaceSubclassBootInt32 (1). Boot subclass for HID devices.
const
UsbSubclassVendorSpecInt32 (255). Vendor specific USB subclass.
const
UsbTypeClassInt32 (32). Used to specify that an endpoint zero control request is a class specific request.
const
UsbTypeMaskInt32 (96). Bitmask used for encoding the request type for a control request on endpoint zero.
const
UsbTypeReservedInt32 (96). Reserved endpoint zero control request type (currently unused).
const
UsbTypeStandardInt32 (0). Used to specify that an endpoint zero control request is a standard request.
const
UsbTypeVendorInt32 (64). Used to specify that an endpoint zero control request is a vendor specific request.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.