36 lines
846 B
C++
36 lines
846 B
C++
/*
|
|
* InputGPIOInterface.h
|
|
*
|
|
* Created on: May 31, 2018
|
|
* Author: Andreas Schneider, Johannes Wendel, Jonas Zeunert, Rafael Vinci, Dr. Franca Rupprecht
|
|
*/
|
|
|
|
#ifndef SRC_UTILITIES_INPUTGPIOINTERFACE_H_
|
|
#define SRC_UTILITIES_INPUTGPIOINTERFACE_H_
|
|
|
|
#include <exception>
|
|
#include "IInputGPIOInterface.h"
|
|
#include "GPIOInterface.h"
|
|
|
|
class InputGPIOInterface : public IInputGPIOInterface, GPIOInterface
|
|
{
|
|
public:
|
|
InputGPIOInterface(std::istream& matrix_config_stream);
|
|
bool read_input_data(char pin);
|
|
|
|
private:
|
|
void write_input_row(char data);
|
|
void write_input_col(char data);
|
|
|
|
private:
|
|
char input_row_address_A;
|
|
char input_row_address_B;
|
|
char input_row_address_C;
|
|
char input_col_address_A;
|
|
char input_col_address_B;
|
|
char input_col_address_C;
|
|
char input_data_address;
|
|
};
|
|
|
|
#endif /* SRC_UTILITIES_INPUTGPIOINTERFACE_H_ */
|