7 #ifndef Svc_Ccsds_AosDeframerComponentAc_HPP 8 #define Svc_Ccsds_AosDeframerComponentAc_HPP 18 #if FW_ENABLE_TEXT_LOGGING == 1 21 #if !FW_DIRECT_PORT_CALLS 24 #if !FW_DIRECT_PORT_CALLS 129 #if !FW_DIRECT_PORT_CALLS 153 #if !FW_DIRECT_PORT_CALLS 167 #if FW_ENABLE_TEXT_LOGGING == 1 170 void set_logTextOut_OutputPort(
203 #if !FW_DIRECT_PORT_CALLS 243 #if !FW_DIRECT_PORT_CALLS && FW_PORT_SERIALIZATION 254 Fw::InputSerializePort* port
257 #if FW_ENABLE_TEXT_LOGGING == 1 260 void set_logTextOut_OutputPort(
262 Fw::InputSerializePort* port
270 Fw::InputSerializePort* port
276 Fw::InputSerializePort* port
282 Fw::InputSerializePort* port
287 #if !FW_DIRECT_PORT_CALLS && FW_PORT_SERIALIZATION 298 Fw::InputSerializePort* port
304 Fw::InputSerializePort* port
310 Fw::InputSerializePort* port
316 Fw::InputSerializePort* port
329 const char* compName =
"" 368 #if FW_ENABLE_TEXT_LOGGING == 1 373 static constexpr
FwIndexType getNum_logTextOut_OutputPorts() {
461 #if FW_ENABLE_TEXT_LOGGING == 1 466 bool isConnected_logTextOut_OutputPort(
561 #if FW_DIRECT_PORT_CALLS 808 static void m_p_dataIn_in(
816 static void m_p_dataReturnIn_in(
838 #if FW_ENABLE_TEXT_LOGGING 865 #if !FW_DIRECT_PORT_CALLS 881 #if !FW_DIRECT_PORT_CALLS 892 #if FW_ENABLE_TEXT_LOGGING == 1 913 #if !FW_DIRECT_PORT_CALLS
static constexpr FwIndexType getNum_dataOut_OutputPorts()
static constexpr FwIndexType getNum_prmGetOut_OutputPorts()
virtual void dataReturnIn_handler(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)=0
Handler for input port dataReturnIn.
friend class AosDeframerTesterBase
Friend class tester to support autocoded test harness.
void log_WARNING_HI_InvalidFhp(U8 vcId, FwSizeType fhpReceived, FwSizeType dataZoneSize) const
static constexpr FwIndexType getNum_allocate_OutputPorts()
void dataOut_out(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context) const
Invoke output port dataOut.
static constexpr FwIndexType getNum_dataIn_InputPorts()
PlatformSizeType FwSizeType
void set_errorNotify_OutputPort(FwIndexType portNum, Svc::Ccsds::InputErrorNotifyPort *port)
Connect port to errorNotify[portNum].
friend class AosDeframerTester
Friend class tester implementation to support white-box testing.
void set_logOut_OutputPort(FwIndexType portNum, Fw::InputLogPort *port)
Connect port to logOut[portNum].
An invalid First Header Pointer (FHP) was received.
void set_allocate_OutputPort(FwIndexType portNum, Fw::InputBufferGetPort *port)
Connect port to allocate[portNum].
void dataReturnIn_handlerBase(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
Handler base-class function for input port dataReturnIn.
static constexpr FwIndexType getNum_timeCaller_OutputPorts()
void tlmWrite_CrcErrorCount(U32 arg, Fw::Time _tlmTime=Fw::Time()) const
bool isConnected_errorNotify_OutputPort(FwIndexType portNum) const
Auto-generated base for AosDeframer component.
Svc::InputComDataWithContextPort * get_dataReturnIn_InputPort(FwIndexType portNum)
Deframing received an invalid checksum (CCSDS 732.0-B-5 Section 4.1.6)
Channel ID for PacketsExtracted.
static constexpr FwIndexType getNum_errorNotify_OutputPorts()
void log_WARNING_LO_InvalidSpacecraftId(U16 transmitted, U16 configured) const
bool isConnected_prmGetOut_OutputPort(FwIndexType portNum) const
void init()
Object initializer.
static constexpr FwIndexType getNum_deallocate_OutputPorts()
Frame was received with idle-only data on a virtual channel (CCSDS 732.0-B-5 Section 4...
Deframing detected a gap/discontinuity in the AOS VC frame count sequence.
bool isConnected_allocate_OutputPort(FwIndexType portNum) const
FwIdType FwEventIdType
The type of an event identifier.
virtual void lock()
Lock the guarded mutex.
void tlmWrite_FramesProcessed(U32 arg, Fw::Time _tlmTime=Fw::Time()) const
static constexpr FwIndexType getNum_dataReturnIn_InputPorts()
void tlmWrite(FwChanIdType id, Fw::TlmBuffer &_tlmBuff, Fw::Time _tlmTime=Fw::Time()) const
void set_deallocate_OutputPort(FwIndexType portNum, Fw::InputBufferSendPort *port)
Connect port to deallocate[portNum].
Spanning packet buffer allocation failed; packet dropped.
void set_dataReturnOut_OutputPort(FwIndexType portNum, Svc::InputComDataWithContextPort *port)
Connect port to dataReturnOut[portNum].
void log_WARNING_HI_InvalidFrameLength(FwSizeType actual, U32 expected) const
Deframing received an invalid frame length.
virtual void unLock()
Unlock the guarded mutex.
void set_prmGetOut_OutputPort(FwIndexType portNum, Fw::InputPrmGetPort *port)
Connect port to prmGetOut[portNum].
FwIdType FwChanIdType
The type of a telemetry channel identifier.
virtual ~AosDeframerComponentBase()
Destroy AosDeframerComponentBase object.
void deallocate_out(FwIndexType portNum, Fw::Buffer &fwBuffer) const
Invoke output port deallocate.
Channel ID for FramesProcessed.
void log_WARNING_HI_SpanningPacketAbandoned(U8 vcId, ComCfg::Pvn pvn, FwSizeType bytesReceived, FwSizeType bytesExpected) const
Enum representing event severity.
AosDeframerComponentBase(const char *compName="")
Construct AosDeframerComponentBase object.
Packet Version Numbers are 3 bits with only 2 currently valid values.
bool isConnected_deallocate_OutputPort(FwIndexType portNum) const
void tlmWrite_LatestVcFrameCount(U32 arg, Fw::Time _tlmTime=Fw::Time()) const
Fw::Buffer allocate_out(FwIndexType portNum, FwSizeType size) const
Invoke output port allocate.
static constexpr FwIndexType getNum_prmSetOut_OutputPorts()
A spanning packet was abandoned before receiving all expected bytes.
uint8_t U8
8-bit unsigned integer
Deframing encountered a packet version number that is not enabled by configuration.
void dataIn_handlerBase(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
Handler base-class function for input port dataIn.
void log_ACTIVITY_LO_IdleFrame(U8 vcId) const
void errorNotify_out(FwIndexType portNum, const Svc::Ccsds::FrameError &errorCode) const
Invoke output port errorNotify.
Deframing received an invalid SCID (CCSDS 732.0-B-5 Section 4.1.2.2)
Channel ID for CrcErrorCount.
void set_tlmOut_OutputPort(FwIndexType portNum, Fw::InputTlmPort *port)
Connect port to tlmOut[portNum].
virtual void dataIn_handler(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)=0
Handler for input port dataIn.
void log_WARNING_HI_DisabledPvn(U8 vcId, U8 pvn) const
bool isConnected_dataReturnOut_OutputPort(FwIndexType portNum) const
bool isConnected_prmSetOut_OutputPort(FwIndexType portNum) const
Svc::InputComDataWithContextPort * get_dataIn_InputPort(FwIndexType portNum)
Channel ID for LatestVcFrameCount.
Deframing received an invalid CCSDS Transfer Frame Version Number (CCSDS 732.0-B-5 Section 4...
void set_dataOut_OutputPort(FwIndexType portNum, Svc::InputComDataWithContextPort *port)
Connect port to dataOut[portNum].
PlatformIndexType FwIndexType
static constexpr FwIndexType getNum_tlmOut_OutputPorts()
void log_ACTIVITY_LO_InvalidVcId(U8 transmitted, U8 configured) const
void log_WARNING_HI_SpanningPacketAllocFailed(U8 vcId, ComCfg::Pvn pvn, FwSizeType packetSize) const
Type used to pass context info between components during framing/deframing.
RateGroupDivider component implementation.
static constexpr FwIndexType getNum_logOut_OutputPorts()
void set_prmSetOut_OutputPort(FwIndexType portNum, Fw::InputPrmSetPort *port)
Connect port to prmSetOut[portNum].
bool isConnected_logOut_OutputPort(FwIndexType portNum) const
void dataReturnOut_out(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context) const
Invoke output port dataReturnOut.
void log_WARNING_HI_InvalidFecf(U16 transmitted, U16 computed) const
void tlmWrite_PacketsExtracted(U32 arg, Fw::Time _tlmTime=Fw::Time()) const
static constexpr FwIndexType getNum_dataReturnOut_OutputPorts()
bool isConnected_dataOut_OutputPort(FwIndexType portNum) const
void set_timeCaller_OutputPort(FwIndexType portNum, Fw::InputTimePort *port)
Connect port to timeCaller[portNum].
bool isConnected_tlmOut_OutputPort(FwIndexType portNum) const
bool isConnected_timeCaller_OutputPort(FwIndexType portNum) const
Deframing received a VCID not in the accepted set (CCSDS 732.0-B-5 Section 4.1.2.3) ...
void log_WARNING_HI_InvalidTfvn(U8 transmitted, U8 expected) const
void log_WARNING_HI_VcFrameCountGap(U8 vcId, U32 received, U32 expected) const