12 #include "config/FpConfig.hpp" 28 this->m_spacecraftId = spacecraftId;
29 this->m_acceptAllVcid = acceptAllVcid;
65 if (spacecraft_id != this->m_spacecraftId) {
76 if (not this->m_acceptAllVcid && vc_id != this->m_vcId) {
92 status = deserializer.deserialize(trailer);
95 U16 transmitted_crc = trailer.get_fecf();
96 if (transmitted_crc != computed_crc) {
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.
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)
The size of the serial representation.
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
SerializeStatus deserialize(U8 &val)
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.
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