public class AwidGPIOService extends AbstractGPIOService<AwidSession>
Constructor and Description |
---|
AwidGPIOService() |
Modifier and Type | Method and Description |
---|---|
void |
flashGPO(java.lang.String readerID,
int flashTime,
java.util.Set<java.lang.Integer> ports)
This method flashes External Output to high for a specified number of
seconds.
|
void |
setGPO(java.lang.String readerID,
java.util.Collection<java.lang.Integer> ports)
This method sets the output ports on a reader
|
boolean |
testGPI(java.lang.String readerID,
int port)
Tests the current state of the port
|
flashGPO, isReaderAvailable, setGPO, setReaderDAO
public void flashGPO(java.lang.String readerID, int flashTime, java.util.Set<java.lang.Integer> ports) throws CannotExecuteException
AbstractGPIOService
flashGPO
in class AbstractGPIOService<AwidSession>
readerID
- The readerID of the readerflashTime
- The time in seconds to hold the ports highports
- The ports to flash. Port 0 is the lowest portCannotExecuteException
- If the ports cannot be flashed for some reasonpublic void setGPO(java.lang.String readerID, java.util.Collection<java.lang.Integer> ports) throws CannotExecuteException
AbstractGPIOService
setGPO
in class AbstractGPIOService<AwidSession>
readerID
- The readerID of the readerports
- The ports to set high. All other ports will be set low. Port 0
is the lowest port.CannotExecuteException
- If the ports cannot be set for some reason.public boolean testGPI(java.lang.String readerID, int port) throws CannotExecuteException
AbstractGPIOService
testGPI
in class AbstractGPIOService<AwidSession>
readerID
- The readerID of the readerport
- The port to test. Port 0 represents the lowest portCannotExecuteException