public class TestGPIODriver extends Object
| Constructor and Description |
|---|
TestGPIODriver() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear(int channel) |
List<GPIODriver.GPIOChannel> |
enumerateChannels() |
List<GPIODriver.GPIOChip> |
enumerateChips() |
GPIODriver.GPIOChannel |
export(int channel) |
void |
exportRange(int start,
int n) |
GPIODriver.GPIOChannel.Direction |
getDirection(int channel) |
void |
lock(int channel) |
void |
pollTest(int channel,
int n) |
boolean |
read(int channel) |
void |
readAll() |
void |
set(int channel) |
void |
setDirection(int channel,
GPIODriver.GPIOChannel.Direction dir) |
void |
unexport(int channel) |
void |
unexportRange(int start,
int n) |
void |
unlock(int channel) |
public TestGPIODriver()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="enumerateChips",
description="Enumerate available chips")
public List<GPIODriver.GPIOChip> enumerateChips()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="enumerateChannels",
description="Enumerate available chips")
public List<GPIODriver.GPIOChannel> enumerateChannels()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="export",
description="Export a single channel")
public GPIODriver.GPIOChannel export(@Argument(name="channel")
int channel)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="unexport",
description="Export a single channel")
public void unexport(@Argument(name="channel")
int channel)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="setChannel",
description="Set a single channel")
public void set(@Argument(name="channel")
int channel)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="clearChannel",
description="Clear a single channel")
public void clear(@Argument(name="channel")
int channel)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="readChannel",
description="Read a single channel")
public boolean read(@Argument(name="channel")
int channel)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="readAll",
description="Read all exported channels channel")
public void readAll()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="lock",
description="Lock a single channel")
public void lock(@Argument(name="channel")
int channel)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="unlock",
description="Unlock a single channel")
public void unlock(@Argument(name="channel")
int channel)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="getDirection",
description="Clear a single channel")
public GPIODriver.GPIOChannel.Direction getDirection(@Argument(name="channel")
int channel)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="setDirection",
description="Clear a single channel")
public void setDirection(@Argument(name="channel")
int channel,
@Argument(name="direction")
GPIODriver.GPIOChannel.Direction dir)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="exportRange",
description="Export all channels in specified range")
public void exportRange(@Argument(name="start")
int start,
@Argument(name="n")
int n)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="unexportRange",
description="Export all channels in specified range")
public void unexportRange(@Argument(name="start")
int start,
@Argument(name="n")
int n)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command(name="pollTest",
description="Repeatedly read a channel")
public void pollTest(@Argument(name="channel")
int channel,
@Argument(name="n",defaultValue="1000")
int n)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionCopyright © 2018 LSST. All rights reserved.