39 lines
716 B
C++
39 lines
716 B
C++
/*
|
|
* OutputGPIOInterface.h
|
|
*
|
|
* Created on: May 31, 2018
|
|
* Author: Andreas Schneider, Johannes Wendel, Jonas Zeunert
|
|
*/
|
|
|
|
#ifndef SRC_UTILITIES_OUTPUTGPIOINTERFACE_H_
|
|
#define SRC_UTILITIES_OUTPUTGPIOINTERFACE_H_
|
|
|
|
#include "PinController.h"
|
|
|
|
#include <map>
|
|
|
|
namespace flippR_driver
|
|
{
|
|
namespace output
|
|
{
|
|
|
|
namespace items
|
|
{
|
|
class DriverBoardItem;
|
|
}
|
|
class OutputPinController : public PinController
|
|
{
|
|
|
|
public:
|
|
virtual ~OutputPinController() = default;
|
|
|
|
protected:
|
|
static void initialize_i2c_address(uint8_t i2c_address, uint8_t pin_base);
|
|
static void initialize_pins_output(uint8_t pin_base, std::map<std::string, uint8_t>::iterator begin, std::map<std::string, uint8_t>::iterator end);
|
|
};
|
|
|
|
}
|
|
}
|
|
|
|
#endif
|