MotorControlModuleSDFM_TMS3.../Projects/EFC_Communication/UMLibrary/driver/Brake.hh
2024-06-07 11:12:56 +03:00

35 lines
509 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* 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_ */