-
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.
azorg/sgpio
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Simple GPIO Linux wrappers
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published