public final class SimpleUsbDeviceDescriptor extends SimpleUsbDescriptor implements javax.usb.UsbDeviceDescriptor
Constructor and Description |
---|
SimpleUsbDeviceDescriptor(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.
|
SimpleUsbDeviceDescriptor(org.usb4java.DeviceDescriptor descriptor)
Construct from a libusb4java device descriptor.
|
Modifier and Type | Method and Description |
---|---|
short |
bcdDevice() |
short |
bcdUSB() |
byte |
bDeviceClass() |
byte |
bDeviceProtocol() |
byte |
bDeviceSubClass() |
byte |
bMaxPacketSize0() |
byte |
bNumConfigurations() |
boolean |
equals(Object obj) |
int |
hashCode() |
short |
idProduct() |
short |
idVendor() |
byte |
iManufacturer() |
byte |
iProduct() |
byte |
iSerialNumber() |
String |
toString() |
bDescriptorType, bLength
public SimpleUsbDeviceDescriptor(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
- The descriptor length.bDescriptorType
- The descriptor type.bcdUSB
- The USB specification version number.bDeviceClass
- The device class.bDeviceSubClass
- The device sub class.bDeviceProtocol
- The device protocol.bMaxPacketSize0
- The maximum packet size for endpoint zero.idVendor
- The vendor ID.idProduct
- The product ID.bcdDevice
- The device release number.iManufacturer
- The manufacturer string descriptor index.iProduct
- The product string descriptor index.iSerialNumber
- The serial number string descriptor index.bNumConfigurations
- The number of configurations.public SimpleUsbDeviceDescriptor(org.usb4java.DeviceDescriptor descriptor)
descriptor
- The descriptor from which to copy the data.public short bcdUSB()
bcdUSB
in interface javax.usb.UsbDeviceDescriptor
public byte bDeviceClass()
bDeviceClass
in interface javax.usb.UsbDeviceDescriptor
public byte bDeviceSubClass()
bDeviceSubClass
in interface javax.usb.UsbDeviceDescriptor
public byte bDeviceProtocol()
bDeviceProtocol
in interface javax.usb.UsbDeviceDescriptor
public byte bMaxPacketSize0()
bMaxPacketSize0
in interface javax.usb.UsbDeviceDescriptor
public short idVendor()
idVendor
in interface javax.usb.UsbDeviceDescriptor
public short idProduct()
idProduct
in interface javax.usb.UsbDeviceDescriptor
public short bcdDevice()
bcdDevice
in interface javax.usb.UsbDeviceDescriptor
public byte iManufacturer()
iManufacturer
in interface javax.usb.UsbDeviceDescriptor
public byte iProduct()
iProduct
in interface javax.usb.UsbDeviceDescriptor
public byte iSerialNumber()
iSerialNumber
in interface javax.usb.UsbDeviceDescriptor
public byte bNumConfigurations()
bNumConfigurations
in interface javax.usb.UsbDeviceDescriptor
Copyright © 2011–2018 usb4java Team. All rights reserved.