public class GPIs
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
GPIs.Port
Represents the individual GPI Port
|
Modifier and Type | Method and Description |
---|---|
void |
enablePort(int portIndex,
boolean enabled)
Sets the GPI port to enabled or disabled state
|
int |
getLength()
Gets the number of GPI ports supported by the reader
|
GPI_PORT_STATE |
getPortState(int portIndex)
Gets the current GPI Port state
|
boolean |
isPortEnabled(int portIndex)
Gets the GPI Port status
|
public boolean isPortEnabled(int portIndex) throws InvalidUsageException, OperationFailureException
portIndex
- Index of the GPI port to be enabled/disabledInvalidUsageException
OperationFailureException
public void enablePort(int portIndex, boolean enabled) throws InvalidUsageException, OperationFailureException
portIndex
- Index of the GPI port to be enabled/disabledenabled
- Set to true to enable the GPI post, else falseInvalidUsageException
OperationFailureException
public GPI_PORT_STATE getPortState(int portIndex) throws InvalidUsageException, OperationFailureException
portIndex
- Index of the GPI port to be enabled/disabledInvalidUsageException
OperationFailureException
public int getLength()