-
Call sgpio_unexport(gpio_number), may ignore errors first time.
-
Call sgpio_export(gpio_number), check return codes.
-
Run sgpio_init() as constructor of
sgpio_t
structure. -
Run sgpio_mode() to set input/output and edge mode.
-
Call sgpio_set() for output or sgpio_get() for input.
-
For input lines with edge mode (rising, falling or both) may use sgpio_poll() or sgpio_epoll() functions.