7 #ifndef Svc_Ccsds_SpacePacketFramerComponentAc_HPP 8 #define Svc_Ccsds_SpacePacketFramerComponentAc_HPP 19 #if !FW_DIRECT_PORT_CALLS 22 #if !FW_DIRECT_PORT_CALLS 108 #if !FW_DIRECT_PORT_CALLS 139 #if !FW_DIRECT_PORT_CALLS 153 #if FW_ENABLE_TEXT_LOGGING == 1 156 void set_logTextOut_OutputPort(
189 #if !FW_DIRECT_PORT_CALLS 235 #if !FW_DIRECT_PORT_CALLS && FW_PORT_SERIALIZATION 246 Fw::InputSerializePort* port
249 #if FW_ENABLE_TEXT_LOGGING == 1 252 void set_logTextOut_OutputPort(
254 Fw::InputSerializePort* port
262 Fw::InputSerializePort* port
268 Fw::InputSerializePort* port
274 Fw::InputSerializePort* port
279 #if !FW_DIRECT_PORT_CALLS && FW_PORT_SERIALIZATION 290 Fw::InputSerializePort* port
296 Fw::InputSerializePort* port
302 Fw::InputSerializePort* port
308 Fw::InputSerializePort* port
321 const char* compName =
"" 367 #if FW_ENABLE_TEXT_LOGGING == 1 372 static constexpr
FwIndexType getNum_logTextOut_OutputPorts() {
467 #if FW_ENABLE_TEXT_LOGGING == 1 472 bool isConnected_logTextOut_OutputPort(
580 #if FW_DIRECT_PORT_CALLS 695 static void m_p_comStatusIn_in(
702 static void m_p_dataIn_in(
710 static void m_p_dataReturnIn_in(
732 #if FW_ENABLE_TEXT_LOGGING 751 #if !FW_DIRECT_PORT_CALLS 770 #if !FW_DIRECT_PORT_CALLS 781 #if FW_ENABLE_TEXT_LOGGING == 1 802 #if !FW_DIRECT_PORT_CALLS 837 std::atomic<FwIndexType> m_NoBufferAvailableThrottle;
Throttle reset count for NoBufferAvailable.
SpacePacketFramerComponentBase(const char *compName="")
Construct SpacePacketFramerComponentBase object.
bool isConnected_prmGetOut_OutputPort(FwIndexType portNum) const
PlatformSizeType FwSizeType
virtual void dataReturnIn_handler(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)=0
Handler for input port dataReturnIn.
void dataReturnOut_out(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context) const
Invoke output port dataReturnOut.
Svc::InputComDataWithContextPort * get_dataIn_InputPort(FwIndexType portNum)
bool isConnected_bufferAllocate_OutputPort(FwIndexType portNum) const
bool isConnected_dataReturnOut_OutputPort(FwIndexType portNum) const
bool isConnected_logOut_OutputPort(FwIndexType portNum) const
static constexpr FwIndexType getNum_dataReturnOut_OutputPorts()
static constexpr FwIndexType getNum_comStatusIn_InputPorts()
bool isConnected_dataOut_OutputPort(FwIndexType portNum) const
static constexpr FwIndexType getNum_dataIn_InputPorts()
void set_bufferAllocate_OutputPort(FwIndexType portNum, Fw::InputBufferGetPort *port)
Connect port to bufferAllocate[portNum].
void set_logOut_OutputPort(FwIndexType portNum, Fw::InputLogPort *port)
Connect port to logOut[portNum].
static constexpr FwIndexType getNum_getApidSeqCount_OutputPorts()
void comStatusIn_handlerBase(FwIndexType portNum, Fw::Success &condition)
Handler base-class function for input port comStatusIn.
bool isConnected_tlmOut_OutputPort(FwIndexType portNum) const
Fw::InputSuccessConditionPort * get_comStatusIn_InputPort(FwIndexType portNum)
void init()
Object initializer.
void set_dataOut_OutputPort(FwIndexType portNum, Svc::InputComDataWithContextPort *port)
Connect port to dataOut[portNum].
FwIdType FwEventIdType
The type of an event identifier.
void log_WARNING_HI_NoBufferAvailable_ThrottleClear()
Reset throttle value for NoBufferAvailable.
void bufferDeallocate_out(FwIndexType portNum, Fw::Buffer &fwBuffer) const
Invoke output port bufferDeallocate.
void comStatusOut_out(FwIndexType portNum, Fw::Success &condition) const
Invoke output port comStatusOut.
static constexpr FwIndexType getNum_timeCaller_OutputPorts()
static constexpr FwIndexType getNum_comStatusOut_OutputPorts()
bool isConnected_comStatusOut_OutputPort(FwIndexType portNum) const
void set_getApidSeqCount_OutputPort(FwIndexType portNum, Svc::Ccsds::InputApidSequenceCountPort *port)
Connect port to getApidSeqCount[portNum].
friend class SpacePacketFramerTester
Friend class tester implementation to support white-box testing.
void set_timeCaller_OutputPort(FwIndexType portNum, Fw::InputTimePort *port)
Connect port to timeCaller[portNum].
void dataIn_handlerBase(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
Handler base-class function for input port dataIn.
static constexpr FwIndexType getNum_bufferAllocate_OutputPorts()
static constexpr FwIndexType getNum_logOut_OutputPorts()
void set_prmGetOut_OutputPort(FwIndexType portNum, Fw::InputPrmGetPort *port)
Connect port to prmGetOut[portNum].
static constexpr FwIndexType getNum_tlmOut_OutputPorts()
void set_dataReturnOut_OutputPort(FwIndexType portNum, Svc::InputComDataWithContextPort *port)
Connect port to dataReturnOut[portNum].
void set_tlmOut_OutputPort(FwIndexType portNum, Fw::InputTlmPort *port)
Connect port to tlmOut[portNum].
static constexpr FwIndexType getNum_prmSetOut_OutputPorts()
virtual void dataIn_handler(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)=0
Handler for input port dataIn.
void set_prmSetOut_OutputPort(FwIndexType portNum, Fw::InputPrmSetPort *port)
Connect port to prmSetOut[portNum].
void log_WARNING_HI_NoBufferAvailable()
Enum representing event severity.
static constexpr FwIndexType getNum_bufferDeallocate_OutputPorts()
Fw::Buffer bufferAllocate_out(FwIndexType portNum, FwSizeType size) const
Invoke output port bufferAllocate.
Auto-generated base for SpacePacketFramer component.
virtual void comStatusIn_handler(FwIndexType portNum, Fw::Success &condition)=0
Handler for input port comStatusIn.
friend class SpacePacketFramerTesterBase
Friend class tester to support autocoded test harness.
void dataReturnIn_handlerBase(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
Handler base-class function for input port dataReturnIn.
bool isConnected_getApidSeqCount_OutputPort(FwIndexType portNum) const
bool isConnected_prmSetOut_OutputPort(FwIndexType portNum) const
U16 getApidSeqCount_out(FwIndexType portNum, const ComCfg::Apid &apid, U16 sequenceCount) const
Invoke output port getApidSeqCount.
bool isConnected_bufferDeallocate_OutputPort(FwIndexType portNum) const
Svc::InputComDataWithContextPort * get_dataReturnIn_InputPort(FwIndexType portNum)
PlatformIndexType FwIndexType
Type used to pass context info between components during framing/deframing.
void dataOut_out(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context) const
Invoke output port dataOut.
RateGroupDivider component implementation.
static constexpr FwIndexType getNum_dataOut_OutputPorts()
static constexpr FwIndexType getNum_dataReturnIn_InputPorts()
virtual ~SpacePacketFramerComponentBase()
Destroy SpacePacketFramerComponentBase object.
void set_comStatusOut_OutputPort(FwIndexType portNum, Fw::InputSuccessConditionPort *port)
Connect port to comStatusOut[portNum].
bool isConnected_timeCaller_OutputPort(FwIndexType portNum) const
No buffer was available to hold the packet, which was dropped.
APIDs are 11 bits in the Space Packet protocol, so we use U16. Max value 7FF.
static constexpr FwIndexType getNum_prmGetOut_OutputPorts()
void set_bufferDeallocate_OutputPort(FwIndexType portNum, Fw::InputBufferSendPort *port)
Connect port to bufferDeallocate[portNum].