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/DoorLock.h

28 lines
426 B
C
Raw Permalink Normal View History

2017-12-17 11:31:13 +00:00
#ifndef DOORLOCK_H
#define DOORLOCK_H
#include "IGpio.h"
class DoorLock
{
public:
enum class ActiveState {
Low,
High,
};
typedef int TMilliseconds;
DoorLock(IGpio& gpio, ActiveState activeState, TMilliseconds openTime);
void open();
private:
void activate();
void deactivate();
IGpio& gpio;
ActiveState activeState;
TMilliseconds openTime;
};
#endif // DOORLOCK_H