35 lines
509 B
C++
35 lines
509 B
C++
/*
|
||
* Brake.h
|
||
*
|
||
* Created on: 1 февр. 2018 г.
|
||
* Author: titov
|
||
*/
|
||
|
||
#ifndef SOURCE_DRIVER_BRAKE_H_
|
||
#define SOURCE_DRIVER_BRAKE_H_
|
||
|
||
#include "IBrake.hh"
|
||
#include "IDiscreteOutput.hh"
|
||
|
||
namespace driver { namespace detail {
|
||
|
||
class Brake : public IBrake {
|
||
public:
|
||
Brake( IDiscreteOutput & output );
|
||
|
||
void engage();
|
||
void disengage();
|
||
|
||
bool isApplied() const;
|
||
bool isFree() const;
|
||
|
||
private:
|
||
IDiscreteOutput & output;
|
||
bool state;
|
||
};
|
||
|
||
}}
|
||
|
||
|
||
#endif /* SOURCE_DRIVER_BRAKE_H_ */
|