Index
All Classes and Interfaces|All Packages|Serialized Form
A
- abortTransfers(USBDirection, int) - Method in interface net.codecrete.usb.USBDevice
-
Aborts all transfers on an endpoint.
- 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.
- attachStandardDrivers() - Method in interface net.codecrete.usb.USBDevice
-
Reattaches the standard operating-system drivers to this device.
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 (
bDeviceClass
from device descriptor). - clearHalt(USBDirection, int) - Method in interface net.codecrete.usb.USBDevice
-
Clears an endpoint's halt condition.
- close() - Method in interface net.codecrete.usb.USBDevice
-
Closes the device.
- configurationDescriptor() - Method in interface net.codecrete.usb.USBDevice
-
Gets the configuration descriptor.
- CONTROL - Enum constant in enum class net.codecrete.usb.USBTransferType
-
Control transfer
- 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
- detachStandardDrivers() - Method in interface net.codecrete.usb.USBDevice
-
Detaches the standard operating-system drivers of this device.
- DEVICE - Enum constant in enum class net.codecrete.usb.USBRecipient
-
USB device
- deviceDescriptor() - Method in interface net.codecrete.usb.USBDevice
-
Gets the device descriptor.
- deviceVersion() - Method in interface net.codecrete.usb.USBDevice
-
Device version (as declared by the manufacturer).
- 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.
- equals(Object) - Method in class net.codecrete.usb.Version
- 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.
- getAlternate(int) - Method in interface net.codecrete.usb.USBInterface
-
Gets the alternate interface settings with the specified number.
- getDevice(int, int) - Static method in class net.codecrete.usb.USB
-
Gets the first connected USB device with the specified vendor and product ID.
- getDevice(USBDevicePredicate) - Static method in class net.codecrete.usb.USB
-
Gets the first connected USB device matching the specified predicate.
- getDevices(USBDevicePredicate) - Static method in class net.codecrete.usb.USB
-
Gets a list of connected USB devices matching the specified predicate.
- getEndpoint(int, USBDirection) - Method in interface net.codecrete.usb.USBAlternateInterface
-
Gets the endpoint with the specified number and direction.
- getEndpoint(USBDirection, int) - Method in interface net.codecrete.usb.USBDevice
-
Gets the endpoint with the specified number.
- getInterface(int) - Method in interface net.codecrete.usb.USBDevice
-
Gets the interface with the specified number.
H
- hashCode() - Method in record class net.codecrete.usb.USBControlTransfer
-
Returns a hash code value for this object.
- hashCode() - Method in class net.codecrete.usb.Version
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
index
record 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
- major() - Method in class net.codecrete.usb.Version
-
Major version
- manufacturer() - Method in interface net.codecrete.usb.USBDevice
-
Manufacturer name
- matches(USBDevice) - Method in interface net.codecrete.usb.USBDevicePredicate
-
Evaluates this predicate on the given USB device.
- matchesAny(USBDevice, List<USBDevicePredicate>) - Static method in interface net.codecrete.usb.USBDevicePredicate
-
Test if the USB devices matches any of the filter conditions.
- minor() - Method in class net.codecrete.usb.Version
-
Minor version
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.
- openInputStream(int) - Method in interface net.codecrete.usb.USBDevice
-
Opens a new input stream to receive data from a bulk endpoint.
- openInputStream(int, int) - Method in interface net.codecrete.usb.USBDevice
-
Opens a new input stream to receive data from a bulk endpoint.
- openOutputStream(int) - Method in interface net.codecrete.usb.USBDevice
-
Opens a new output stream to send data to a bulk endpoint.
- openOutputStream(int, int) - Method in interface net.codecrete.usb.USBDevice
-
Opens a new output stream to send data to a bulk endpoint.
- 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.
- protocolCode() - Method in interface net.codecrete.usb.USBAlternateInterface
-
Gets the interface protocol.
- protocolCode() - Method in interface net.codecrete.usb.USBDevice
-
USB device protocol (
bDeviceProtocol
from device descriptor).
R
- recipient() - Method in record class net.codecrete.usb.USBControlTransfer
-
Returns the value of the
recipient
record 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
request
record component. - requestType() - Method in record class net.codecrete.usb.USBControlTransfer
-
Returns the value of the
requestType
record component.
S
- selectAlternateSetting(int, int) - Method in interface net.codecrete.usb.USBDevice
-
Selects the alternate settings for the specified interface.
- serialNumber() - Method in interface net.codecrete.usb.USBDevice
-
Serial number
- 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.
- 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 (
bDeviceSubClass
from device descriptor). - subminor() - Method in class net.codecrete.usb.Version
-
Subminor version
T
- toString() - Method in record class net.codecrete.usb.USBControlTransfer
-
Returns a string representation of this record class.
- toString() - Method in class net.codecrete.usb.Version
- transferIn(int) - Method in interface net.codecrete.usb.USBDevice
-
Receives data from this device.
- transferIn(int, int) - Method in interface net.codecrete.usb.USBDevice
-
Receives data from this device.
- transferOut(int, byte[]) - Method in interface net.codecrete.usb.USBDevice
-
Sends data to this device.
- transferOut(int, byte[], int) - Method in interface net.codecrete.usb.USBDevice
-
Sends data to this device.
- transferOut(int, byte[], int, int, int) - 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, int, int, int) - Constructor for record class net.codecrete.usb.USBControlTransfer
-
Creates an instance of a
USBControlTransfer
record class. - USBDevice - Interface in net.codecrete.usb
-
USB device.
- USBDevicePredicate - Interface in net.codecrete.usb
-
Represents a predicate (boolean-valued function) of one argument, evaluated for a given USB device.
- 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.
- USBStallException - Exception Class in net.codecrete.usb
-
Exception thrown if a communication on a USB endpoint failed.
- USBStallException(String) - Constructor for exception class net.codecrete.usb.USBStallException
-
Creates a new instance with a message.
- USBTimeoutException - Exception Class in net.codecrete.usb
-
Exception thrown if a USB operation times out.
- USBTimeoutException(String) - Constructor for exception class net.codecrete.usb.USBTimeoutException
-
Creates a new instance with a message.
- USBTransferType - Enum Class in net.codecrete.usb
-
USB endpoint transfer type enumeration.
- usbVersion() - Method in interface net.codecrete.usb.USBDevice
-
USB protocol version supported by this device.
V
- value() - Method in record class net.codecrete.usb.USBControlTransfer
-
Returns the value of the
value
record 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.
- Version - Class in net.codecrete.usb
-
Semantic version number.
- Version(int) - Constructor for class net.codecrete.usb.Version
-
Creates a new instance.
All Classes and Interfaces|All Packages|Serialized Form