|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.ntb.usb.Usb_Descriptor
ch.ntb.usb.Usb_Config_Descriptor
public class Usb_Config_Descriptor
Represents the descriptor of a USB configuration.
A USB device can have several different configuration.
The length of the configuration descriptor is
Usb_Descriptor.USB_DT_CONFIG_SIZE
and the type is
Usb_Descriptor.USB_DT_CONFIG
.
Field Summary | |
---|---|
static int |
USB_MAXCONFIG
Maximum number of configurations per device |
Fields inherited from class ch.ntb.usb.Usb_Descriptor |
---|
USB_DT_CONFIG, USB_DT_CONFIG_SIZE, USB_DT_DEVICE, USB_DT_DEVICE_SIZE, USB_DT_ENDPOINT, USB_DT_ENDPOINT_AUDIO_SIZE, USB_DT_ENDPOINT_SIZE, USB_DT_HID, USB_DT_HUB, USB_DT_HUB_NONVAR_SIZE, USB_DT_INTERFACE, USB_DT_INTERFACE_SIZE, USB_DT_PHYSICAL, USB_DT_REPORT, USB_DT_STRING |
Constructor Summary | |
---|---|
Usb_Config_Descriptor()
|
Method Summary | |
---|---|
byte |
getBConfigurationValue()
Returns the value to use as an argument to select this configuration ( LibusbJava.usb_set_configuration(long, int) ). |
byte |
getBmAttributes()
Returns the power parameters for this configuration. Bit 7: Reserved, set to 1 (USB 1.0 Bus Powered) Bit 6: Self Powered Bit 5: Remote Wakeup Bit 4..0: Reserved, set to 0 |
byte |
getBNumInterfaces()
Returns the number of interfaces. |
byte[] |
getExtra()
Returns the data of extra descriptor(s) if available. |
int |
getExtralen()
Returns the number of bytes of the extra descriptor. |
byte |
getIConfiguration()
Returns the index of the String descriptor describing this configuration. |
Usb_Interface[] |
getInterface()
Returns the USB interface descriptors. |
byte |
getMaxPower()
Returns the maximum power consumption in 2mA units. |
short |
getWTotalLength()
Returns the total length in bytes of all descriptors. When the configuration descriptor is read, it returns the entire configuration hierarchy which includes all related interface and endpoint descriptors. |
java.lang.String |
toString()
|
Methods inherited from class ch.ntb.usb.Usb_Descriptor |
---|
getBDescriptorType, getBLength |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int USB_MAXCONFIG
Constructor Detail |
---|
public Usb_Config_Descriptor()
Method Detail |
---|
public byte getBConfigurationValue()
LibusbJava.usb_set_configuration(long, int)
).
public byte getBmAttributes()
public byte getBNumInterfaces()
public byte[] getExtra()
public int getExtralen()
public byte getIConfiguration()
public Usb_Interface[] getInterface()
public byte getMaxPower()
public short getWTotalLength()
wTotalLength
field reflects the number of
bytes in the hierarchy.
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |