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

42 lines
897 B
C++

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