MotorControlModuleSDFM_TMS3.../Projects/EFC_Application/UMLibrary/application/schematic/SignalWatchDogSetup.hh

48 lines
962 B
C++

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