public final class InterfaceDescriptor extends Object
Modifier and Type | Method and Description |
---|---|
byte |
bAlternateSetting()
Returns the value used to select this alternate setting for this
interface.
|
byte |
bDescriptorType()
Returns the descriptor type.
|
byte |
bInterfaceClass()
Returns the USB-IF class code for this interface.
|
byte |
bInterfaceNumber()
Returns the number of this interface.
|
byte |
bInterfaceProtocol()
Returns the USB-IF protocol code for this interface, qualified by the
bInterfaceClass and bInterfaceSubClass values.
|
byte |
bInterfaceSubClass()
Returns the USB-IF subclass code for this interface, qualified by the
bInterfaceClass value.
|
byte |
bLength()
Returns the size of this descriptor (in bytes).
|
byte |
bNumEndpoints()
Returns the number of endpoints used by this interface (excluding the
control endpoint).
|
String |
dump()
Returns a dump of this descriptor.
|
EndpointDescriptor[] |
endpoint()
Returns the array with endpoints.
|
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 |
iInterface()
Returns the index of string descriptor describing this interface.
|
String |
toString() |
public long getPointer()
public byte bLength()
public byte bDescriptorType()
LibUsb.DT_INTERFACE
in this context.public byte bInterfaceNumber()
public byte bAlternateSetting()
public byte bNumEndpoints()
public byte bInterfaceClass()
public byte bInterfaceSubClass()
public byte bInterfaceProtocol()
public byte iInterface()
public EndpointDescriptor[] endpoint()
public ByteBuffer extra()
public int extraLength()
public String dump()
Copyright © 2011–2018 usb4java Team. All rights reserved.