Index
All Classes and Interfaces|All Packages|Serialized Form
A
- alternate() - Method in interface net.codecrete.usb.USBInterface
-
Gets the currently selected alternate interface setting.
- alternates() - Method in interface net.codecrete.usb.USBInterface
-
Gets all alternate settings of this interface.
B
- BULK - Enum constant in enum class net.codecrete.usb.USBTransferType
-
Bulk transfer
C
- claimInterface(int) - Method in interface net.codecrete.usb.USBDevice
-
Claims the specified interface for exclusive use.
- CLASS - Enum constant in enum class net.codecrete.usb.USBRequestType
-
USB class specific request type
- classCode() - Method in interface net.codecrete.usb.USBAlternateInterface
-
Gets the interface class.
- classCode() - Method in interface net.codecrete.usb.USBDevice
-
USB device class code (
bDeviceClassfrom device descriptor). - classCode() - Method in class net.codecrete.usb.USBDeviceFilter
-
Gets the USB device class code.
- close() - Method in interface net.codecrete.usb.USBDevice
-
Closes the device.
- controlTransferIn(USBControlTransfer, int) - Method in interface net.codecrete.usb.USBDevice
-
Requests data from the control endpoint.
- controlTransferOut(USBControlTransfer, byte[]) - Method in interface net.codecrete.usb.USBDevice
-
Executes a control transfer request and optionally sends data.
D
- DEVICE - Enum constant in enum class net.codecrete.usb.USBRecipient
-
USB device
- direction() - Method in interface net.codecrete.usb.USBEndpoint
-
Gets the direction of the endpoint.
E
- ENDPOINT - Enum constant in enum class net.codecrete.usb.USBRecipient
-
USB endpoint
- endpoints() - Method in interface net.codecrete.usb.USBAlternateInterface
-
Gets the endpoints of this alternate interface settings.
- equals(Object) - Method in record class net.codecrete.usb.USBControlTransfer
-
Indicates whether some other object is "equal to" this one.
- errorCode() - Method in exception class net.codecrete.usb.USBException
-
Gets the error code.
G
- getAllDevices() - Static method in class net.codecrete.usb.USB
-
Gets a list of all connected USB devices.
- getDevice(List<USBDeviceFilter>) - Static method in class net.codecrete.usb.USB
-
Gets the first connected USB device matching any of the specified filters.
- getDevice(USBDeviceFilter) - Static method in class net.codecrete.usb.USB
-
Gets the first connected USB device matching the specified filter.
- getDevices(List<USBDeviceFilter>) - Static method in class net.codecrete.usb.USB
-
Gets a list of connected USB devices matching any of the specified filters.
- getDevices(USBDeviceFilter) - Static method in class net.codecrete.usb.USB
-
Gets a list of connected USB devices matching the specified filter.
H
- hashCode() - Method in record class net.codecrete.usb.USBControlTransfer
-
Returns a hash code value for this object.
I
- IN - Enum constant in enum class net.codecrete.usb.USBDirection
-
Direction IN (device to host)
- index() - Method in record class net.codecrete.usb.USBControlTransfer
-
Returns the value of the
indexrecord component. - INTERFACE - Enum constant in enum class net.codecrete.usb.USBRecipient
-
USB interface
- interfaces() - Method in interface net.codecrete.usb.USBDevice
-
Gets the interfaces of this device.
- INTERRUPT - Enum constant in enum class net.codecrete.usb.USBTransferType
-
Interrupt transfer
- isClaimed() - Method in interface net.codecrete.usb.USBInterface
-
Indicates if this interface is currently claimed for exclusive access.
- ISOCHRONOUS - Enum constant in enum class net.codecrete.usb.USBTransferType
-
Isochronous transfer
- isOpen() - Method in interface net.codecrete.usb.USBDevice
-
Indicates if the device is open.
M
- manufacturer() - Method in interface net.codecrete.usb.USBDevice
-
Manufacturer name
- matches(USBDevice) - Method in class net.codecrete.usb.USBDeviceFilter
-
Tests if the specified USB device matches this filter.
- matchesAny(USBDevice, List<USBDeviceFilter>) - Static method in class net.codecrete.usb.USBDeviceFilter
-
Test if the USB devices matches any of the filter conditions.
N
- net.codecrete.usb - module net.codecrete.usb
-
Java Does USB – work with USB devices
- net.codecrete.usb - package net.codecrete.usb
- number() - Method in interface net.codecrete.usb.USBAlternateInterface
-
Gets the alternate setting number.
- number() - Method in interface net.codecrete.usb.USBEndpoint
-
Gets the USB endpoint number.
- number() - Method in interface net.codecrete.usb.USBInterface
-
Gets the interface number.
O
- open() - Method in interface net.codecrete.usb.USBDevice
-
Opens the device for communication.
- OTHER - Enum constant in enum class net.codecrete.usb.USBRecipient
-
Other recipient
- OUT - Enum constant in enum class net.codecrete.usb.USBDirection
-
Direction OUT (host to device)
P
- packetSize() - Method in interface net.codecrete.usb.USBEndpoint
-
Gets the packet size.
- product() - Method in interface net.codecrete.usb.USBDevice
-
Product name.
- productId() - Method in interface net.codecrete.usb.USBDevice
-
USB product ID.
- productId() - Method in class net.codecrete.usb.USBDeviceFilter
-
Gets the USB product ID.
- protocolCode() - Method in interface net.codecrete.usb.USBAlternateInterface
-
Gets the interface protocol.
- protocolCode() - Method in interface net.codecrete.usb.USBDevice
-
USB device protocol (
bDeviceProtocolfrom device descriptor). - protocolCode() - Method in class net.codecrete.usb.USBDeviceFilter
-
Gets the USB device protocol code.
R
- recipient() - Method in record class net.codecrete.usb.USBControlTransfer
-
Returns the value of the
recipientrecord component. - releaseInterface(int) - Method in interface net.codecrete.usb.USBDevice
-
Releases the specified interface from exclusive use.
- request() - Method in record class net.codecrete.usb.USBControlTransfer
-
Returns the value of the
requestrecord component. - requestType() - Method in record class net.codecrete.usb.USBControlTransfer
-
Returns the value of the
requestTyperecord component.
S
- serialNumber() - Method in interface net.codecrete.usb.USBDevice
-
Serial number
- serialNumber() - Method in class net.codecrete.usb.USBDeviceFilter
-
Gets the device serial number.
- setClassCode(Integer) - Method in class net.codecrete.usb.USBDeviceFilter
-
Sets the USB device class code.
- setOnDeviceConnected(Consumer<USBDevice>) - Static method in class net.codecrete.usb.USB
-
Sets the handler to be called when a USB device is connected.
- setOnDeviceDisconnected(Consumer<USBDevice>) - Static method in class net.codecrete.usb.USB
-
Sets the handler to be called when a USB device is disconnected.
- setProductId(Integer) - Method in class net.codecrete.usb.USBDeviceFilter
-
Sets the USB product ID.
- setProtocolCode_(Integer) - Method in class net.codecrete.usb.USBDeviceFilter
-
Sets the USB device protocol code.
- setSerialNumber(String) - Method in class net.codecrete.usb.USBDeviceFilter
-
Sets the device serial number.
- setSubclassCode(Integer) - Method in class net.codecrete.usb.USBDeviceFilter
-
Sets the USB device subclass code.
- setVendorId(Integer) - Method in class net.codecrete.usb.USBDeviceFilter
-
Sets the USB vendor ID.
- STANDARD - Enum constant in enum class net.codecrete.usb.USBRequestType
-
Standard request type
- subclassCode() - Method in interface net.codecrete.usb.USBAlternateInterface
-
Gets the interface subclass.
- subclassCode() - Method in interface net.codecrete.usb.USBDevice
-
USB device subclass code (
bDeviceSubClassfrom device descriptor). - subclassCode() - Method in class net.codecrete.usb.USBDeviceFilter
-
Gets the USB device subclass code.
T
- toString() - Method in record class net.codecrete.usb.USBControlTransfer
-
Returns a string representation of this record class.
- transferIn(int, int) - Method in interface net.codecrete.usb.USBDevice
-
Receives data to this device.
- transferOut(int, byte[]) - Method in interface net.codecrete.usb.USBDevice
-
Sends data to this device.
- transferType() - Method in interface net.codecrete.usb.USBEndpoint
-
Gets the USB endpoint transfer type.
U
- USB - Class in net.codecrete.usb
-
Provides access to USB devices.
- USBAlternateInterface - Interface in net.codecrete.usb
-
USB alternate interface setting.
- USBControlTransfer - Record Class in net.codecrete.usb
-
USB control transfer parameters.
- USBControlTransfer(USBRequestType, USBRecipient, byte, short, short) - Constructor for record class net.codecrete.usb.USBControlTransfer
-
Creates an instance of a
USBControlTransferrecord class. - USBDevice - Interface in net.codecrete.usb
-
USB device.
- USBDeviceFilter - Class in net.codecrete.usb
-
Filter condition for matching USB devices.
- USBDeviceFilter() - Constructor for class net.codecrete.usb.USBDeviceFilter
-
Creates a new instance.
- USBDeviceFilter(int, int) - Constructor for class net.codecrete.usb.USBDeviceFilter
-
Creates a new instance that matches the specified vendor and product ID.
- USBDeviceFilter(int, int, String) - Constructor for class net.codecrete.usb.USBDeviceFilter
-
Creates a new instance that matches the specified vendor ID, product ID and serial number.
- USBDirection - Enum Class in net.codecrete.usb
-
USB endpoint data direction enumeration.
- USBEndpoint - Interface in net.codecrete.usb
-
USB endpoint.
- USBException - Exception Class in net.codecrete.usb
-
USB exception, thrown if an operation with USB devices fails.
- USBException(String) - Constructor for exception class net.codecrete.usb.USBException
-
Creates a new instance with a message.
- USBException(String, int) - Constructor for exception class net.codecrete.usb.USBException
-
Creates a new instance with a message and an error code.
- USBException(String, Throwable) - Constructor for exception class net.codecrete.usb.USBException
-
Creates a new instance with a message and a causal exception.
- USBInterface - Interface in net.codecrete.usb
-
USB interface.
- USBRecipient - Enum Class in net.codecrete.usb
-
USB control transfer recipient enumeration.
- USBRequestType - Enum Class in net.codecrete.usb
-
USB control transfer request type enumeration.
- USBTransferType - Enum Class in net.codecrete.usb
-
USB endpoint transfer type enumeration.
V
- value() - Method in record class net.codecrete.usb.USBControlTransfer
-
Returns the value of the
valuerecord component. - valueOf(String) - Static method in enum class net.codecrete.usb.USBDirection
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class net.codecrete.usb.USBRecipient
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class net.codecrete.usb.USBRequestType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class net.codecrete.usb.USBTransferType
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class net.codecrete.usb.USBDirection
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class net.codecrete.usb.USBRecipient
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class net.codecrete.usb.USBRequestType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class net.codecrete.usb.USBTransferType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- VENDOR - Enum constant in enum class net.codecrete.usb.USBRequestType
-
Vendor specific request type
- vendorId() - Method in interface net.codecrete.usb.USBDevice
-
USB vendor ID.
- vendorId() - Method in class net.codecrete.usb.USBDeviceFilter
-
Gets the USB vendor ID.
All Classes and Interfaces|All Packages|Serialized Form