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

45 lines
1.1 KiB
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.

/*
* BrakeSetup.h
*
* Created on: 21 сент. 2019 г.
* Author: LeonidTitov
*/
#ifndef SOURCE_APPLICATION_raw_signals_BRAKESETUP_H_
#define SOURCE_APPLICATION_raw_signals_BRAKESETUP_H_
#include "../ISetupStep.hh"
#include "../../driver/IDiscreteOutput.hh"
#include <exception>
namespace application { namespace board {
struct Brake : public ISetupStep {
typedef driver::IDiscreteOutput IDiscreteOutput;
IDiscreteOutput * output = nullptr;
bool input( Environment & env );
void build( Environment & env );
struct Links {
Environment::Id discrete_output; //!<Дискретный выход управления тормозом.
Environment::Id brake; //!<Модуль управления тормозом.
Environment::StatusId engaged; //!<Тормоз наложен.
Environment::StatusId disengaged; //!<Тормоз снят.
};
const Links & links;
Brake( const Links & links ) : links(links) {}
};
}
}
#endif /* SOURCE_APPLICATION_raw_signals_BRAKESETUP_H_ */