public final class SimpleUsbInterfaceDescriptor extends SimpleUsbDescriptor implements javax.usb.UsbInterfaceDescriptor
Constructor and Description |
---|
SimpleUsbInterfaceDescriptor(byte bLength,
byte bDescriptorType,
byte bInterfaceNumber,
byte bAlternateSetting,
byte bNumEndpoints,
byte bInterfaceClass,
byte bInterfaceSubClass,
byte bInterfaceProtocol,
byte iInterface)
Constructor.
|
SimpleUsbInterfaceDescriptor(org.usb4java.InterfaceDescriptor descriptor)
Construct from a libusb4java interface descriptor.
|
Modifier and Type | Method and Description |
---|---|
byte |
bAlternateSetting() |
byte |
bInterfaceClass() |
byte |
bInterfaceNumber() |
byte |
bInterfaceProtocol() |
byte |
bInterfaceSubClass() |
byte |
bNumEndpoints() |
boolean |
equals(Object obj) |
int |
hashCode() |
byte |
iInterface() |
String |
toString() |
bDescriptorType, bLength
public SimpleUsbInterfaceDescriptor(byte bLength, byte bDescriptorType, byte bInterfaceNumber, byte bAlternateSetting, byte bNumEndpoints, byte bInterfaceClass, byte bInterfaceSubClass, byte bInterfaceProtocol, byte iInterface)
bLength
- The descriptor length.bDescriptorType
- The descriptor type.bInterfaceNumber
- The interface number.bAlternateSetting
- The alternate setting number.bNumEndpoints
- The number of endpoints.bInterfaceClass
- The interface class.bInterfaceSubClass
- The interface sub class.bInterfaceProtocol
- The interface protocol.iInterface
- The interface string descriptor index.public SimpleUsbInterfaceDescriptor(org.usb4java.InterfaceDescriptor descriptor)
descriptor
- The descriptor from which to copy the data.public byte bInterfaceNumber()
bInterfaceNumber
in interface javax.usb.UsbInterfaceDescriptor
public byte bAlternateSetting()
bAlternateSetting
in interface javax.usb.UsbInterfaceDescriptor
public byte bNumEndpoints()
bNumEndpoints
in interface javax.usb.UsbInterfaceDescriptor
public byte bInterfaceClass()
bInterfaceClass
in interface javax.usb.UsbInterfaceDescriptor
public byte bInterfaceSubClass()
bInterfaceSubClass
in interface javax.usb.UsbInterfaceDescriptor
public byte bInterfaceProtocol()
bInterfaceProtocol
in interface javax.usb.UsbInterfaceDescriptor
public byte iInterface()
iInterface
in interface javax.usb.UsbInterfaceDescriptor
Copyright © 2011–2018 usb4java Team. All rights reserved.