ADConstants

com.ad.comm.usb

## 类 ADConstants

- java.lang.Object
- - com.ad.comm.usb.ADConstants

-     public final class ADConstants
      extends Object

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

- - ### 字段概要

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

  - ### 构造器概要

    构造器
    构造器和说明
    `ADConstants()`

  - ### 方法概要

    - ### 从类继承的方法 java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 字段详细资料

    - #### USB_ENDPOINT_DIR_MASK

          public static final byte USB_ENDPOINT_DIR_MASK

      Bitmask used for extracting the `UsbEndpoint` direction from its address field.
      另请参阅:
        `UsbEndpoint#getAddress`, `UsbEndpoint#getDirection`, `USB_DIR_OUT`, `USB_DIR_IN`, 常量字段值

    - #### USB_DIR_OUT

          public static final byte USB_DIR_OUT

      Used to signify direction of data for a `UsbEndpoint` is OUT (host to device)
      另请参阅:
        `UsbEndpoint#getDirection`, 常量字段值

    - #### USB_DIR_IN

          public static final byte USB_DIR_IN

      Used to signify direction of data for a `UsbEndpoint` is IN (device to host)
      另请参阅:
        `UsbEndpoint#getDirection`, 常量字段值

    - #### USB_ENDPOINT_NUMBER_MASK

          public static final byte USB_ENDPOINT_NUMBER_MASK

      Bitmask used for extracting the `UsbEndpoint` number its address field.
      另请参阅:
        `UsbEndpoint#getAddress`, `UsbEndpoint#getEndpointNumber`, 常量字段值

    - #### USB_ENDPOINT_XFERTYPE_MASK

          public static final byte USB_ENDPOINT_XFERTYPE_MASK

      Bitmask used for extracting the `UsbEndpoint` type from its address field.
      另请参阅:
        `UsbEndpoint#getAddress`, `UsbEndpoint#getType`, `USB_ENDPOINT_XFER_CONTROL`, `USB_ENDPOINT_XFER_ISOC`, `USB_ENDPOINT_XFER_BULK`, `USB_ENDPOINT_XFER_INT`, 常量字段值

    - #### USB_ENDPOINT_XFER_CONTROL

          public static final byte USB_ENDPOINT_XFER_CONTROL

      Control endpoint type (endpoint zero)
      另请参阅:
        `UsbEndpoint#getType`, 常量字段值

    - #### USB_ENDPOINT_XFER_ISOC

          public static final byte USB_ENDPOINT_XFER_ISOC

      Isochronous endpoint type (currently not supported)
      另请参阅:
        `UsbEndpoint#getType`, 常量字段值

    - #### USB_ENDPOINT_XFER_BULK

          public static final byte USB_ENDPOINT_XFER_BULK

      Bulk endpoint type
      另请参阅:
        `UsbEndpoint#getType`, 常量字段值

    - #### USB_ENDPOINT_XFER_INT

          public static final byte USB_ENDPOINT_XFER_INT

      Interrupt endpoint type
      另请参阅:
        `UsbEndpoint#getType`, 常量字段值

    - #### USB_TYPE_MASK

          public static final byte USB_TYPE_MASK

      Bitmask used for encoding the request type for a control request on endpoint zero.
      另请参阅:
        常量字段值

    - #### USB_TYPE_STANDARD

          public static final byte USB_TYPE_STANDARD

      Used to specify that an endpoint zero control request is a standard request.
      另请参阅:
        常量字段值

    - #### USB_TYPE_CLASS

          public static final byte USB_TYPE_CLASS

      Used to specify that an endpoint zero control request is a class specific request.
      另请参阅:
        常量字段值

    - #### USB_TYPE_VENDOR

          public static final byte USB_TYPE_VENDOR

      Used to specify that an endpoint zero control request is a vendor specific request.
      另请参阅:
        常量字段值

    - #### USB_TYPE_RESERVED

          public static final byte USB_TYPE_RESERVED

      Reserved endpoint zero control request type (currently unused).
      另请参阅:
        常量字段值

    - #### USB_CLASS_PER_INTERFACE

          public static final int USB_CLASS_PER_INTERFACE

      USB class indicating that the class is determined on a per-interface basis.
      另请参阅:
        常量字段值

    - #### USB_CLASS_AUDIO

          public static final int USB_CLASS_AUDIO

      USB class for audio devices.
      另请参阅:
        常量字段值

    - #### USB_CLASS_COMM

          public static final int USB_CLASS_COMM

      USB class for communication devices.
      另请参阅:
        常量字段值

    - #### USB_CLASS_HID

          public static final int USB_CLASS_HID

      USB class for human interface devices (for example, mice and keyboards).
      另请参阅:
        常量字段值

    - #### USB_CLASS_PHYSICA

          public static final int USB_CLASS_PHYSICA

      USB class for physical devices.
      另请参阅:
        常量字段值

    - #### USB_CLASS_STILL_IMAGE

          public static final int USB_CLASS_STILL_IMAGE

      USB class for still image devices (digital cameras).
      另请参阅:
        常量字段值

    - #### USB_CLASS_PRINTER

          public static final int USB_CLASS_PRINTER

      USB class for printers.
      另请参阅:
        常量字段值

    - #### USB_CLASS_MASS_STORAGE

          public static final int USB_CLASS_MASS_STORAGE

      USB class for mass storage devices.
      另请参阅:
        常量字段值

    - #### USB_CLASS_HUB

          public static final int USB_CLASS_HUB

      USB class for USB hubs.
      另请参阅:
        常量字段值

    - #### USB_CLASS_CDC_DATA

          public static final int USB_CLASS_CDC_DATA

      USB class for CDC devices (communications device class).
      另请参阅:
        常量字段值

    - #### USB_CLASS_CSCID

          public static final int USB_CLASS_CSCID

      USB class for content smart card devices.
      另请参阅:
        常量字段值

    - #### USB_CLASS_CONTENT_SEC

          public static final int USB_CLASS_CONTENT_SEC

      USB class for content security devices.
      另请参阅:
        常量字段值

    - #### USB_CLASS_VIDEO

          public static final int USB_CLASS_VIDEO

      USB class for video devices.
      另请参阅:
        常量字段值

    - #### USB_CLASS_WIRELESS_CONTROLLER

          public static final int USB_CLASS_WIRELESS_CONTROLLER

      USB class for wireless controller devices.
      另请参阅:
        常量字段值

    - #### USB_CLASS_MISC

          public static final int USB_CLASS_MISC

      USB class for wireless miscellaneous devices.
      另请参阅:
        常量字段值

    - #### USB_CLASS_APP_SPEC

          public static final int USB_CLASS_APP_SPEC

      Application specific USB class.
      另请参阅:
        常量字段值

    - #### USB_CLASS_VENDOR_SPEC

          public static final int USB_CLASS_VENDOR_SPEC

      Vendor specific USB class.
      另请参阅:
        常量字段值

    - #### USB_INTERFACE_SUBCLASS_BOOT

          public static final int USB_INTERFACE_SUBCLASS_BOOT

      Boot subclass for HID devices.
      另请参阅:
        常量字段值

    - #### USB_SUBCLASS_VENDOR_SPEC

          public static final int USB_SUBCLASS_VENDOR_SPEC

      Vendor specific USB subclass.
      另请参阅:
        常量字段值

  - ### 构造器详细资料

    - #### ADConstants

          public ADConstants()