public final class SimpleUsbConfigurationDescriptor extends SimpleUsbDescriptor implements javax.usb.UsbConfigurationDescriptor
Constructor and Description |
---|
SimpleUsbConfigurationDescriptor(byte bLength,
byte bDescriptorType,
short wTotalLength,
byte bNumInterfaces,
byte bConfigurationValue,
byte iConfiguration,
byte bmAttributes,
byte bMaxPower)
Constructor.
|
SimpleUsbConfigurationDescriptor(org.usb4java.ConfigDescriptor descriptor)
Construct from a libusb4java configuration descriptor.
|
Modifier and Type | Method and Description |
---|---|
byte |
bConfigurationValue() |
byte |
bmAttributes() |
byte |
bMaxPower() |
byte |
bNumInterfaces() |
boolean |
equals(Object obj) |
int |
hashCode() |
byte |
iConfiguration() |
String |
toString() |
short |
wTotalLength() |
bDescriptorType, bLength
public SimpleUsbConfigurationDescriptor(byte bLength, byte bDescriptorType, short wTotalLength, byte bNumInterfaces, byte bConfigurationValue, byte iConfiguration, byte bmAttributes, byte bMaxPower)
bLength
- The descriptor length.bDescriptorType
- The descriptor type.wTotalLength
- The total length.bNumInterfaces
- The number of interfaces.bConfigurationValue
- The configuration value.iConfiguration
- The configuration string descriptor index.bmAttributes
- The attributes.bMaxPower
- The maximum power.public SimpleUsbConfigurationDescriptor(org.usb4java.ConfigDescriptor descriptor)
descriptor
- The descriptor from which to copy the data.public short wTotalLength()
wTotalLength
in interface javax.usb.UsbConfigurationDescriptor
public byte bNumInterfaces()
bNumInterfaces
in interface javax.usb.UsbConfigurationDescriptor
public byte bConfigurationValue()
bConfigurationValue
in interface javax.usb.UsbConfigurationDescriptor
public byte iConfiguration()
iConfiguration
in interface javax.usb.UsbConfigurationDescriptor
public byte bmAttributes()
bmAttributes
in interface javax.usb.UsbConfigurationDescriptor
public byte bMaxPower()
bMaxPower
in interface javax.usb.UsbConfigurationDescriptor
Copyright © 2011–2018 usb4java Team. All rights reserved.