public class Usb_Interface_Descriptor extends Usb_Descriptor
Usb_Descriptor.USB_DT_INTERFACE_SIZE and the type is
Usb_Descriptor.USB_DT_INTERFACE.| Modifier and Type | Field and Description |
|---|---|
static int |
USB_MAXINTERFACES
Maximum number of interfaces
|
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 and Description |
|---|
Usb_Interface_Descriptor() |
| Modifier and Type | Method and Description |
|---|---|
byte |
getBAlternateSetting()
Returns the value used to select the alternate setting (
LibusbJava.usb_set_altinterface(long, int)). |
byte |
getBInterfaceClass()
Returns the class code (Assigned by www.usb.org).
|
byte |
getBInterfaceNumber()
Returns the number (identifier) of this interface.
|
byte |
getBInterfaceProtocol()
Returns the protocol code (Assigned by www.usb.org).
|
byte |
getBInterfaceSubClass()
Returns the subclass code (Assigned by www.usb.org).
|
byte |
getBNumEndpoints()
Returns the number of endpoints used for this interface.
|
Usb_Endpoint_Descriptor[] |
getEndpoint()
Returns an array of endpoint descriptors.
|
byte[] |
getExtra()
Returns the data of extra descriptor(s) if available.
|
int |
getExtralen()
Returns the number of bytes of the extra descriptor.
|
byte |
getIInterface()
Returns the index of the String descriptor describing this interface.
|
java.lang.String |
toString() |
getBDescriptorType, getBLengthpublic static final int USB_MAXINTERFACES
public java.lang.String toString()
toString in class java.lang.Objectpublic byte getBAlternateSetting()
LibusbJava.usb_set_altinterface(long, int)).public byte getBInterfaceClass()
public byte getBInterfaceNumber()
public byte getBInterfaceProtocol()
public byte getBInterfaceSubClass()
public byte getBNumEndpoints()
public Usb_Endpoint_Descriptor[] getEndpoint()
public byte[] getExtra()
public int getExtralen()
public byte getIInterface()