|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--usb.core.Descriptor | +--usb.core.DeviceDescriptor
Provides access to a USB device descriptor. Most fields of this descriptor are specified in section 9.6.1 of the USB 1.1 specification, and the standard device messages are defined later in that chapter.
Device
, Serialized FormFields inherited from class usb.core.Descriptor |
CLASS_APP_SPECIFIC, CLASS_AUDIO, CLASS_COMM, CLASS_DATA, CLASS_HID, CLASS_HUB, CLASS_MASS_STORAGE, CLASS_PRINTER, CLASS_VENDOR_SPECIFIC, TYPE_CONFIGURATION, TYPE_DEVICE, TYPE_DEVICE_QUALIFIER, TYPE_ENDPOINT, TYPE_HID, TYPE_HUB, TYPE_INTERFACE, TYPE_INTERFACE_POWER, TYPE_OTHER_SPEED, TYPE_PHYSICAL, TYPE_REPORT, TYPE_STRING |
Constructor Summary | |
DeviceDescriptor(Device d,
byte[] buf)
|
Method Summary | |
DeviceDescriptor |
clone(Device d)
|
Device |
getDevice()
Returns the device the descriptor describes. |
int |
getDeviceClass()
Returns the USB class identifier for the device. |
java.lang.String |
getDeviceClassName()
Returns the USB class name for the device. |
java.lang.String |
getDeviceId()
Returns the device release version number (such as "3.14"). |
int |
getDeviceProtocol()
Returns the device protocol |
int |
getDeviceSubClass()
Returns the USB subclass identifier for the device. |
java.lang.String |
getManufacturer(int language)
Returns any string describing the product's manufacturer, or null. |
int |
getManufacturerStringId()
Returns the manufacturer string ID, or zero. |
int |
getMaxPacketSize0()
Returns the maximum packet size understood by endpoint zero. |
int |
getNumConfigurations()
Returns the number of configurations this device supports. |
java.lang.String |
getProduct(int language)
Returns any string describing the product, or null. |
int |
getProductId()
Returns the vendor's product identifier code. |
int |
getProductStringId()
Returns the product string ID, or zero |
java.lang.String |
getSerial(int language)
Returns any string describing the product's serial number, or null. |
int |
getSerialStringId()
Returns the serial string ID, or zero. |
java.lang.String |
getUSBVersion()
Returns the version of the USB specification to which this device and its descriptors conform. |
int |
getVendorId()
Returns the vendor of the USB device. |
Methods inherited from class usb.core.Descriptor |
getBCD, getClassName, getDescriptorType, getDescriptorTypeName, getLength, getU16, getU32, getU8, nextDescriptor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DeviceDescriptor(Device d, byte[] buf)
Method Detail |
public DeviceDescriptor clone(Device d)
public java.lang.String getUSBVersion()
public int getDeviceClass()
public java.lang.String getDeviceClassName()
public int getDeviceSubClass()
public int getDeviceProtocol()
public int getMaxPacketSize0()
public int getVendorId()
public int getProductId()
public java.lang.String getDeviceId()
public java.lang.String getManufacturer(int language)
public int getManufacturerStringId()
public java.lang.String getProduct(int language)
public int getProductStringId()
public java.lang.String getSerial(int language)
public int getSerialStringId()
public int getNumConfigurations()
public Device getDevice()
getDevice
in class Descriptor
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |