|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.ntb.usb.Usb_Descriptor
ch.ntb.usb.Usb_Device_Descriptor
public class Usb_Device_Descriptor
Represents the descriptor of a USB device.
A USB device can only have one device descriptor. It specifies some basic,
yet important information about the device.
The length of the device descriptor is
Usb_Descriptor.USB_DT_DEVICE_SIZE
and the type is
Usb_Descriptor.USB_DT_DEVICE
.
Field Summary | |
---|---|
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. |
Fields inherited from class ch.ntb.usb.Usb_Descriptor |
---|
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 Summary | |
---|---|
Usb_Device_Descriptor()
|
Method Summary | |
---|---|
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()
|
Methods inherited from class ch.ntb.usb.Usb_Descriptor |
---|
getBDescriptorType, getBLength |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public Usb_Device_Descriptor()
Method Detail |
---|
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
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |