7 #ifndef Svc_FprimeRouterComponentAc_HPP 8 #define Svc_FprimeRouterComponentAc_HPP 20 #if !FW_DIRECT_PORT_CALLS 23 #if !FW_DIRECT_PORT_CALLS 103 #if !FW_DIRECT_PORT_CALLS 134 #if !FW_DIRECT_PORT_CALLS 148 #if FW_ENABLE_TEXT_LOGGING == 1 151 void set_logTextOut_OutputPort(
166 #if !FW_DIRECT_PORT_CALLS 200 #if !FW_DIRECT_PORT_CALLS && FW_PORT_SERIALIZATION 211 Fw::InputSerializePort* port
214 #if FW_ENABLE_TEXT_LOGGING == 1 217 void set_logTextOut_OutputPort(
219 Fw::InputSerializePort* port
227 Fw::InputSerializePort* port
232 #if !FW_DIRECT_PORT_CALLS && FW_PORT_SERIALIZATION 243 Fw::InputSerializePort* port
249 Fw::InputSerializePort* port
255 Fw::InputSerializePort* port
261 Fw::InputSerializePort* port
274 const char* compName =
"" 320 #if FW_ENABLE_TEXT_LOGGING == 1 325 static constexpr
FwIndexType getNum_logTextOut_OutputPorts() {
385 #if FW_ENABLE_TEXT_LOGGING == 1 390 bool isConnected_logTextOut_OutputPort(
464 #if FW_DIRECT_PORT_CALLS 604 static void m_p_cmdResponseIn_in(
613 static void m_p_dataIn_in(
621 static void m_p_fileBufferReturnIn_in(
642 #if FW_ENABLE_TEXT_LOGGING 661 #if !FW_DIRECT_PORT_CALLS 680 #if !FW_DIRECT_PORT_CALLS 691 #if FW_ENABLE_TEXT_LOGGING == 1 703 #if !FW_DIRECT_PORT_CALLS void set_timeCaller_OutputPort(FwIndexType portNum, Fw::InputTimePort *port)
Connect port to timeCaller[portNum].
friend class FprimeRouterTester
Friend class tester implementation to support white-box testing.
static constexpr FwIndexType getNum_dataIn_InputPorts()
virtual ~FprimeRouterComponentBase()
Destroy FprimeRouterComponentBase object.
static constexpr FwIndexType getNum_fileBufferReturnIn_InputPorts()
FwIdType FwOpcodeType
The type of a command opcode.
An error occurred while deserializing a packet.
void dataIn_handlerBase(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
Handler base-class function for input port dataIn.
void fileBufferReturnIn_handlerBase(FwIndexType portNum, Fw::Buffer &fwBuffer)
Handler base-class function for input port fileBufferReturnIn.
bool isConnected_dataReturnOut_OutputPort(FwIndexType portNum) const
void unknownDataOut_out(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context) const
Invoke output port unknownDataOut.
friend class FprimeRouterTesterBase
Friend class tester to support autocoded test harness.
bool isConnected_commandOut_OutputPort(FwIndexType portNum) const
void log_WARNING_HI_BufferContextNotFound() const
bool isConnected_timeCaller_OutputPort(FwIndexType portNum) const
FprimeRouterComponentBase(const char *compName="")
Construct FprimeRouterComponentBase object.
virtual void lock()
Lock the guarded mutex.
static constexpr FwIndexType getNum_unknownDataOut_OutputPorts()
An error occurred while serializing a com buffer.
void log_WARNING_HI_FileOutContextTableFull() const
void fileOut_out(FwIndexType portNum, Fw::Buffer &fwBuffer) const
Invoke output port fileOut.
Enum representing a command response.
void commandOut_out(FwIndexType portNum, Fw::ComBuffer &data, U32 context) const
Invoke output port commandOut.
Fw::InputCmdResponsePort * get_cmdResponseIn_InputPort(FwIndexType portNum)
static constexpr FwIndexType getNum_commandOut_OutputPorts()
void init()
Object initializer.
void log_WARNING_HI_UnknownDataOutContextTableFull() const
FwIdType FwEventIdType
The type of an event identifier.
void set_logOut_OutputPort(FwIndexType portNum, Fw::InputLogPort *port)
Connect port to logOut[portNum].
virtual void unLock()
Unlock the guarded mutex.
Fw::InputBufferSendPort * get_fileBufferReturnIn_InputPort(FwIndexType portNum)
void set_dataReturnOut_OutputPort(FwIndexType portNum, Svc::InputComDataWithContextPort *port)
Connect port to dataReturnOut[portNum].
void cmdResponseIn_handlerBase(FwIndexType portNum, FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdResponse &response)
Handler base-class function for input port cmdResponseIn.
static constexpr FwIndexType getNum_dataReturnOut_OutputPorts()
Auto-generated base for FprimeRouter component.
Enum representing event severity.
void set_fileOut_OutputPort(FwIndexType portNum, Fw::InputBufferSendPort *port)
Connect port to fileOut[portNum].
Svc::InputComDataWithContextPort * get_dataIn_InputPort(FwIndexType portNum)
static constexpr FwIndexType getNum_logOut_OutputPorts()
static constexpr FwIndexType getNum_fileOut_OutputPorts()
void dataReturnOut_out(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context) const
Invoke output port dataReturnOut.
void set_unknownDataOut_OutputPort(FwIndexType portNum, Svc::InputComDataWithContextPort *port)
Connect port to unknownDataOut[portNum].
bool isConnected_unknownDataOut_OutputPort(FwIndexType portNum) const
static constexpr FwIndexType getNum_cmdResponseIn_InputPorts()
PlatformIndexType FwIndexType
void log_WARNING_HI_DeserializationError(U32 status) const
void log_WARNING_HI_SerializationError(U32 status) const
Type used to pass context info between components during framing/deframing.
bool isConnected_fileOut_OutputPort(FwIndexType portNum) const
RateGroupDivider component implementation.
void set_commandOut_OutputPort(FwIndexType portNum, Fw::InputComPort *port)
Connect port to commandOut[portNum].
virtual void cmdResponseIn_handler(FwIndexType portNum, FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdResponse &response)=0
Handler for input port cmdResponseIn.
bool isConnected_logOut_OutputPort(FwIndexType portNum) const
static constexpr FwIndexType getNum_timeCaller_OutputPorts()
virtual void dataIn_handler(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)=0
Handler for input port dataIn.
virtual void fileBufferReturnIn_handler(FwIndexType portNum, Fw::Buffer &fwBuffer)=0
Handler for input port fileBufferReturnIn.