7 #ifndef Svc_SystemResourcesComponentAc_HPP 8 #define Svc_SystemResourcesComponentAc_HPP 18 #if !FW_DIRECT_PORT_CALLS 21 #if !FW_DIRECT_PORT_CALLS 115 #if !FW_DIRECT_PORT_CALLS 132 #if !FW_DIRECT_PORT_CALLS 149 #if !FW_DIRECT_PORT_CALLS 175 #if FW_ENABLE_TEXT_LOGGING == 1 178 void set_LogText_OutputPort(
199 #if !FW_DIRECT_PORT_CALLS && FW_PORT_SERIALIZATION 210 Fw::InputSerializePort* port
216 Fw::InputSerializePort* port
222 Fw::InputSerializePort* port
225 #if FW_ENABLE_TEXT_LOGGING == 1 228 void set_LogText_OutputPort(
230 Fw::InputSerializePort* port
238 Fw::InputSerializePort* port
244 Fw::InputSerializePort* port
268 const char* compName =
"" 327 #if FW_ENABLE_TEXT_LOGGING == 1 332 static constexpr
FwIndexType getNum_LogText_OutputPorts() {
379 #if FW_ENABLE_TEXT_LOGGING == 1 384 bool isConnected_LogText_OutputPort(
404 #if FW_DIRECT_PORT_CALLS 436 #if FW_DIRECT_PORT_CALLS 722 static void m_p_CmdDisp_in(
737 static void m_p_run_in(
777 #if !FW_DIRECT_PORT_CALLS 790 #if !FW_DIRECT_PORT_CALLS 803 #if !FW_DIRECT_PORT_CALLS 820 #if FW_ENABLE_TEXT_LOGGING == 1 void set_CmdStatus_OutputPort(FwIndexType portNum, Fw::InputCmdResponsePort *port)
Connect port to CmdStatus[portNum].
FwIdType FwOpcodeType
The type of a command opcode.
void tlmWrite_CPU_00(F32 arg, Fw::Time _tlmTime=Fw::Time()) const
void tlmWrite_CPU(F32 arg, Fw::Time _tlmTime=Fw::Time()) const
static constexpr FwIndexType getNum_Time_OutputPorts()
virtual void ENABLE_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, Svc::SystemResourceEnabled enable)=0
Channel ID for NON_VOLATILE_TOTAL.
static constexpr FwIndexType getNum_CmdStatus_OutputPorts()
void tlmWrite_MEMORY_USED(U64 arg, Fw::Time _tlmTime=Fw::Time()) const
void tlmWrite_NON_VOLATILE_FREE(U64 arg, Fw::Time _tlmTime=Fw::Time()) const
bool isConnected_Time_OutputPort(FwIndexType portNum) const
void tlmWrite_CPU_09(F32 arg, Fw::Time _tlmTime=Fw::Time()) const
void set_Tlm_OutputPort(FwIndexType portNum, Fw::InputTlmPort *port)
Connect port to Tlm[portNum].
void tlmWrite_CPU_02(F32 arg, Fw::Time _tlmTime=Fw::Time()) const
Enum representing a command response.
Fw::InputCmdPort * get_CmdDisp_InputPort(FwIndexType portNum)
bool isConnected_Log_OutputPort(FwIndexType portNum) const
void tlmWrite_CPU_10(F32 arg, Fw::Time _tlmTime=Fw::Time()) const
void init()
Object initializer.
float F32
32-bit floating point
friend class SystemResourcesTester
Friend class tester implementation to support white-box testing.
SystemResourcesComponentBase(const char *compName="")
Construct SystemResourcesComponentBase object.
void tlmWrite_CPU_13(F32 arg, Fw::Time _tlmTime=Fw::Time()) const
void tlmWrite_CPU_11(F32 arg, Fw::Time _tlmTime=Fw::Time()) const
void CmdDisp_handlerBase(FwIndexType portNum, FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
Handler base-class function for input port CmdDisp.
Svc::InputSchedPort * get_run_InputPort(FwIndexType portNum)
Channel ID for MEMORY_TOTAL.
static constexpr FwIndexType getNum_CmdDisp_InputPorts()
virtual void run_handler(FwIndexType portNum, U32 context)=0
Handler for input port run.
FwIdType FwChanIdType
The type of a telemetry channel identifier.
virtual void unLock()
Unlock the guarded mutex.
Channel ID for MEMORY_USED.
void cmdResponse_out(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdResponse response)
Emit command response.
bool isConnected_Tlm_OutputPort(FwIndexType portNum) const
void tlmWrite_CPU_14(F32 arg, Fw::Time _tlmTime=Fw::Time()) const
static constexpr FwIndexType getNum_Tlm_OutputPorts()
static constexpr FwIndexType getNum_run_InputPorts()
friend class SystemResourcesTesterBase
Friend class tester to support autocoded test harness.
bool isConnected_CmdStatus_OutputPort(FwIndexType portNum) const
void tlmWrite_CPU_15(F32 arg, Fw::Time _tlmTime=Fw::Time()) const
Channel ID for NON_VOLATILE_FREE.
void tlmWrite_CPU_01(F32 arg, Fw::Time _tlmTime=Fw::Time()) const
Auto-generated base for SystemResources component.
void tlmWrite_CPU_07(F32 arg, Fw::Time _tlmTime=Fw::Time()) const
static constexpr FwIndexType getNum_CmdReg_OutputPorts()
PlatformIndexType FwIndexType
void tlmWrite_CPU_04(F32 arg, Fw::Time _tlmTime=Fw::Time()) const
void ENABLE_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
void tlmWrite_CPU_08(F32 arg, Fw::Time _tlmTime=Fw::Time()) const
RateGroupDivider component implementation.
void set_Log_OutputPort(FwIndexType portNum, Fw::InputLogPort *port)
Connect port to Log[portNum].
void regCommands()
Register commands with the Command Dispatcher.
virtual ~SystemResourcesComponentBase()
Destroy SystemResourcesComponentBase object.
void tlmWrite_CPU_06(F32 arg, Fw::Time _tlmTime=Fw::Time()) const
void set_CmdReg_OutputPort(FwIndexType portNum, Fw::InputCmdRegPort *port)
Connect port to CmdReg[portNum].
void tlmWrite_CPU_12(F32 arg, Fw::Time _tlmTime=Fw::Time()) const
void tlmWrite_CPU_03(F32 arg, Fw::Time _tlmTime=Fw::Time()) const
void tlmWrite(FwChanIdType id, Fw::TlmBuffer &_tlmBuff, Fw::Time _tlmTime=Fw::Time()) const
void run_handlerBase(FwIndexType portNum, U32 context)
Handler base-class function for input port run.
void tlmWrite_MEMORY_TOTAL(U64 arg, Fw::Time _tlmTime=Fw::Time()) const
bool isConnected_CmdReg_OutputPort(FwIndexType portNum) const
virtual void lock()
Lock the guarded mutex.
static constexpr FwIndexType getNum_Log_OutputPorts()
void tlmWrite_NON_VOLATILE_TOTAL(U64 arg, Fw::Time _tlmTime=Fw::Time()) const
A command to enable or disable system resource telemetry.
void tlmWrite_CPU_05(F32 arg, Fw::Time _tlmTime=Fw::Time()) const
void set_Time_OutputPort(FwIndexType portNum, Fw::InputTimePort *port)
Connect port to Time[portNum].