public class TestUsbCommNew extends Object implements org.lsst.ccs.utilities.sa.CmndProcess.Dispatch
| Constructor and Description |
|---|
TestUsbCommNew() |
TestUsbCommNew(boolean debug)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
dispatch(int code,
int found,
Object[] args)
Dispatches command for processing
|
void |
findDevice(int vendId,
int devId,
String serial)
Processes the FIND command
|
static void |
main(String[] args)
Main program
|
void |
openDevice(int iface,
int epaddr)
Processes the OPEN command
|
void |
run()
Runs the test
Loops reading and processing each new typed command line.
|
public TestUsbCommNew(boolean debug)
public TestUsbCommNew()
public static void main(String[] args)
public void run()
public boolean dispatch(int code,
int found,
Object[] args)
dispatch in interface org.lsst.ccs.utilities.sa.CmndProcess.Dispatch@Command(name="find",
description="Find USB a device")
public void findDevice(@Argument(name="vendId",description="The vendor ID of the device")
int vendId,
@Argument(name="devId",description="The device ID of the device")
int devId,
@Argument(name="serial",description="The serial number of the device (default any)",defaultValue="***NULL_VALUE_FOR_COMMAND_ARGUMENT***")
String serial)
throws UsbException
UsbException@Command(name="open",
description="Open a pipe to a device endpoint")
public void openDevice(@Argument(name="iface",description="The number of the interface to use")
int iface,
@Argument(name="epaddr",description="The address of the endpoint to open")
int epaddr)
throws UsbException
UsbExceptionCopyright © 2014 LSST. All Rights Reserved.