This repository has been archived on 2024-11-17. You can view files and clone it, but cannot push or open issues or pull requests.
zamek-hswro/IGpio.h

21 lines
325 B
C
Raw Permalink Normal View History

2017-12-17 11:31:13 +00:00
#ifndef IGPIO_H
#define IGPIO_H
class IGpio
{
public:
enum class Mode {
Input,
InputPullup,
Output,
};
virtual ~IGpio() {}
virtual bool read() = 0;
virtual void write(bool value) = 0;
virtual Mode getMode() = 0;
virtual void setMode(Mode mode) = 0;
};
#endif // IGPIO_H