FileDocCategorySizeDatePackage
UsbConstants.javaAPI DocAndroid 5.1 API5735Thu Mar 12 22:22:10 GMT 2015android.hardware.usb

UsbConstants

public final class UsbConstants extends Object
Contains constants for the USB protocol. These constants correspond to definitions in linux/usb/ch9.h in the linux kernel.

Fields Summary
public static final int
USB_ENDPOINT_DIR_MASK
Bitmask used for extracting the {@link UsbEndpoint} direction from its address field.
public static final int
USB_DIR_OUT
Used to signify direction of data for a {@link UsbEndpoint} is OUT (host to device)
public static final int
USB_DIR_IN
Used to signify direction of data for a {@link UsbEndpoint} is IN (device to host)
public static final int
USB_ENDPOINT_NUMBER_MASK
Bitmask used for extracting the {@link UsbEndpoint} number its address field.
public static final int
USB_ENDPOINT_XFERTYPE_MASK
Bitmask used for extracting the {@link UsbEndpoint} type from its address field.
public static final int
USB_ENDPOINT_XFER_CONTROL
Control endpoint type (endpoint zero)
public static final int
USB_ENDPOINT_XFER_ISOC
Isochronous endpoint type (currently not supported)
public static final int
USB_ENDPOINT_XFER_BULK
Bulk endpoint type
public static final int
USB_ENDPOINT_XFER_INT
Interrupt endpoint type
public static final int
USB_TYPE_MASK
Bitmask used for encoding the request type for a control request on endpoint zero.
public static final int
USB_TYPE_STANDARD
Used to specify that an endpoint zero control request is a standard request.
public static final int
USB_TYPE_CLASS
Used to specify that an endpoint zero control request is a class specific request.
public static final int
USB_TYPE_VENDOR
Used to specify that an endpoint zero control request is a vendor specific request.
public static final int
USB_TYPE_RESERVED
Reserved endpoint zero control request type (currently unused).
public static final int
USB_CLASS_PER_INTERFACE
USB class indicating that the class is determined on a per-interface basis.
public static final int
USB_CLASS_AUDIO
USB class for audio devices.
public static final int
USB_CLASS_COMM
USB class for communication devices.
public static final int
USB_CLASS_HID
USB class for human interface devices (for example, mice and keyboards).
public static final int
USB_CLASS_PHYSICA
USB class for physical devices.
public static final int
USB_CLASS_STILL_IMAGE
USB class for still image devices (digital cameras).
public static final int
USB_CLASS_PRINTER
USB class for printers.
public static final int
USB_CLASS_MASS_STORAGE
USB class for mass storage devices.
public static final int
USB_CLASS_HUB
USB class for USB hubs.
public static final int
USB_CLASS_CDC_DATA
USB class for CDC devices (communications device class).
public static final int
USB_CLASS_CSCID
USB class for content smart card devices.
public static final int
USB_CLASS_CONTENT_SEC
USB class for content security devices.
public static final int
USB_CLASS_VIDEO
USB class for video devices.
public static final int
USB_CLASS_WIRELESS_CONTROLLER
USB class for wireless controller devices.
public static final int
USB_CLASS_MISC
USB class for wireless miscellaneous devices.
public static final int
USB_CLASS_APP_SPEC
Application specific USB class.
public static final int
USB_CLASS_VENDOR_SPEC
Vendor specific USB class.
public static final int
USB_INTERFACE_SUBCLASS_BOOT
Boot subclass for HID devices.
public static final int
USB_SUBCLASS_VENDOR_SPEC
Vendor specific USB subclass.
Constructors Summary
Methods Summary