12 #include "config/FpConfig.hpp" 28 this->m_spacecraftId = spacecraftId;
29 this->m_acceptAllVcid = acceptAllVcid;
65 if (spacecraft_id != this->m_spacecraftId) {
78 if (not this->m_acceptAllVcid && vc_id != this->m_vcId) {
95 status = deserializer.deserializeTo(trailer);
98 U16 transmitted_crc = trailer.get_fecf();
99 if (transmitted_crc != computed_crc) {
118 void TcDeframer::errorNotifyHelper(Ccsds::FrameError error) {
Serialization/Deserialization operation was successful.
static U16 compute(const U8 *buffer, U32 length)
compute CRC16 for a buffer
TcDeframer(const char *const compName)
Construct TcDeframer object.
bool isConnected_errorNotify_OutputPort(FwIndexType portNum)
void dataOut_out(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
Invoke output port dataOut.
void configure(U16 vcId, U16 spacecraftId, bool acceptAllVcid)
Configure the TcDeframer to deframe only a specific VCID and spacecraft ID.
PlatformSizeType FwSizeType
void setSize(FwSizeType size)
SerializeStatus
forward declaration for string
void log_ACTIVITY_LO_InvalidVcId(U16 transmitted, U16 configured) const
ExternalSerializeBufferWithMemberCopy getDeserializer()
~TcDeframer()
Destroy TcDeframer object.
void log_WARNING_HI_InvalidCrc(U16 transmitted, U16 computed) const
SerializeStatus moveDeserToOffset(FwSizeType offset)
Moves deserialization to the specified offset.
uint8_t U8
8-bit unsigned integer
void log_WARNING_LO_InvalidSpacecraftId(U16 transmitted, U16 configured) const
FwSizeType getSize() const
void errorNotify_out(FwIndexType portNum, const Svc::Ccsds::FrameError &errorCode)
Invoke output port errorNotify.
PlatformIndexType FwIndexType
FwSizeType SizeType
The size type for a buffer - for backwards compatibility.
Type used to pass context info between components during framing/deframing.
RateGroupDivider component implementation.
The size of the serial representation.
void dataReturnOut_out(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
Invoke output port dataReturnOut.
PlatformAssertArgType FwAssertArgType
The type of arguments to assert functions.
Auto-generated base for TcDeframer component.
void log_WARNING_HI_InvalidFrameLength(U16 transmitted, FwSizeType actual) const
SerializeStatus deserializeTo(U8 &val)
deserialize 8-bit unsigned int