7 #ifndef Svc_TlmPacketizerComponentAc_HPP
8 #define Svc_TlmPacketizerComponentAc_HPP
19 #if FW_ENABLE_TEXT_LOGGING == 1
177 #if FW_ENABLE_TEXT_LOGGING == 1
180 void set_textEventOut_OutputPort(
217 #if FW_PORT_SERIALIZATION
228 Fw::InputSerializePort* port
234 Fw::InputSerializePort* port
240 Fw::InputSerializePort* port
243 #if FW_ENABLE_TEXT_LOGGING == 1
246 void set_textEventOut_OutputPort(
248 Fw::InputSerializePort* port
256 Fw::InputSerializePort* port
262 Fw::InputSerializePort* port
267 #if FW_PORT_SERIALIZATION
278 Fw::InputSerializePort* port
284 Fw::InputSerializePort* port
308 const char* compName =
""
367 #if FW_ENABLE_TEXT_LOGGING == 1
372 FwIndexType getNum_textEventOut_OutputPorts()
const;
429 #if FW_ENABLE_TEXT_LOGGING == 1
434 bool isConnected_textEventOut_OutputPort(
737 static void m_p_cmdIn_in(
752 static void m_p_Run_in(
759 static void m_p_TlmRecv_in(
768 static void m_p_pingIn_in(
813 #if FW_ENABLE_TEXT_LOGGING == 1
PlatformSizeType FwSizeType
PlatformIndexType FwIndexType
C++-compatible configuration header for fprime configuration.
Enum representing a command response.
void init()
Object initializer.
Auto-generated base for TlmPacketizer component.
FwIndexType getNum_timeGetOut_OutputPorts() const
void PktSend_out(FwIndexType portNum, Fw::ComBuffer &data, U32 context)
Invoke output port PktSend.
void set_eventOut_OutputPort(FwIndexType portNum, Fw::InputLogPort *port)
Connect port to eventOut[portNum].
void cmdResponse_out(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdResponse response)
Emit command response.
bool isConnected_cmdResponseOut_OutputPort(FwIndexType portNum)
@ NUM_PINGOUT_OUTPUT_PORTS
@ NUM_PKTSEND_OUTPUT_PORTS
bool isConnected_eventOut_OutputPort(FwIndexType portNum)
@ NUM_TLMRECV_INPUT_PORTS
void regCommands()
Register commands with the Command Dispatcher.
FwIndexType getNum_TlmRecv_InputPorts() const
virtual void SET_LEVEL_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command SET_LEVEL.
FwIndexType getNum_PktSend_OutputPorts() const
void set_timeGetOut_OutputPort(FwIndexType portNum, Fw::InputTimePort *port)
Connect port to timeGetOut[portNum].
@ EVENTID_NOCHAN
Telemetry channel is not part of a telemetry packet.
@ EVENTID_LEVELSET
Telemetry send level set.
@ EVENTID_PACKETSENT
Packet manually sent.
@ EVENTID_PACKETNOTFOUND
Couldn't find the packet to send.
@ EVENTID_MAXLEVELEXCEED
Telemetry send level set.
virtual void Run_handler(FwIndexType portNum, U32 context)=0
Handler for input port Run.
void set_pingOut_OutputPort(FwIndexType portNum, Svc::InputPingPort *port)
Connect port to pingOut[portNum].
FwIndexType getNum_cmdResponseOut_OutputPorts() const
void TlmRecv_handlerBase(FwIndexType portNum, FwChanIdType id, Fw::Time &timeTag, Fw::TlmBuffer &val)
Handler base-class function for input port TlmRecv.
void set_cmdRegOut_OutputPort(FwIndexType portNum, Fw::InputCmdRegPort *port)
Connect port to cmdRegOut[portNum].
virtual void pingIn_preMsgHook(FwIndexType portNum, U32 key)
Pre-message hook for async input port pingIn.
bool isConnected_PktSend_OutputPort(FwIndexType portNum)
FwIndexType getNum_cmdRegOut_OutputPorts() const
void tlmWrite_SendLevel(U32 arg, Fw::Time _tlmTime=Fw::Time())
Fw::InputTlmPort * get_TlmRecv_InputPort(FwIndexType portNum)
FwIndexType getNum_cmdIn_InputPorts() const
void set_PktSend_OutputPort(FwIndexType portNum, Fw::InputComPort *port)
Connect port to PktSend[portNum].
void log_WARNING_LO_PacketNotFound(U32 id)
FwIndexType getNum_pingIn_InputPorts() const
virtual void SEND_PKT_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, U32 id)=0
void pingOut_out(FwIndexType portNum, U32 key)
Invoke output port pingOut.
FwIndexType getNum_eventOut_OutputPorts() const
void log_WARNING_LO_NoChan(U32 Id)
void log_ACTIVITY_LO_PacketSent(U32 id)
void SET_LEVEL_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
virtual ~TlmPacketizerComponentBase()
Destroy TlmPacketizerComponentBase object.
friend class TlmPacketizerComponentBaseFriend
Friend class for white-box testing.
FwIndexType getNum_Run_InputPorts() const
virtual void Run_preMsgHook(FwIndexType portNum, U32 context)
Pre-message hook for async input port Run.
Svc::InputSchedPort * get_Run_InputPort(FwIndexType portNum)
void log_ACTIVITY_HI_LevelSet(U32 id)
virtual void TlmRecv_handler(FwIndexType portNum, FwChanIdType id, Fw::Time &timeTag, Fw::TlmBuffer &val)=0
Handler for input port TlmRecv.
void log_WARNING_LO_MaxLevelExceed(U32 level, U32 max)
Svc::InputPingPort * get_pingIn_InputPort(FwIndexType portNum)
void pingIn_handlerBase(FwIndexType portNum, U32 key)
Handler base-class function for input port pingIn.
TlmPacketizerComponentBase(const char *compName="")
Construct TlmPacketizerComponentBase object.
FwIndexType getNum_tlmOut_OutputPorts() const
virtual void SEND_PKT_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command SEND_PKT.
bool isConnected_tlmOut_OutputPort(FwIndexType portNum)
virtual void pingIn_handler(FwIndexType portNum, U32 key)=0
Handler for input port pingIn.
@ NUM_CMDREGOUT_OUTPUT_PORTS
@ NUM_TIMEGETOUT_OUTPUT_PORTS
@ NUM_TLMOUT_OUTPUT_PORTS
@ NUM_TEXTEVENTOUT_OUTPUT_PORTS
@ NUM_CMDRESPONSEOUT_OUTPUT_PORTS
@ NUM_EVENTOUT_OUTPUT_PORTS
FwIndexType getNum_pingOut_OutputPorts() const
bool isConnected_pingOut_OutputPort(FwIndexType portNum)
@ CHANNELID_SENDLEVEL
Channel ID for SendLevel.
bool isConnected_cmdRegOut_OutputPort(FwIndexType portNum)
bool isConnected_timeGetOut_OutputPort(FwIndexType portNum)
void Run_handlerBase(FwIndexType portNum, U32 context)
Handler base-class function for input port Run.
void set_cmdResponseOut_OutputPort(FwIndexType portNum, Fw::InputCmdResponsePort *port)
Connect port to cmdResponseOut[portNum].
Fw::InputCmdPort * get_cmdIn_InputPort(FwIndexType portNum)
void SEND_PKT_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
void set_tlmOut_OutputPort(FwIndexType portNum, Fw::InputTlmPort *port)
Connect port to tlmOut[portNum].
virtual void SET_LEVEL_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, U32 level)=0
@ OPCODE_SEND_PKT
Force a packet to be sent.
@ OPCODE_SET_LEVEL
Set telemetry send level.