threading again

This commit is contained in:
Jonas Zeunert
2018-05-06 23:19:02 +02:00
parent c2fb59139b
commit c1a29d8bea
11 changed files with 20856 additions and 24 deletions

View File

@@ -0,0 +1,40 @@
/*
* 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();
private:
json config;
};
#endif /* SRC_UTILITIES_GPIOINTERFACE_HPP_ */