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
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidenablePort(int portIndex, boolean enabled) Sets the GPI port to enabled or disabled stateintGets the number of GPI ports supported by the readergetPortState(int portIndex) Gets the current GPI Port statebooleanisPortEnabled(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:
InvalidUsageExceptionOperationFailureException
-
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:
InvalidUsageExceptionOperationFailureException
-
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:
InvalidUsageExceptionOperationFailureException
-
getLength
public int getLength()Gets the number of GPI ports supported by the reader
-