UsbConstants
class UsbConstants
| kotlin.Any | |
| ↳ | android.hardware.usb.UsbConstants |
Contains constants for the USB protocol. These constants correspond to definitions in linux/usb/ch9.h in the linux kernel.
Summary
| Constants | |
|---|---|
| static Int |
Application specific USB class. |
| static Int |
USB class for audio devices. |
| static Int |
USB class for CDC devices (communications device class). |
| static Int |
USB class for communication devices. |
| static Int |
USB class for content security devices. |
| static Int |
USB class for content smart card devices. |
| static Int |
USB class for human interface devices (for example, mice and keyboards). |
| static Int |
USB class for USB hubs. |
| static Int |
USB class for mass storage devices. |
| static Int |
USB class for wireless miscellaneous devices. |
| static Int |
USB class indicating that the class is determined on a per-interface basis. |
| static Int |
USB class for physical devices. |
| static Int |
USB class for printers. |
| static Int |
USB class for still image devices (digital cameras). |
| static Int |
Vendor specific USB class. |
| static Int |
USB class for video devices. |
| static Int |
USB class for wireless controller devices. |
| static Int |
Used to signify direction of data for a |
| static Int |
Used to signify direction of data for a |
| static Int |
Bitmask used for extracting the |
| static Int |
Bitmask used for extracting the |
| static Int |
Bitmask used for extracting the |
| static Int |
Bulk endpoint type |
| static Int |
Control endpoint type (endpoint zero) |
| static Int |
Interrupt endpoint type |
| static Int |
Isochronous endpoint type (currently not supported) |
| static Int |
Boot subclass for HID devices. |
| static Int |
Vendor specific USB subclass. |
| static Int |
Used to specify that an endpoint zero control request is a class specific request. |
| static Int |
Bitmask used for encoding the request type for a control request on endpoint zero. |
| static Int |
Reserved endpoint zero control request type (currently unused). |
| static Int |
Used to specify that an endpoint zero control request is a standard request. |
| static Int |
Used to specify that an endpoint zero control request is a vendor specific request. |
| Public constructors | |
|---|---|
Constants
USB_CLASS_APP_SPEC
static val USB_CLASS_APP_SPEC: Int
Application specific USB class.
Value: 254USB_CLASS_AUDIO
static val USB_CLASS_AUDIO: Int
USB class for audio devices.
Value: 1USB_CLASS_CDC_DATA
static val USB_CLASS_CDC_DATA: Int
USB class for CDC devices (communications device class).
Value: 10USB_CLASS_COMM
static val USB_CLASS_COMM: Int
USB class for communication devices.
Value: 2USB_CLASS_CONTENT_SEC
static val USB_CLASS_CONTENT_SEC: Int
USB class for content security devices.
Value: 13USB_CLASS_CSCID
static val USB_CLASS_CSCID: Int
USB class for content smart card devices.
Value: 11USB_CLASS_HID
static val USB_CLASS_HID: Int
USB class for human interface devices (for example, mice and keyboards).
Value: 3USB_CLASS_MASS_STORAGE
static val USB_CLASS_MASS_STORAGE: Int
USB class for mass storage devices.
Value: 8USB_CLASS_MISC
static val USB_CLASS_MISC: Int
USB class for wireless miscellaneous devices.
Value: 239USB_CLASS_PER_INTERFACE
static val USB_CLASS_PER_INTERFACE: Int
USB class indicating that the class is determined on a per-interface basis.
Value: 0USB_CLASS_PHYSICA
static val USB_CLASS_PHYSICA: Int
USB class for physical devices.
Value: 5USB_CLASS_PRINTER
static val USB_CLASS_PRINTER: Int
USB class for printers.
Value: 7USB_CLASS_STILL_IMAGE
static val USB_CLASS_STILL_IMAGE: Int
USB class for still image devices (digital cameras).
Value: 6USB_CLASS_VENDOR_SPEC
static val USB_CLASS_VENDOR_SPEC: Int
Vendor specific USB class.
Value: 255USB_CLASS_VIDEO
static val USB_CLASS_VIDEO: Int
USB class for video devices.
Value: 14USB_CLASS_WIRELESS_CONTROLLER
static val USB_CLASS_WIRELESS_CONTROLLER: Int
USB class for wireless controller devices.
Value: 224USB_DIR_IN
static val USB_DIR_IN: Int
Used to signify direction of data for a UsbEndpoint is IN (device to host)
Value: 128USB_DIR_OUT
static val USB_DIR_OUT: Int
Used to signify direction of data for a UsbEndpoint is OUT (host to device)
Value: 0USB_ENDPOINT_DIR_MASK
static val USB_ENDPOINT_DIR_MASK: Int
Bitmask used for extracting the UsbEndpoint direction from its address field.
Value: 128USB_ENDPOINT_NUMBER_MASK
static val USB_ENDPOINT_NUMBER_MASK: Int
Bitmask used for extracting the UsbEndpoint number its address field.
Value: 15USB_ENDPOINT_XFERTYPE_MASK
static val USB_ENDPOINT_XFERTYPE_MASK: Int
Bitmask used for extracting the UsbEndpoint type from its address field.
Value: 3USB_ENDPOINT_XFER_BULK
static val USB_ENDPOINT_XFER_BULK: Int
Bulk endpoint type
Value: 2USB_ENDPOINT_XFER_CONTROL
static val USB_ENDPOINT_XFER_CONTROL: Int
Control endpoint type (endpoint zero)
Value: 0USB_ENDPOINT_XFER_INT
static val USB_ENDPOINT_XFER_INT: Int
Interrupt endpoint type
Value: 3USB_ENDPOINT_XFER_ISOC
static val USB_ENDPOINT_XFER_ISOC: Int
Isochronous endpoint type (currently not supported)
Value: 1USB_INTERFACE_SUBCLASS_BOOT
static val USB_INTERFACE_SUBCLASS_BOOT: Int
Boot subclass for HID devices.
Value: 1USB_SUBCLASS_VENDOR_SPEC
static val USB_SUBCLASS_VENDOR_SPEC: Int
Vendor specific USB subclass.
Value: 255USB_TYPE_CLASS
static val USB_TYPE_CLASS: Int
Used to specify that an endpoint zero control request is a class specific request.
Value: 32USB_TYPE_MASK
static val USB_TYPE_MASK: Int
Bitmask used for encoding the request type for a control request on endpoint zero.
Value: 96USB_TYPE_RESERVED
static val USB_TYPE_RESERVED: Int
Reserved endpoint zero control request type (currently unused).
Value: 96USB_TYPE_STANDARD
static val USB_TYPE_STANDARD: Int
Used to specify that an endpoint zero control request is a standard request.
Value: 0USB_TYPE_VENDOR
static val USB_TYPE_VENDOR: Int
Used to specify that an endpoint zero control request is a vendor specific request.
Value: 64Public constructors
UsbConstants
UsbConstants()