|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.usb.examples.DefaultControlPipe
public class DefaultControlPipe
Show some example communication via the Default Control Pipe (DCP).
This class shows how to perform some basic standard I/O using a device's DCP. This uses the first non-hub device found. This class should not be used except by other example code.
| Constructor Summary | |
|---|---|
DefaultControlPipe()
|
|
| Method Summary | |
|---|---|
static void |
main(String[] argv)
|
static boolean |
sendUsbControlIrp(UsbDevice usbDevice,
UsbControlIrp usbControlIrp)
Send the UsbControlIrp to the UsbDevice on the DCP. |
static void |
showStandardRequestCommunication(UsbDevice usbDevice)
Show how to communicate using the StandardRequest utility class. |
static void |
showUsbControlIrpCommunication(UsbDevice usbDevice)
Show how to communicate using UsbControlIrp objects. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultControlPipe()
| Method Detail |
|---|
public static void main(String[] argv)
public static void showUsbControlIrpCommunication(UsbDevice usbDevice)
usbDevice - The UsbDevice to use.
public static boolean sendUsbControlIrp(UsbDevice usbDevice,
UsbControlIrp usbControlIrp)
usbDevice - The UsbDevice.usbControlIrp - The UsbControlIrp.
public static void showStandardRequestCommunication(UsbDevice usbDevice)
usbDevice - The UsbDevice to use.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||