Package com.zebra.rfid.api3
Class GPIs
java.lang.Object
com.zebra.rfid.api3.GPIs
This class represents the General Purpose Input (GPI)
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
enablePort
(int portIndex, boolean enabled) Sets the GPI port to enabled or disabled stateint
Gets the number of GPI ports supported by the readergetPortState
(int portIndex) Gets the current GPI Port stateboolean
isPortEnabled
(int portIndex) Gets the GPI Port status
-
Method Details
-
isPortEnabled
Gets the GPI Port status- Parameters:
portIndex
- Index of the GPI port to be enabled/disabled- Returns:
- GPI Port status
- Throws:
InvalidUsageException
OperationFailureException
-
enablePort
public void enablePort(int portIndex, boolean enabled) throws InvalidUsageException, OperationFailureException Sets the GPI port to enabled or disabled state- Parameters:
portIndex
- Index of the GPI port to be enabled/disabledenabled
- Set to true to enable the GPI post, else false- Throws:
InvalidUsageException
OperationFailureException
-
getPortState
public GPI_PORT_STATE getPortState(int portIndex) throws InvalidUsageException, OperationFailureException Gets the current GPI Port state- Parameters:
portIndex
- Index of the GPI port to be enabled/disabled- Returns:
- GPI Port state
- Throws:
InvalidUsageException
OperationFailureException
-
getLength
public int getLength()Gets the number of GPI ports supported by the reader
-