35 lines
504 B
C++
35 lines
504 B
C++
|
|
/*
|
|||
|
|
* Brake.h
|
|||
|
|
*
|
|||
|
|
* Created on: 1 <EFBFBD><EFBFBD><EFBFBD><EFBFBD>. 2018 <EFBFBD>.
|
|||
|
|
* 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_ */
|