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