Overview
The gpio API will allow the user to control and receive information from the general purpose inputs and outputs of the equipment. The aim of this API is to supply functions and give an easy access to the gpios of an equipment, independent of the gpio type.
A general outline of the Gpio API can be observed in the following figure:
Main functionalities
The Gpio API provides the following functionalities:
-
Get Gpios : It allows to get all the Gpios of the machine being used and their information. Gpio information received: Gpio id, alias, type, address, direction, default value, active low, edge type, publish and bouncing time.
-
Set Gpio Value : It allows to set gpios to a specific value 0/1. Only gpios with output direction are subjected to this method.
-
Get Gpio Status : It allows to get gpios status (value, counter). Only gpios with input direction are subjected to this method.
-
Set Gpio Configuration : It allows to modify the configuration of a gpio. Possible parameters to modify: alias, default value, active low, edge type, publish and bouncing time.
- Subscribe to GPIOs events : It allows to subscribe to gpios status information.