public class DefaultControlPipe extends Object
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 and Description |
|---|
DefaultControlPipe() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.Copyright © 2014 LSST. All Rights Reserved.