Model Railroad System
2.2.1
|
Linux GPIO Interface. More...
Classes | |
class | GpioInputActiveHigh |
Input pin, active high (high is true). More... | |
class | GpioInputActiveLow |
Input pin, active low (low is true). More... | |
class | GpioOutputSafeHigh |
Output pin, initialized to high. More... | |
class | GpioOutputSafeHighInvert |
Output pin, initialized to high, inverted. More... | |
class | GpioOutputSafeLow |
Output pin, initialized to low. More... | |
class | GpioOutputSafeLowInverted |
Output pin, initialized to low, with inverted logic. More... | |
class | LinuxGpio |
Base generic GPIO interface class. More... | |
Typedefs | |
typedef int | pinnotype |
Pin number type, a positive integer. More... | |
Enumerations | |
enum | pindirection { in, out, high, low } |
Linux GPIO Interface.
This is the portable implementation of GPIO under Linux, using the sysfs file system (/sys/class/gpio/...). This code should work on all SBC / development boards that run Linux (Raspberry Pis, Beagle Bones, Banana Pis, etc.).
LinuxGpio 1.0.0
typedef int linuxgpio::pinnotype |
Pin number type, a positive integer.