The submission methods contained in this UsbDevice operate on the device's Default Control Pipe.
The device does not have to be configured to use the Default Control Pipe.
The implementation is not required to be Thread-safe. If a Thread-safe UsbDevice
is required, use a synchronizedUsbDevice.
| Modifier and Type | Method and Description |
|---|---|
| public void | addUsbDeviceListener(UsbDeviceListener
The UsbDeviceListener to add. listener)Add a UsbDeviceListener to this UsbDevice. |
| public void | asyncSubmit(UsbControlIrp
The UsbControlIrp. irp)Submit a UsbControlIrp asynchronously to the Default Control Pipe. |
| public void | asyncSubmit(List<E>
The List of UsbControlIrps. list)Submit a List of UsbControlIrps asynchronously to the Default Control Pipe. |
| public boolean | Returns: If the specified UsbConfiguration is contained in this UsbDevice.If this UsbDevice contains the specified UsbConfiguration. |
| public UsbControlIrp | Returns: A UsbControlIrp ready for use.The bmRequestType. bmRequestType, byte The bRequest. bRequest, short The wValue. wValue, short The wIndex. wIndex)Create a UsbControlIrp. |
| public UsbConfiguration | Returns: The active UsbConfiguration, or null.Get the active UsbConfiguration. |
| public byte | Returns: The active config number.Get the number of the active UsbConfiguration. |
| public String | |
| public UsbPort | Returns: The port on the parent UsbHub that this is attached to.Get the UsbPort on the parent UsbHub that this device is connected to. |
| public String | |
| public String | |
| public Object | |
| public String | Returns: The specified String.The index of the string to get. index)Get the String from the specified string descriptor. |
| public UsbConfiguration | Returns: The specified UsbConfiguration, or null.Get the specified UsbConfiguration. |
| public List | Returns: All UsbConfigurations for this device.Get all UsbConfigurations for this device. |
| public UsbDeviceDescriptor | |
| public UsbStringDescriptor | Returns: The specified string descriptor.The index of the string descriptor to get. index)Get the specified string descriptor. |
| public boolean | |
| public boolean | |
| public void | removeUsbDeviceListener(UsbDeviceListener
The listener to remove. listener)Remove a UsbDeviceListener from this UsbDevice. |
| public void | syncSubmit(UsbControlIrp
The UsbControlIrp. irp)Submit a UsbControlIrp synchronously to the Default Control Pipe. |
| public void | syncSubmit(List<E>
The List of UsbControlIrps. list)Submit a List of UsbControlIrps synchronously to the Default Control Pipe. |
| addUsbDeviceListener | back to summary |
|---|---|
| public void addUsbDeviceListener(UsbDeviceListener listener) Add a UsbDeviceListener to this UsbDevice.
| |
| asyncSubmit | back to summary |
|---|---|
| public void asyncSubmit(UsbControlIrp irp) throws UsbException, IllegalArgumentException, UsbDisconnectedException Submit a UsbControlIrp asynchronously to the Default Control Pipe.
| |
| asyncSubmit | back to summary |
|---|---|
| public void asyncSubmit(List<E> list) throws UsbException, IllegalArgumentException, UsbDisconnectedException Submit a List of UsbControlIrps asynchronously to the Default Control Pipe. All UsbControlIrps are guaranteed to be atomically (with respect to other clients of this API) submitted to the Default Control Pipe. Atomicity on a native level is implementation-dependent.
| |
| containsUsbConfiguration | back to summary |
|---|---|
| public boolean containsUsbConfiguration(byte number) If this UsbDevice contains the specified UsbConfiguration. This will return false for zero (the Not Configured state).
| |
| createUsbControlIrp | back to summary |
|---|---|
| public UsbControlIrp createUsbControlIrp(byte bmRequestType, byte bRequest, short wValue, short wIndex) Create a UsbControlIrp.
This creates a UsbControlIrp that may be optimized for use on
this UsbDevice. Using this UsbIrp instead of a
The UsbDevice cannot require this UsbControlIrp to be used, all submit methods must accept any UsbControlIrp implementation.
| |
| getActiveUsbConfiguration | back to summary |
|---|---|
| public UsbConfiguration getActiveUsbConfiguration() Get the active UsbConfiguration. If this device is Not Configured, this returns null.
| |
| getActiveUsbConfigurationNumber | back to summary |
|---|---|
| public byte getActiveUsbConfigurationNumber() Get the number of the active UsbConfiguration. If the device is in a Not Configured state, this will return zero.
| |
| getManufacturerString | back to summary |
|---|---|
| public String getManufacturerString() throws UsbException, UnsupportedEncodingException, UsbDisconnectedException Get the manufacturer String.
This is a convienence method, which uses
| |
| getParentUsbPort | back to summary |
|---|---|
| public UsbPort getParentUsbPort() throws UsbDisconnectedException Get the UsbPort on the parent UsbHub that this device is connected to.
| |
| getProductString | back to summary |
|---|---|
| public String getProductString() throws UsbException, UnsupportedEncodingException, UsbDisconnectedException Get the product String.
This is a convienence method, which uses
| |
| getSerialNumberString | back to summary |
|---|---|
| public String getSerialNumberString() throws UsbException, UnsupportedEncodingException, UsbDisconnectedException Get the serial number String.
This is a convienence method, which uses
| |
| getSpeed | back to summary |
|---|---|
| public Object getSpeed() Get the speed of the device. The speed will be one of:
| |
| getString | back to summary |
|---|---|
| public String getString(byte index) throws UsbException, UnsupportedEncodingException, UsbDisconnectedException Get the String from the specified string descriptor.
This is a convienence method, which uses
| |
| getUsbConfiguration | back to summary |
|---|---|
| public UsbConfiguration getUsbConfiguration(byte number) Get the specified UsbConfiguration. If the specified UsbConfiguration does not exist, null is returned. Config number 0 is reserved for the Not Configured state (see the USB 1.1 specification section 9.4.2). Obviously, no UsbConfiguration exists for the Not Configured state.
| |
| getUsbConfigurations | back to summary |
|---|---|
| public List Get all UsbConfigurations for this device. The List is unmodifiable.
| |
| getUsbDeviceDescriptor | back to summary |
|---|---|
| public UsbDeviceDescriptor getUsbDeviceDescriptor() Get the device descriptor. The descriptor may be cached.
| |
| getUsbStringDescriptor | back to summary |
|---|---|
| public UsbStringDescriptor getUsbStringDescriptor(byte index) throws UsbException, UsbDisconnectedException Get the specified string descriptor. This is a convienence method. The UsbStringDescriptor may be cached. If the device does not support strings or does not define the specified string descriptor, this returns null.
| |
| isConfigured | back to summary |
|---|---|
| public boolean isConfigured() If this UsbDevice is configured. This returns true if the device is in the configured state as shown in the USB 1.1 specification table 9.1.
| |
| isUsbHub | back to summary |
|---|---|
| public boolean isUsbHub() If this is a UsbHub.
| |
| removeUsbDeviceListener | back to summary |
|---|---|
| public void removeUsbDeviceListener(UsbDeviceListener listener) Remove a UsbDeviceListener from this UsbDevice.
| |
| syncSubmit | back to summary |
|---|---|
| public void syncSubmit(UsbControlIrp irp) throws UsbException, IllegalArgumentException, UsbDisconnectedException Submit a UsbControlIrp synchronously to the Default Control Pipe.
| |
| syncSubmit | back to summary |
|---|---|
| public void syncSubmit(List<E> list) throws UsbException, IllegalArgumentException, UsbDisconnectedException Submit a List of UsbControlIrps synchronously to the Default Control Pipe. All UsbControlIrps are guaranteed to be atomically (with respect to other clients of this API) submitted to the Default Control Pipe. Atomicity on a native level is implementation-dependent.
| |