weis nimmer

This commit is contained in:
Jonas Zeunert
2018-05-31 15:25:36 +02:00
parent 957373935a
commit 4c820110d5
9 changed files with 230 additions and 87 deletions

View File

@@ -1,43 +0,0 @@
/*
* 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_ */