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

48 lines
966 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.

/*
* SignalWatchDogSetup.h
*
* Created on: 12 окт. 2019 г.
* Author: titov
*/
#ifndef SOURCE_APPLICATION_SCHEMATIC_SIGNALWATCHDOGSETUP_H_
#define SOURCE_APPLICATION_SCHEMATIC_SIGNALWATCHDOGSETUP_H_
#include "../ISetupStep.hh"
namespace application { namespace schematic {
//!
struct SignalWatchDogSetup : public ISetupStep {
typedef systemic::ISignal ISignal;
ISignal * signal = nullptr;
bool input( Environment & env );
void build( Environment & env );
struct Links {
Environment::SignalId in_signal_id;
Environment::StatusId out_status_id;
};
struct Setting {
float timeout_in_second;
};
const Links & links;
const Setting & setting;
SignalWatchDogSetup( const Links & links, const Setting & setting ) : links(links), setting(setting) {}
};
} /* namespace schematic */
} /* namespace application */
#endif /* SOURCE_APPLICATION_SCHEMATIC_SIGNALWATCHDOGSETUP_H_ */