Index

A B C D E F G H I M N O R S T U V 
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.
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
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.
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

E

ENDPOINT - Enum constant in enum class net.codecrete.usb.UsbRecipient
USB endpoint
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
 

F

findDevice(int, int) - Static method in class net.codecrete.usb.Usb
Gets the first connected USB device with the specified vendor and product ID.
findDevice(UsbDevicePredicate) - Static method in class net.codecrete.usb.Usb
Gets the first connected USB device matching the specified predicate.
findDevices(UsbDevicePredicate) - Static method in class net.codecrete.usb.Usb
Gets a list of connected USB devices matching the specified predicate.

G

getAlternate(int) - Method in interface net.codecrete.usb.UsbInterface
Gets the alternate interface settings with the specified number.
getAlternates() - Method in interface net.codecrete.usb.UsbInterface
Gets all alternate settings of this interface.
getClassCode() - Method in interface net.codecrete.usb.UsbAlternateInterface
Gets the interface class.
getClassCode() - Method in interface net.codecrete.usb.UsbDevice
USB device class code (bDeviceClass from device descriptor).
getConfigurationDescriptor() - Method in interface net.codecrete.usb.UsbDevice
Gets the configuration descriptor.
getCurrentAlternate() - Method in interface net.codecrete.usb.UsbInterface
Gets the currently selected alternate interface setting.
getDeviceDescriptor() - Method in interface net.codecrete.usb.UsbDevice
Gets the device descriptor.
getDevices() - Static method in class net.codecrete.usb.Usb
Gets a list of all connected USB devices.
getDeviceVersion() - Method in interface net.codecrete.usb.UsbDevice
Device version (as declared by the manufacturer).
getDirection() - Method in interface net.codecrete.usb.UsbEndpoint
Gets the direction of the endpoint.
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.
getEndpoints() - Method in interface net.codecrete.usb.UsbAlternateInterface
Gets the endpoints of this alternate interface settings.
getErrorCode() - Method in exception class net.codecrete.usb.UsbException
Gets the error code.
getInterface(int) - Method in interface net.codecrete.usb.UsbDevice
Gets the interface with the specified number.
getInterfaces() - Method in interface net.codecrete.usb.UsbDevice
Gets the interfaces of this device.
getMajor() - Method in class net.codecrete.usb.Version
Major version
getManufacturer() - Method in interface net.codecrete.usb.UsbDevice
Manufacturer name
getMinor() - Method in class net.codecrete.usb.Version
Minor version
getNumber() - Method in interface net.codecrete.usb.UsbAlternateInterface
Gets the alternate setting number.
getNumber() - Method in interface net.codecrete.usb.UsbEndpoint
Gets the USB endpoint number.
getNumber() - Method in interface net.codecrete.usb.UsbInterface
Gets the interface number.
getPacketSize() - Method in interface net.codecrete.usb.UsbEndpoint
Gets the packet size.
getProduct() - Method in interface net.codecrete.usb.UsbDevice
Product name.
getProductId() - Method in interface net.codecrete.usb.UsbDevice
USB product ID.
getProtocolCode() - Method in interface net.codecrete.usb.UsbAlternateInterface
Gets the interface protocol.
getProtocolCode() - Method in interface net.codecrete.usb.UsbDevice
USB device protocol (bDeviceProtocol from device descriptor).
getSerialNumber() - Method in interface net.codecrete.usb.UsbDevice
Serial number
getSubclassCode() - Method in interface net.codecrete.usb.UsbAlternateInterface
Gets the interface subclass.
getSubclassCode() - Method in interface net.codecrete.usb.UsbDevice
USB device subclass code (bDeviceSubClass from device descriptor).
getSubminor() - Method in class net.codecrete.usb.Version
Subminor version
getTransferType() - Method in interface net.codecrete.usb.UsbEndpoint
Gets the USB endpoint transfer type.
getUsbVersion() - Method in interface net.codecrete.usb.UsbDevice
USB protocol version supported by this device.
getVendorId() - Method in interface net.codecrete.usb.UsbDevice
USB vendor ID.

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
INTERRUPT - Enum constant in enum class net.codecrete.usb.UsbTransferType
Interrupt transfer
isClaimed() - Method in interface net.codecrete.usb.UsbInterface
Indicates if this interface has been claimed by this program for exclusive access.
ISOCHRONOUS - Enum constant in enum class net.codecrete.usb.UsbTransferType
Isochronous transfer
isOpened() - Method in interface net.codecrete.usb.UsbDevice
Indicates if the device is open.

M

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.

N

net.codecrete.usb - module net.codecrete.usb
Java Does USB – work with USB devices
net.codecrete.usb - package net.codecrete.usb
 

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)

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.
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

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.

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.

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
Version - Class in net.codecrete.usb
Semantic version number.
Version(int) - Constructor for class net.codecrete.usb.Version
Creates a new instance.
A B C D E F G H I M N O R S T U V 
All Classes and Interfaces|All Packages|Serialized Form