ch.ntb.usb
public class Usb_Device_Descriptor extends Usb_Descriptor
Usb_Descriptor.USB_DT_DEVICE_SIZE
and the type is
Usb_Descriptor.USB_DT_DEVICE
.Modifier and Type | Field and Description |
---|---|
static int |
USB_CLASS_AUDIO
Device and/or interface class codes.
|
static int |
USB_CLASS_COMM
Device and/or interface class codes.
|
static int |
USB_CLASS_DATA
Device and/or interface class codes.
|
static int |
USB_CLASS_HID
Device and/or interface class codes.
|
static int |
USB_CLASS_HUB
Device and/or interface class codes.
|
static int |
USB_CLASS_MASS_STORAGE
Device and/or interface class codes.
|
static int |
USB_CLASS_PER_INTERFACE
Device and/or interface class codes.
|
static int |
USB_CLASS_PRINTER
Device and/or interface class codes.
|
static int |
USB_CLASS_VENDOR_SPEC
Device and/or interface class codes.
|
USB_DT_CONFIG, USB_DT_CONFIG_SIZE, USB_DT_DEVICE, USB_DT_DEVICE_SIZE, USB_DT_ENDPOINT, USB_DT_ENDPOINT_AUDIO_SIZE, USB_DT_ENDPOINT_SIZE, USB_DT_HID, USB_DT_HUB, USB_DT_HUB_NONVAR_SIZE, USB_DT_INTERFACE, USB_DT_INTERFACE_SIZE, USB_DT_PHYSICAL, USB_DT_REPORT, USB_DT_STRING
Constructor and Description |
---|
Usb_Device_Descriptor() |
Modifier and Type | Method and Description |
---|---|
short |
getBcdDevice()
Returns the device release number.
Assigned by the manufacturer of the device. |
short |
getBcdUSB()
Returns the USB specification number to which the device complies to.
This field reports the highest version of USB the device supports. |
byte |
getBDeviceClass()
Returns the class code (Assigned by www.usb.org)
If equal to zero, each interface specifies it's own class code. |
byte |
getBDeviceProtocol()
Returns the protocol code (Assigned by www.usb.org)
|
byte |
getBDeviceSubClass()
Returns the subclass code (Assigned by www.usb.org)
|
byte |
getBMaxPacketSize0()
Returns the maximum packet size for endpoint zero.
Valid sizes are 8, 16, 32, 64. |
byte |
getBNumConfigurations()
Returns the number of possible configurations supported at its current
speed.
|
short |
getIdProduct()
Returns the product ID (Assigned by www.usb.org)
|
short |
getIdVendor()
Returns the Vendor ID (Assigned by www.usb.org)
|
byte |
getIManufacturer()
Returns the index of the manufacturer string descriptor.
If this value is 0, no string descriptor is used. |
byte |
getIProduct()
Returns the index of the product string descriptor.
If this value is 0, no string descriptor is used. |
byte |
getISerialNumber()
Returns the index of serial number string descriptor.
If this value is 0, no string descriptor is used. |
java.lang.String |
toString() |
getBDescriptorType, getBLength
public static final int USB_CLASS_PER_INTERFACE
public static final int USB_CLASS_AUDIO
public static final int USB_CLASS_COMM
public static final int USB_CLASS_HID
public static final int USB_CLASS_PRINTER
public static final int USB_CLASS_MASS_STORAGE
public static final int USB_CLASS_HUB
public static final int USB_CLASS_DATA
public static final int USB_CLASS_VENDOR_SPEC
public short getBcdDevice()
public short getBcdUSB()
public byte getBDeviceClass()
public byte getBDeviceProtocol()
public byte getBDeviceSubClass()
public byte getBMaxPacketSize0()
public byte getBNumConfigurations()
public short getIdProduct()
public short getIdVendor()
public byte getIManufacturer()
public byte getIProduct()
public byte getISerialNumber()
public java.lang.String toString()
toString
in class java.lang.Object