Files
flippr-code/FlippR-Driver/src/utilities/GPIOInterface.hpp
Jonas Zeunert 4c2a5815ff dunno
2018-05-07 23:19:45 +02:00

44 lines
897 B
C++

/*
* GPIOInterface.hpp
*
* Responsible for communicating with the actual GPIO hardware.
*
* Gets a JSON file with following style:
* TODO
*
* Created on: May 6, 2018
* Author: Andreas Schneider, Johannes Wendel, Jonas Zeunert, Rafael Vinci, Dr. Franca Rupprecht
*/
#ifndef SRC_UTILITIES_GPIOINTERFACE_HPP_
#define SRC_UTILITIES_GPIOINTERFACE_HPP_
#include <fstream>
#include <../lib/wiringPi/wiringPi.h>
#include "../lib/json/json.hpp"
using namespace nlohmann;
class GPIOInterface
{
public:
GPIOInterface(std::string config_path);
~GPIOInterface();
void write_address();
void read_pin();
public:
// todo some mapping class interface shit that a user can ask for what is actually usable \
something like: A has gpio interface at gpio -> gpio.input.column. just dont work with strings
private:
json config;
};
#endif /* SRC_UTILITIES_GPIOINTERFACE_HPP_ */