gpio.h File Reference
A general GPIO utilities working class. More...
#include <string>
#include <iostream>
#include <map>
#include "files.h"
#include <boost/system/error_code.hpp>
Include dependency graph for gpio.h:
Go to the source code of this file.
Classes | |
struct | Edge |
The value of the edge and its string. More... | |
class | Gpio |
Each object instantiated from this class will control a GPIO pin. The GPIO pin number must be defined as static define. More... | |
Macros | |
#define | EXPORT_GPIO_PATH "/sys/class/gpio/export" |
Path which defines the file to create an new GPIO access point. | |
#define | UNEXPORT_GPIO_PATH "/sys/class/gpio/unexport" |
Path which defines the file to destroy the GPIO access point. | |
#define | GPIO_PATH "/sys/class/gpio/gpio" |
The working place path of the GPIO port created. | |
Enumerations | |
enum | DIRECTION { INPUT, OUTPUT } |
An enum definition of the direction of the port. More... | |
enum | VALUE { PIN_OFF = 0, PIN_ON = 1 } |
The value of the port. More... | |
enum | EDGE { NONE, RISING, FALLING, BOTH } |
The edge definition for the hardware interrupts. More... | |
enum | Functionality { DO0, DO1, DO2, DI0, DI1, DI2 } |
Digital outputs or inputs available for application users. More... | |
Enumeration Type Documentation
enum EDGE |