You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
606 B
39 lines
606 B
#ifndef __DUMMY_PIN_HPP__
|
|
#define __DUMMY_PIN_HPP__
|
|
|
|
#include "./../../interfaces/pin.hpp"
|
|
|
|
#include <iostream>
|
|
|
|
|
|
struct Dummy_Pin : Pin<Dummy_Pin>
|
|
{
|
|
Dummy_Pin()
|
|
{
|
|
std::cout << "created Dummy_Pin" << std::endl;
|
|
}
|
|
|
|
void setImp(bool logic)
|
|
{
|
|
std::cout << "Dummy pin set to " << logic << std::endl;
|
|
}
|
|
|
|
void toggleImp()
|
|
{
|
|
std::cout << "toggled Dummy pin" << std::endl;
|
|
}
|
|
|
|
bool getImp()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
void dummy_stuff()
|
|
{
|
|
std::cout << "dummy specific stuff" << std::endl;
|
|
}
|
|
};
|
|
|
|
|
|
#endif // __DUMMY_PIN_HPP__
|