MotorControlModuleSDFM_TMS3.../Projects/EFC_Communication/UMLibrary/driver/Brake.hh

35 lines
509 B
C++
Raw Normal View History

2024-06-07 11:12:56 +03:00
/*
* 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_ */