7 #ifndef Svc_VersionComponentAc_HPP
8 #define Svc_VersionComponentAc_HPP
18 #if FW_ENABLE_TEXT_LOGGING == 1
183 #if FW_ENABLE_TEXT_LOGGING == 1
186 void set_logTextOut_OutputPort(
205 #if FW_PORT_SERIALIZATION
216 Fw::InputSerializePort* port
222 Fw::InputSerializePort* port
228 Fw::InputSerializePort* port
231 #if FW_ENABLE_TEXT_LOGGING == 1
234 void set_logTextOut_OutputPort(
236 Fw::InputSerializePort* port
244 Fw::InputSerializePort* port
250 Fw::InputSerializePort* port
274 const char* compName =
""
328 #if FW_ENABLE_TEXT_LOGGING == 1
374 #if FW_ENABLE_TEXT_LOGGING == 1
379 bool isConnected_logTextOut_OutputPort(
722 static void m_p_cmdIn_in(
737 static void m_p_getVersion_in(
746 static void m_p_setVersion_in(
790 #if FW_ENABLE_TEXT_LOGGING == 1
PlatformIndexType FwIndexType
C++-compatible configuration header for fprime configuration.
Enum representing a command response.
void init()
Object initializer.
Data Structure for custom version Tlm.
Auto-generated base for Version component.
@ NUM_CMDREGOUT_OUTPUT_PORTS
@ NUM_TIMECALLER_OUTPUT_PORTS
@ NUM_LOGTEXTOUT_OUTPUT_PORTS
@ NUM_TLMOUT_OUTPUT_PORTS
@ NUM_LOGOUT_OUTPUT_PORTS
@ NUM_CMDRESPONSEOUT_OUTPUT_PORTS
virtual void ENABLE_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, Svc::VersionEnabled enable)=0
Fw::InputCmdPort * get_cmdIn_InputPort(FwIndexType portNum)
void tlmWrite_CustomVersion04(const Svc::CustomVersionDb &arg, Fw::Time _tlmTime=Fw::Time())
Write telemetry channel CustomVersion04.
bool isConnected_logOut_OutputPort(FwIndexType portNum)
void getVersion_handlerBase(FwIndexType portNum, const Svc::VersionCfg::VersionEnum &version_id, Fw::StringBase &version_string, Svc::VersionStatus &status)
Handler base-class function for input port getVersion.
FwIndexType getNum_setVersion_InputPorts() const
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 set_logOut_OutputPort(FwIndexType portNum, Fw::InputLogPort *port)
Connect port to logOut[portNum].
void tlmWrite_CustomVersion03(const Svc::CustomVersionDb &arg, Fw::Time _tlmTime=Fw::Time())
Write telemetry channel CustomVersion03.
void set_cmdResponseOut_OutputPort(FwIndexType portNum, Fw::InputCmdResponsePort *port)
Connect port to cmdResponseOut[portNum].
virtual void setVersion_handler(FwIndexType portNum, const Svc::VersionCfg::VersionEnum &version_id, Fw::StringBase &version_string, Svc::VersionStatus &status)=0
Handler for input port setVersion.
virtual void getVersion_handler(FwIndexType portNum, const Svc::VersionCfg::VersionEnum &version_id, Fw::StringBase &version_string, Svc::VersionStatus &status)=0
Handler for input port getVersion.
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 ENABLE_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
void VERSION_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
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)
FwIndexType getNum_timeCaller_OutputPorts() const
FwIndexType getNum_cmdRegOut_OutputPorts() const
void tlmWrite_CustomVersion01(const Svc::CustomVersionDb &arg, Fw::Time _tlmTime=Fw::Time())
@ OPCODE_ENABLE
A command to enable or disable Event verbosity and Telemetry.
@ OPCODE_VERSION
Report version as Event.
void set_cmdRegOut_OutputPort(FwIndexType portNum, Fw::InputCmdRegPort *port)
Connect port to cmdRegOut[portNum].
void regCommands()
Register commands with the Command Dispatcher.
void set_tlmOut_OutputPort(FwIndexType portNum, Fw::InputTlmPort *port)
Connect port to tlmOut[portNum].
void tlmWrite_LibraryVersion04(const Fw::StringBase &arg, Fw::Time _tlmTime=Fw::Time())
Write telemetry channel LibraryVersion04.
virtual void lock()
Lock the guarded mutex.
virtual void VERSION_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, Svc::VersionType version_type)=0
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.
bool isConnected_timeCaller_OutputPort(FwIndexType portNum)
bool isConnected_cmdResponseOut_OutputPort(FwIndexType portNum)
FwIndexType getNum_getVersion_InputPorts() const
void set_timeCaller_OutputPort(FwIndexType portNum, Fw::InputTimePort *port)
Connect port to timeCaller[portNum].
friend class VersionComponentBaseFriend
Friend class for white-box testing.
FwIndexType getNum_tlmOut_OutputPorts() const
void tlmWrite_LibraryVersion07(const Fw::StringBase &arg, Fw::Time _tlmTime=Fw::Time())
Write telemetry channel LibraryVersion07.
@ EVENTID_PROJECTVERSION
Version of the git repository.
@ EVENTID_CUSTOMVERSIONS
Version of the git repository.
@ EVENTID_FRAMEWORKVERSION
Version of the git repository.
@ EVENTID_LIBRARYVERSIONS
Version of the git repository.
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.
bool isConnected_cmdRegOut_OutputPort(FwIndexType portNum)
@ NUM_SETVERSION_INPUT_PORTS
@ NUM_GETVERSION_INPUT_PORTS
void tlmWrite_CustomVersion02(const Svc::CustomVersionDb &arg, Fw::Time _tlmTime=Fw::Time())
Write telemetry channel CustomVersion02.
virtual void unLock()
Unlock the guarded mutex.
Svc::InputVersionPort * get_getVersion_InputPort(FwIndexType portNum)
void cmdResponse_out(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdResponse response)
Emit command response.
@ CHANNELID_LIBRARYVERSION03
Channel ID for LibraryVersion03.
@ CHANNELID_LIBRARYVERSION09
Channel ID for LibraryVersion09.
@ CHANNELID_CUSTOMVERSION05
Channel ID for CustomVersion05.
@ CHANNELID_CUSTOMVERSION09
Channel ID for CustomVersion09.
@ CHANNELID_CUSTOMVERSION03
Channel ID for CustomVersion03.
@ CHANNELID_CUSTOMVERSION06
Channel ID for CustomVersion06.
@ CHANNELID_CUSTOMVERSION07
Channel ID for CustomVersion07.
@ CHANNELID_CUSTOMVERSION04
Channel ID for CustomVersion04.
@ CHANNELID_LIBRARYVERSION05
Channel ID for LibraryVersion05.
@ CHANNELID_CUSTOMVERSION08
Channel ID for CustomVersion08.
@ CHANNELID_CUSTOMVERSION01
Channel ID for CustomVersion01.
@ CHANNELID_LIBRARYVERSION08
Channel ID for LibraryVersion08.
@ CHANNELID_CUSTOMVERSION10
Channel ID for CustomVersion10.
@ CHANNELID_LIBRARYVERSION02
Channel ID for LibraryVersion02.
@ CHANNELID_LIBRARYVERSION07
Channel ID for LibraryVersion07.
@ CHANNELID_LIBRARYVERSION10
Channel ID for LibraryVersion10.
@ CHANNELID_PROJECTVERSION
Channel ID for ProjectVersion.
@ CHANNELID_LIBRARYVERSION06
Channel ID for LibraryVersion06.
@ CHANNELID_LIBRARYVERSION01
Channel ID for LibraryVersion01.
@ CHANNELID_LIBRARYVERSION04
Channel ID for LibraryVersion04.
@ CHANNELID_CUSTOMVERSION02
Channel ID for CustomVersion02.
@ CHANNELID_FRAMEWORKVERSION
Channel ID for FrameworkVersion.
void tlmWrite_LibraryVersion02(const Fw::StringBase &arg, Fw::Time _tlmTime=Fw::Time())
Write telemetry channel LibraryVersion02.
virtual ~VersionComponentBase()
Destroy VersionComponentBase object.
bool isConnected_tlmOut_OutputPort(FwIndexType portNum)
void tlmWrite_CustomVersion05(const Svc::CustomVersionDb &arg, Fw::Time _tlmTime=Fw::Time())
Write telemetry channel CustomVersion05.
void setVersion_handlerBase(FwIndexType portNum, const Svc::VersionCfg::VersionEnum &version_id, Fw::StringBase &version_string, Svc::VersionStatus &status)
Handler base-class function for input port setVersion.
FwIndexType getNum_cmdIn_InputPorts() const
void tlmWrite_LibraryVersion10(const Fw::StringBase &arg, Fw::Time _tlmTime=Fw::Time())
Write telemetry channel LibraryVersion10.
FwIndexType getNum_cmdResponseOut_OutputPorts() const
Svc::InputVersionPort * get_setVersion_InputPort(FwIndexType portNum)
FwIndexType getNum_logOut_OutputPorts() const
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.
VersionComponentBase(const char *compName="")
Construct VersionComponentBase object.
Tracks versions for project, framework and user defined versions etc.
An enumeration for version status.
An enumeration for Version Type.