Model Railroad System  2.2.1
Classes | Typedefs | Enumerations
linuxgpio Namespace Reference

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 }
 

Detailed Description

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.).

Author
Robert Heller <heller@deepsoft.com>

Package provided

LinuxGpio 1.0.0

Typedef Documentation

◆ pinnotype

typedef int linuxgpio::pinnotype

Pin number type, a positive integer.

Enumeration Type Documentation

◆ pindirection

Pin direction and initial type code.

Enumerator
in 

Input Pin.

out 

Output Pin.

high 

Output Pin, initialized to high.

low 

Output Pin, initialized to low.