39 lines
698 B
C++
39 lines
698 B
C++
/*
|
|
* CabinetItem.h
|
|
*
|
|
* Created on: Aug 2, 2018
|
|
* Author: rhetenor
|
|
*/
|
|
|
|
#ifndef _SRC_OUTPUT_CABINETITEM_H_
|
|
#define _SRC_OUTPUT_CABINETITEM_H_
|
|
|
|
#include "IOutputItem.h"
|
|
|
|
#include "utility/IOutputGPIOInterface.h"
|
|
|
|
#include <memory>
|
|
#include <string>
|
|
|
|
namespace flippR_driver
|
|
{
|
|
namespace output
|
|
{
|
|
|
|
class OutputItem : public IOutputItem
|
|
{
|
|
public:
|
|
OutputItem(std::shared_ptr<utility::IOutputGPIOInterface> output_gpio_interface, int i2c_address, int data_pin_address, std::string name);
|
|
virtual ~OutputItem();
|
|
|
|
protected:
|
|
int i2c_address, data_pin_address;
|
|
std::string name;
|
|
|
|
std::shared_ptr<utility::IOutputGPIOInterface> output_gpio_interface;
|
|
};
|
|
|
|
} /* namespace output */
|
|
}
|
|
#endif
|