public class UsbDeviceDescriptor extends UsbDescriptor
| Constructor and Description |
|---|
UsbDeviceDescriptor(byte bLength,
byte bDescriptorType,
short bcdUSB,
byte bDeviceClass,
byte bDeviceSubClass,
byte bDeviceProtocol,
byte bMaxPacketSize0,
short idVendor,
short idProduct,
short bcdDevice,
byte iManufacturer,
byte iProduct,
byte iSerialNumber,
byte bNumConfigurations)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
bcdDevice()
Gets the device type.
|
int |
bcdUSB()
Gets the supported USB version.
|
int |
bDeviceClass()
Gets the device class.
|
int |
bDeviceProtocol()
Gets the device protocol.
|
int |
bDeviceSubClass()
Gets the device subclass.
|
int |
bMaxPacketSize0()
Gets the maximum packet size for the control endpoint.
|
int |
bNumConfigurations()
Gets the number of configurations.
|
int |
idProduct()
Gets the product ID.
|
int |
idVendor()
Gets the vendor ID.
|
int |
iManufacturer()
Gets the manufacturer name index.
|
int |
iProduct()
Gets the product name index.
|
int |
iSerialNumber()
Gets the serial number index.
|
bDescriptorType, bLengthpublic UsbDeviceDescriptor(byte bLength,
byte bDescriptorType,
short bcdUSB,
byte bDeviceClass,
byte bDeviceSubClass,
byte bDeviceProtocol,
byte bMaxPacketSize0,
short idVendor,
short idProduct,
short bcdDevice,
byte iManufacturer,
byte iProduct,
byte iSerialNumber,
byte bNumConfigurations)
bLength - Descriptor lengthbDescriptorType - Descriptor typebcdUSB - USB release number (BCD encoded)bDeviceClass - Device classbDeviceSubClass - Device subclassbDeviceProtocol - Device protocolbMaxPacketSize0 - Maximum packet size for control endpointidVendor - Vendor IDidProduct - Product IDbcdDevice - Device release number (BCD encoded)iManufacturer - Manufacturer string descriptor indexiProduct - Product string descriptor indexiSerialNumber - Serial number string descriptor indexbNumConfigurations - Number of configurationspublic int bcdUSB()
public int bDeviceClass()
public int bDeviceSubClass()
public int bDeviceProtocol()
public int bMaxPacketSize0()
public int idVendor()
public int idProduct()
public int bcdDevice()
public int iManufacturer()
public int iProduct()
public int iSerialNumber()
public int bNumConfigurations()
Copyright © 2015 LSST. All rights reserved.