7 #ifndef Svc_SystemResourcesComponentAc_HPP
8 #define Svc_SystemResourcesComponentAc_HPP
17 #if FW_ENABLE_TEXT_LOGGING == 1
161 #if FW_ENABLE_TEXT_LOGGING == 1
164 void set_LogText_OutputPort(
183 #if FW_PORT_SERIALIZATION
194 Fw::InputSerializePort* port
200 Fw::InputSerializePort* port
206 Fw::InputSerializePort* port
209 #if FW_ENABLE_TEXT_LOGGING == 1
212 void set_LogText_OutputPort(
214 Fw::InputSerializePort* port
222 Fw::InputSerializePort* port
228 Fw::InputSerializePort* port
252 const char* compName =
""
301 #if FW_ENABLE_TEXT_LOGGING == 1
347 #if FW_ENABLE_TEXT_LOGGING == 1
352 bool isConnected_LogText_OutputPort(
650 static void m_p_CmdDisp_in(
665 static void m_p_run_in(
704 #if FW_ENABLE_TEXT_LOGGING == 1
float F32
32-bit floating point
PlatformIndexType FwIndexType
C++-compatible configuration header for fprime configuration.
Enum representing a command response.
void init()
Object initializer.
Auto-generated base for SystemResources component.
void tlmWrite_CPU_01(F32 arg, Fw::Time _tlmTime=Fw::Time())
void cmdResponse_out(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdResponse response)
Emit command response.
virtual void run_handler(FwIndexType portNum, U32 context)=0
Handler for input port run.
void set_Time_OutputPort(FwIndexType portNum, Fw::InputTimePort *port)
Connect port to Time[portNum].
void tlmWrite_CPU_02(F32 arg, Fw::Time _tlmTime=Fw::Time())
void tlmWrite_CPU_14(F32 arg, Fw::Time _tlmTime=Fw::Time())
void set_Tlm_OutputPort(FwIndexType portNum, Fw::InputTlmPort *port)
Connect port to Tlm[portNum].
Svc::InputSchedPort * get_run_InputPort(FwIndexType portNum)
virtual void unLock()
Unlock the guarded mutex.
void tlmWrite_MEMORY_USED(U64 arg, Fw::Time _tlmTime=Fw::Time())
void tlmWrite_NON_VOLATILE_TOTAL(U64 arg, Fw::Time _tlmTime=Fw::Time())
void set_Log_OutputPort(FwIndexType portNum, Fw::InputLogPort *port)
Connect port to Log[portNum].
void tlmWrite_NON_VOLATILE_FREE(U64 arg, Fw::Time _tlmTime=Fw::Time())
FwIndexType getNum_Log_OutputPorts() const
FwIndexType getNum_Time_OutputPorts() const
FwIndexType getNum_CmdReg_OutputPorts() const
FwIndexType getNum_CmdDisp_InputPorts() const
SystemResourcesComponentBase(const char *compName="")
Construct SystemResourcesComponentBase object.
void tlmWrite_CPU_00(F32 arg, Fw::Time _tlmTime=Fw::Time())
bool isConnected_CmdReg_OutputPort(FwIndexType portNum)
void tlmWrite_CPU_09(F32 arg, Fw::Time _tlmTime=Fw::Time())
FwIndexType getNum_CmdStatus_OutputPorts() const
@ NUM_LOGTEXT_OUTPUT_PORTS
@ NUM_CMDREG_OUTPUT_PORTS
@ NUM_CMDSTATUS_OUTPUT_PORTS
void ENABLE_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
@ OPCODE_ENABLE
A command to enable or disable system resource telemetry.
void tlmWrite_CPU_10(F32 arg, Fw::Time _tlmTime=Fw::Time())
bool isConnected_Tlm_OutputPort(FwIndexType portNum)
Fw::InputCmdPort * get_CmdDisp_InputPort(FwIndexType portNum)
void tlmWrite_CPU_06(F32 arg, Fw::Time _tlmTime=Fw::Time())
void tlmWrite_CPU_08(F32 arg, Fw::Time _tlmTime=Fw::Time())
bool isConnected_Time_OutputPort(FwIndexType portNum)
void tlmWrite_MEMORY_TOTAL(U64 arg, Fw::Time _tlmTime=Fw::Time())
@ NUM_CMDDISP_INPUT_PORTS
void run_handlerBase(FwIndexType portNum, U32 context)
Handler base-class function for input port run.
void tlmWrite_CPU_07(F32 arg, Fw::Time _tlmTime=Fw::Time())
virtual void lock()
Lock the guarded mutex.
FwIndexType getNum_run_InputPorts() const
void set_CmdStatus_OutputPort(FwIndexType portNum, Fw::InputCmdResponsePort *port)
Connect port to CmdStatus[portNum].
void tlmWrite_CPU_15(F32 arg, Fw::Time _tlmTime=Fw::Time())
@ CHANNELID_CPU_00
Channel ID for CPU_00.
@ CHANNELID_CPU_06
Channel ID for CPU_06.
@ CHANNELID_CPU_05
Channel ID for CPU_05.
@ CHANNELID_CPU_08
Channel ID for CPU_08.
@ CHANNELID_NON_VOLATILE_TOTAL
Channel ID for NON_VOLATILE_TOTAL.
@ CHANNELID_CPU_13
Channel ID for CPU_13.
@ CHANNELID_CPU_04
Channel ID for CPU_04.
@ CHANNELID_CPU_11
Channel ID for CPU_11.
@ CHANNELID_MEMORY_USED
Channel ID for MEMORY_USED.
@ CHANNELID_CPU_14
Channel ID for CPU_14.
@ CHANNELID_CPU_07
Channel ID for CPU_07.
@ CHANNELID_CPU
Channel ID for CPU.
@ CHANNELID_CPU_01
Channel ID for CPU_01.
@ CHANNELID_CPU_03
Channel ID for CPU_03.
@ CHANNELID_CPU_15
Channel ID for CPU_15.
@ CHANNELID_CPU_10
Channel ID for CPU_10.
@ CHANNELID_MEMORY_TOTAL
Channel ID for MEMORY_TOTAL.
@ CHANNELID_NON_VOLATILE_FREE
Channel ID for NON_VOLATILE_FREE.
@ CHANNELID_CPU_09
Channel ID for CPU_09.
@ CHANNELID_CPU_12
Channel ID for CPU_12.
@ CHANNELID_CPU_02
Channel ID for CPU_02.
void tlmWrite_CPU_04(F32 arg, Fw::Time _tlmTime=Fw::Time())
friend class SystemResourcesComponentBaseFriend
Friend class for white-box testing.
void tlmWrite_CPU(F32 arg, Fw::Time _tlmTime=Fw::Time())
FwIndexType getNum_Tlm_OutputPorts() const
bool isConnected_Log_OutputPort(FwIndexType portNum)
void regCommands()
Register commands with the Command Dispatcher.
void tlmWrite_CPU_12(F32 arg, Fw::Time _tlmTime=Fw::Time())
void tlmWrite_CPU_05(F32 arg, Fw::Time _tlmTime=Fw::Time())
virtual void ENABLE_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, Svc::SystemResourceEnabled enable)=0
bool isConnected_CmdStatus_OutputPort(FwIndexType portNum)
void tlmWrite_CPU_11(F32 arg, Fw::Time _tlmTime=Fw::Time())
void tlmWrite_CPU_03(F32 arg, Fw::Time _tlmTime=Fw::Time())
virtual ~SystemResourcesComponentBase()
Destroy SystemResourcesComponentBase object.
void tlmWrite_CPU_13(F32 arg, Fw::Time _tlmTime=Fw::Time())
void set_CmdReg_OutputPort(FwIndexType portNum, Fw::InputCmdRegPort *port)
Connect port to CmdReg[portNum].