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

40 lines
964 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.

/*
* FixedConstSignal.hh
*
* Created on: 26 мая 2020 г.
* Author: LeonidTitov
*/
#ifndef UMLIBRARY_APPLICATION_SCHEMATIC_FIXEDCONSTSIGNAL_HH_
#define UMLIBRARY_APPLICATION_SCHEMATIC_FIXEDCONSTSIGNAL_HH_
#include "../ISetupStep.hh"
namespace application { namespace schematic {
//!Константный сигнал.
struct FixedConstSignal : public ISetupStep {
bool input( Environment & env ) { return true; }
void build( Environment & env );
struct Links {
Environment::SignalId constant; //!<Константный сигнал.
};
//!Начальные значения.
struct Setting {
float value; //!<Значение константы.
};
const Links & links;
const Setting & setting;
FixedConstSignal( const Links & links, const Setting & setting ) :
links(links), setting(setting) {}
};
}}
#endif /* UMLIBRARY_APPLICATION_SCHEMATIC_FIXEDCONSTSIGNAL_HH_ */