ModuleAPI C# Version Developer's Guide
Get GPI
 
There are two methods to get the GPI state, one is to get only one GPI pin's state at a time, and the other is to get all the reader's GPI pins' states at a time.

GPIGet Methods

Get the state/states of one GPI pin or all the pins of reader
 
Method One

Get the state of one GPI pin
  
Method Signature
  
public abstract bool GPIGet(int pin)
 
Parameters
Parameter Description
pin GPI ID,one-based numbering
 
Return Value
The state of the GPI pin
 
Example
Get the state of GPI pin 1
  
bool gpi1 = rdr. GPIGet(1);
 
Method Two

Get the states of all the GPI pins of reader
 
Method Signature
  
public GPIState[] GPIGet()
 
Return Value
The states of all the GPI pins of reader
 
Example
  
GPIState[] gstates = rdr. GPIGet();