7 #ifndef Svc_GenericHubComponentAc_HPP 8 #define Svc_GenericHubComponentAc_HPP 17 #if !FW_DIRECT_PORT_CALLS 20 #if !FW_DIRECT_PORT_CALLS 27 "GenericHub component requires serialization" 141 #if !FW_DIRECT_PORT_CALLS 207 #if !FW_DIRECT_PORT_CALLS 224 #if !FW_DIRECT_PORT_CALLS 294 #if !FW_DIRECT_PORT_CALLS && FW_PORT_SERIALIZATION 305 Fw::InputSerializePort* port
311 Fw::InputSerializePort* port
317 Fw::InputSerializePort* port
323 Fw::InputSerializePort* port
329 Fw::InputSerializePort* port
335 Fw::InputSerializePort* port
341 Fw::InputSerializePort* port
347 Fw::InputSerializePort* port
353 Fw::InputSerializePort* port
358 #if !FW_DIRECT_PORT_CALLS && FW_PORT_SERIALIZATION 367 void set_serialOut_OutputPort(
382 const char* compName =
"" 703 #if FW_DIRECT_PORT_CALLS 783 #if FW_DIRECT_PORT_CALLS 894 static void m_p_bufferIn_in(
901 static void m_p_bufferOutReturn_in(
908 static void m_p_cmdDispIn_in(
916 static void m_p_cmdRespIn_in(
925 static void m_p_eventIn_in(
935 static void m_p_fromBufferDriver_in(
942 static void m_p_tlmIn_in(
951 static void m_p_toBufferDriverReturn_in(
963 #if FW_PORT_SERIALIZATION 966 static void m_p_serialIn_in(
974 #if !FW_DIRECT_PORT_CALLS 1008 #if !FW_DIRECT_PORT_CALLS 1021 #if !FW_DIRECT_PORT_CALLS 1061 #if !FW_DIRECT_PORT_CALLS static constexpr FwIndexType getNum_allocate_OutputPorts()
friend class GenericHubTester
Friend class tester implementation to support white-box testing.
void set_bufferOut_OutputPort(FwIndexType portNum, Fw::InputBufferSendPort *port)
Connect port to bufferOut[portNum].
static constexpr FwIndexType getNum_cmdDispIn_InputPorts()
virtual ~GenericHubComponentBase()
Destroy GenericHubComponentBase object.
virtual void fromBufferDriver_handler(FwIndexType portNum, Fw::Buffer &fwBuffer)=0
Handler for input port fromBufferDriver.
FwIdType FwOpcodeType
The type of a command opcode.
bool isConnected_tlmOut_OutputPort(FwIndexType portNum) const
bool isConnected_cmdDispOut_OutputPort(FwIndexType portNum) const
PlatformSizeType FwSizeType
void fromBufferDriver_handlerBase(FwIndexType portNum, Fw::Buffer &fwBuffer)
Handler base-class function for input port fromBufferDriver.
void set_allocate_OutputPort(FwIndexType portNum, Fw::InputBufferGetPort *port)
Connect port to allocate[portNum].
Fw::Buffer allocate_out(FwIndexType portNum, FwSizeType size) const
Invoke output port allocate.
void set_cmdDispOut_OutputPort(FwIndexType portNum, Fw::InputComPort *port)
Connect port to cmdDispOut[portNum].
virtual void toBufferDriverReturn_handler(FwIndexType portNum, Fw::Buffer &fwBuffer)=0
Handler for input port toBufferDriverReturn.
void set_eventOut_OutputPort(FwIndexType portNum, Fw::InputLogPort *port)
Connect port to eventOut[portNum].
static constexpr FwIndexType getNum_tlmIn_InputPorts()
static constexpr FwIndexType getNum_cmdDispOut_OutputPorts()
static constexpr FwIndexType getNum_serialIn_InputPorts()
static constexpr FwIndexType getNum_eventOut_OutputPorts()
bool isConnected_allocate_OutputPort(FwIndexType portNum) const
void set_bufferInReturn_OutputPort(FwIndexType portNum, Fw::InputBufferSendPort *port)
Connect port to bufferInReturn[portNum].
static constexpr FwIndexType getNum_fromBufferDriver_InputPorts()
bool isConnected_bufferOut_OutputPort(FwIndexType portNum) const
void cmdRespIn_handlerBase(FwIndexType portNum, FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdResponse &response)
Handler base-class function for input port cmdRespIn.
static constexpr FwIndexType getNum_serialOut_OutputPorts()
virtual void cmdRespIn_handler(FwIndexType portNum, FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdResponse &response)=0
Handler for input port cmdRespIn.
static constexpr FwIndexType getNum_bufferInReturn_OutputPorts()
Enum representing a command response.
Fw::InputBufferSendPort * get_bufferOutReturn_InputPort(FwIndexType portNum)
void eventIn_handlerBase(FwIndexType portNum, FwEventIdType id, Fw::Time &timeTag, const Fw::LogSeverity &severity, Fw::LogBuffer &args)
Handler base-class function for input port eventIn.
void tlmIn_handlerBase(FwIndexType portNum, FwChanIdType id, Fw::Time &timeTag, Fw::TlmBuffer &val)
Handler base-class function for input port tlmIn.
bool isConnected_deallocate_OutputPort(FwIndexType portNum) const
static constexpr FwIndexType getNum_bufferOut_OutputPorts()
void init()
Object initializer.
void set_tlmOut_OutputPort(FwIndexType portNum, Fw::InputTlmPort *port)
Connect port to tlmOut[portNum].
static constexpr FwIndexType getNum_cmdRespIn_InputPorts()
Auto-generated base for GenericHub component.
SerializeStatus
forward declaration for string
void set_toBufferDriver_OutputPort(FwIndexType portNum, Fw::InputBufferSendPort *port)
Connect port to toBufferDriver[portNum].
FwIdType FwEventIdType
The type of an event identifier.
void cmdDispIn_handlerBase(FwIndexType portNum, Fw::ComBuffer &data, U32 context)
Handler base-class function for input port cmdDispIn.
Fw::InputCmdResponsePort * get_cmdRespIn_InputPort(FwIndexType portNum)
Fw::InputSerializePort * get_serialIn_InputPort(FwIndexType portNum)
void bufferOutReturn_handlerBase(FwIndexType portNum, Fw::Buffer &fwBuffer)
Handler base-class function for input port bufferOutReturn.
static constexpr FwIndexType getNum_cmdRespOut_OutputPorts()
void deallocate_out(FwIndexType portNum, Fw::Buffer &fwBuffer) const
Invoke output port deallocate.
void set_fromBufferDriverReturn_OutputPort(FwIndexType portNum, Fw::InputBufferSendPort *port)
Connect port to fromBufferDriverReturn[portNum].
static constexpr FwIndexType getNum_eventIn_InputPorts()
bool isConnected_cmdRespOut_OutputPort(FwIndexType portNum) const
void bufferOut_out(FwIndexType portNum, Fw::Buffer &fwBuffer) const
Invoke output port bufferOut.
void set_cmdRespOut_OutputPort(FwIndexType portNum, Fw::InputCmdResponsePort *port)
Connect port to cmdRespOut[portNum].
FwIdType FwChanIdType
The type of a telemetry channel identifier.
virtual void eventIn_handler(FwIndexType portNum, FwEventIdType id, Fw::Time &timeTag, const Fw::LogSeverity &severity, Fw::LogBuffer &args)=0
Handler for input port eventIn.
friend class GenericHubTesterBase
Friend class tester to support autocoded test harness.
static constexpr FwIndexType getNum_tlmOut_OutputPorts()
void bufferInReturn_out(FwIndexType portNum, Fw::Buffer &fwBuffer) const
Invoke output port bufferInReturn.
Enum representing event severity.
void cmdRespOut_out(FwIndexType portNum, FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdResponse &response) const
Invoke output port cmdRespOut.
static constexpr FwIndexType getNum_bufferIn_InputPorts()
void eventOut_out(FwIndexType portNum, FwEventIdType id, Fw::Time &timeTag, const Fw::LogSeverity &severity, Fw::LogBuffer &args) const
Invoke output port eventOut.
Fw::SerializeStatus serialOut_out(FwIndexType portNum, Fw::LinearBufferBase &buffer)
Invoke output port serialOut.
static constexpr FwIndexType getNum_fromBufferDriverReturn_OutputPorts()
bool isConnected_serialOut_OutputPort(FwIndexType portNum) const
Fw::InputLogPort * get_eventIn_InputPort(FwIndexType portNum)
virtual void cmdDispIn_handler(FwIndexType portNum, Fw::ComBuffer &data, U32 context)=0
Handler for input port cmdDispIn.
void tlmOut_out(FwIndexType portNum, FwChanIdType id, Fw::Time &timeTag, Fw::TlmBuffer &val) const
Invoke output port tlmOut.
PlatformIndexType FwIndexType
void bufferIn_handlerBase(FwIndexType portNum, Fw::Buffer &fwBuffer)
Handler base-class function for input port bufferIn.
void toBufferDriverReturn_handlerBase(FwIndexType portNum, Fw::Buffer &fwBuffer)
Handler base-class function for input port toBufferDriverReturn.
Fw::InputComPort * get_cmdDispIn_InputPort(FwIndexType portNum)
bool isConnected_eventOut_OutputPort(FwIndexType portNum) const
RateGroupDivider component implementation.
bool isConnected_fromBufferDriverReturn_OutputPort(FwIndexType portNum) const
Fw::InputBufferSendPort * get_bufferIn_InputPort(FwIndexType portNum)
Fw::InputBufferSendPort * get_fromBufferDriver_InputPort(FwIndexType portNum)
virtual void tlmIn_handler(FwIndexType portNum, FwChanIdType id, Fw::Time &timeTag, Fw::TlmBuffer &val)=0
Handler for input port tlmIn.
void set_deallocate_OutputPort(FwIndexType portNum, Fw::InputBufferSendPort *port)
Connect port to deallocate[portNum].
Fw::InputTlmPort * get_tlmIn_InputPort(FwIndexType portNum)
GenericHubComponentBase(const char *compName="")
Construct GenericHubComponentBase object.
void toBufferDriver_out(FwIndexType portNum, Fw::Buffer &fwBuffer) const
Invoke output port toBufferDriver.
static constexpr FwIndexType getNum_toBufferDriverReturn_InputPorts()
Fw::InputBufferSendPort * get_toBufferDriverReturn_InputPort(FwIndexType portNum)
bool isConnected_toBufferDriver_OutputPort(FwIndexType portNum) const
static constexpr FwIndexType getNum_deallocate_OutputPorts()
static constexpr FwIndexType getNum_bufferOutReturn_InputPorts()
virtual void bufferIn_handler(FwIndexType portNum, Fw::Buffer &fwBuffer)=0
Handler for input port bufferIn.
virtual void bufferOutReturn_handler(FwIndexType portNum, Fw::Buffer &fwBuffer)=0
Handler for input port bufferOutReturn.
void cmdDispOut_out(FwIndexType portNum, Fw::ComBuffer &data, U32 context) const
Invoke output port cmdDispOut.
static constexpr FwIndexType getNum_toBufferDriver_OutputPorts()
virtual void serialIn_handler(FwIndexType portNum, Fw::LinearBufferBase &buffer)=0
Handler for input port serialIn.
bool isConnected_bufferInReturn_OutputPort(FwIndexType portNum) const
void serialIn_handlerBase(FwIndexType portNum, Fw::LinearBufferBase &buffer)
Handler base-class function for input port serialIn.
#define FW_PORT_SERIALIZATION
calls for multi-note systems)
void fromBufferDriverReturn_out(FwIndexType portNum, Fw::Buffer &fwBuffer) const
Invoke output port fromBufferDriverReturn.