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.
|
#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
|