public final class ConfigDescriptor extends Object
Constructor and Description |
---|
ConfigDescriptor()
Constructs a new config descriptor which can be passed to the
LibUsb.getConfigDescriptor(Device, byte, ConfigDescriptor)
method. |
Modifier and Type | Method and Description |
---|---|
byte |
bConfigurationValue()
Returns the identifier value for this configuration.
|
byte |
bDescriptorType()
Returns the descriptor type.
|
byte |
bLength()
Returns the size of this descriptor (in bytes).
|
byte |
bmAttributes()
Returns the configuration characteristics.
|
byte |
bMaxPower()
Returns the maximum power consumption of the USB device from this bus
configuration when the device is fully operation.
|
byte |
bNumInterfaces()
Returns the number of interfaces supported by this configuration.
|
String |
dump()
Returns a dump of this descriptor.
|
boolean |
equals(Object obj) |
ByteBuffer |
extra()
Extra descriptors.
|
int |
extraLength()
Length of the extra descriptors, in bytes.
|
long |
getPointer()
Returns the native pointer.
|
int |
hashCode() |
byte |
iConfiguration()
Returns the index of string descriptor describing this configuration.
|
Interface[] |
iface()
Returns the array with interfaces supported by this configuration.
|
String |
toString() |
short |
wTotalLength()
Returns the total length of data returned for this configuration.
|
public ConfigDescriptor()
LibUsb.getConfigDescriptor(Device, byte, ConfigDescriptor)
method.public long getPointer()
public byte bLength()
public byte bDescriptorType()
LibUsb.DT_CONFIG
in this context.public short wTotalLength()
public byte bNumInterfaces()
public byte bConfigurationValue()
public byte iConfiguration()
public byte bmAttributes()
public byte bMaxPower()
public Interface[] iface()
public ByteBuffer extra()
public int extraLength()
public String dump()
Copyright © 2011–2018 usb4java Team. All rights reserved.