javax.usb.examples
Class DefaultControlPipe

java.lang.Object
  extended by javax.usb.examples.DefaultControlPipe

public class DefaultControlPipe
extends Object

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

DefaultControlPipe

public DefaultControlPipe()
Method Detail

main

public static void main(String[] argv)

showUsbControlIrpCommunication

public static void showUsbControlIrpCommunication(UsbDevice usbDevice)
Show how to communicate using UsbControlIrp objects.

Parameters:
usbDevice - The UsbDevice to use.

sendUsbControlIrp

public static boolean sendUsbControlIrp(UsbDevice usbDevice,
                                        UsbControlIrp usbControlIrp)
Send the UsbControlIrp to the UsbDevice on the DCP.

Parameters:
usbDevice - The UsbDevice.
usbControlIrp - The UsbControlIrp.
Returns:
If the submission was successful.

showStandardRequestCommunication

public static void showStandardRequestCommunication(UsbDevice usbDevice)
Show how to communicate using the StandardRequest utility class.

Parameters:
usbDevice - The UsbDevice to use.


Copyright © 2013 LSST. All Rights Reserved.