Some adapters (SyncLink GT series) have general purpose input/output (GPIO) signals that are accessible by a header (plug) on the adapter. These signals may be used for custom applications, and can be controlled through the HDLC API.
There are three types of GPIO signals:
The number and type of GPIO signals varies by adapter, up to a total of 32 signals. Inputs can be monitored for current state and state transitions. Outputs can be controlled to be a low or high logic value. Configurable signals can be set to be inputs or outputs.
GPIO functions use a GPIO_DESC structure defined in the mghdlc.h header file.
| MgslGetGpio | Get direction (input/output) of signals and state of inputs |
| MgslSetGpio | Set direction (input/output) of signals or state of outputs |
| MgslWaitGpio | Wait for an input to reach a desired state |
| MgslCancelWaitGpio | Cancel a call to MgslWaitGpio |
| Previous | Contents | Next |