diff --git a/interfaces/pin.hpp b/interfaces/pin.hpp index 3a265d6..0da3daa 100644 --- a/interfaces/pin.hpp +++ b/interfaces/pin.hpp @@ -4,10 +4,20 @@ template struct Pin { + bool read() + { + return static_cast(this)->readImpl(); + } + void write(bool logic) { static_cast(this)->writeImpl(logic); } + + void toggle() + { + static_cast(this)-toggleImpl(); + } }; #endif // __PIN_HPP__