33 this->m_enable = enable;
36 this->fwVersion_tlm();
37 this->projectVersion_tlm();
38 this->libraryVersion_tlm();
44 void Version ::getVersion_handler(
FwIndexType portNum,
49 U8 version_slot = VersionSlot(version_id.
e);
54 void Version ::setVersion_handler(
FwIndexType portNum,
59 VersionSlot ver_slot = VersionSlot(version_id.
e);
63 this->m_num_custom_elements++;
64 this->customVersion_tlm(ver_slot);
82 switch (version_type) {
84 this->projectVersion_tlm();
88 this->fwVersion_tlm();
92 this->libraryVersion_tlm();
96 this->customVersion_tlm_all();
100 this->projectVersion_tlm();
101 this->fwVersion_tlm();
102 this->libraryVersion_tlm();
103 this->customVersion_tlm_all();
116 void Version ::fwVersion_tlm() {
124 void Version ::projectVersion_tlm() {
132 void Version ::libraryVersion_tlm() {
179 void Version ::customVersion_tlm_all() {
182 Version::customVersion_tlm(VersionSlot(i));
187 void Version ::customVersion_tlm(VersionSlot custom_slot) {
190 if ((this->verId_db[custom_slot].getversion_value() !=
"no_ver") &&
191 (this->m_num_custom_elements > 0)) {
195 this->verId_db[custom_slot].getversion_value());
197 if (m_enable ==
true) {
199 switch (custom_slot) {
uint8_t U8
8-bit unsigned integer
PlatformIndexType FwIndexType
C++-compatible configuration header for fprime configuration.
@ OK
Command successfully executed.
void setversion_status(Svc::VersionStatus::T version_status)
Set member version_status.
Fw::ExternalString & getversion_value()
Get member version_value.
void setversion_value(const Fw::StringBase &version_value)
Set member version_value.
Svc::VersionStatus::T getversion_status() const
Get member version_status.
void setversion_enum(Svc::VersionCfg::VersionEnum::T version_enum)
Set member version_enum.
@ NUM_CONSTANTS
The number of enumerated constants.
bool isValid() const
Check raw enum value for validity.
Auto-generated base for Version component.
void tlmWrite_CustomVersion04(const Svc::CustomVersionDb &arg, Fw::Time _tlmTime=Fw::Time())
Write telemetry channel CustomVersion04.
void log_ACTIVITY_LO_CustomVersions(Svc::VersionCfg::VersionEnum version_enum, const Fw::StringBase &version_value)
void tlmWrite_ProjectVersion(const Fw::StringBase &arg, Fw::Time _tlmTime=Fw::Time())
void tlmWrite_FrameworkVersion(const Fw::StringBase &arg, Fw::Time _tlmTime=Fw::Time())
void tlmWrite_CustomVersion03(const Svc::CustomVersionDb &arg, Fw::Time _tlmTime=Fw::Time())
Write telemetry channel CustomVersion03.
void tlmWrite_LibraryVersion09(const Fw::StringBase &arg, Fw::Time _tlmTime=Fw::Time())
Write telemetry channel LibraryVersion09.
void tlmWrite_LibraryVersion03(const Fw::StringBase &arg, Fw::Time _tlmTime=Fw::Time())
Write telemetry channel LibraryVersion03.
void tlmWrite_CustomVersion07(const Svc::CustomVersionDb &arg, Fw::Time _tlmTime=Fw::Time())
Write telemetry channel CustomVersion07.
void tlmWrite_LibraryVersion05(const Fw::StringBase &arg, Fw::Time _tlmTime=Fw::Time())
Write telemetry channel LibraryVersion05.
void log_ACTIVITY_LO_FrameworkVersion(const Fw::StringBase &version)
void tlmWrite_CustomVersion01(const Svc::CustomVersionDb &arg, Fw::Time _tlmTime=Fw::Time())
void tlmWrite_LibraryVersion04(const Fw::StringBase &arg, Fw::Time _tlmTime=Fw::Time())
Write telemetry channel LibraryVersion04.
void tlmWrite_CustomVersion08(const Svc::CustomVersionDb &arg, Fw::Time _tlmTime=Fw::Time())
Write telemetry channel CustomVersion08.
void log_ACTIVITY_LO_LibraryVersions(const Fw::StringBase &version)
void tlmWrite_LibraryVersion08(const Fw::StringBase &arg, Fw::Time _tlmTime=Fw::Time())
Write telemetry channel LibraryVersion08.
void tlmWrite_LibraryVersion07(const Fw::StringBase &arg, Fw::Time _tlmTime=Fw::Time())
Write telemetry channel LibraryVersion07.
void tlmWrite_CustomVersion09(const Svc::CustomVersionDb &arg, Fw::Time _tlmTime=Fw::Time())
Write telemetry channel CustomVersion09.
void tlmWrite_LibraryVersion01(const Fw::StringBase &arg, Fw::Time _tlmTime=Fw::Time())
void log_ACTIVITY_LO_ProjectVersion(const Fw::StringBase &version)
void tlmWrite_LibraryVersion06(const Fw::StringBase &arg, Fw::Time _tlmTime=Fw::Time())
Write telemetry channel LibraryVersion06.
void tlmWrite_CustomVersion02(const Svc::CustomVersionDb &arg, Fw::Time _tlmTime=Fw::Time())
Write telemetry channel CustomVersion02.
void cmdResponse_out(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdResponse response)
Emit command response.
void tlmWrite_LibraryVersion02(const Fw::StringBase &arg, Fw::Time _tlmTime=Fw::Time())
Write telemetry channel LibraryVersion02.
void tlmWrite_CustomVersion05(const Svc::CustomVersionDb &arg, Fw::Time _tlmTime=Fw::Time())
Write telemetry channel CustomVersion05.
void tlmWrite_LibraryVersion10(const Fw::StringBase &arg, Fw::Time _tlmTime=Fw::Time())
Write telemetry channel LibraryVersion10.
void tlmWrite_CustomVersion06(const Svc::CustomVersionDb &arg, Fw::Time _tlmTime=Fw::Time())
Write telemetry channel CustomVersion06.
void tlmWrite_CustomVersion10(const Svc::CustomVersionDb &arg, Fw::Time _tlmTime=Fw::Time())
Write telemetry channel CustomVersion10.
Tracks versions for project, framework and user defined versions etc.
@ ENABLED
verbosity enabled
Version(const char *const compName)
Construct Version object.
void config(bool enable)
configure version's verbosity and startup
~Version()
Destroy Version object.
An enumeration for version status.
@ FAILURE
Failure to get version.
An enumeration for Version Type.
bool isValid() const
Check raw enum value for validity.
@ FRAMEWORK
framework version
static const char *const LIBRARY_VERSIONS[]
static const char *const PROJECT_VERSION
static const FwIndexType LIBRARY_VERSIONS_COUNT
static const char *const FRAMEWORK_VERSION