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

42 lines
969 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.

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