31 FW_ASSERT(this->m_bufferState == BufferOwnershipState::OWNED,
32 static_cast<FwAssertArgType>(this->m_bufferState));
47 U16 dataFieldStatus = 0;
56 this->m_masterFrameCount++;
57 this->m_virtualFrameCount++;
67 status = frameSerializer.
serialize(header);
73 this->fill_with_idle_packet(frameSerializer);
86 status = frameSerializer.serialize(trailer);
89 this->m_bufferState = BufferOwnershipState::NOT_OWNED;
100 void TmFramer ::dataReturnIn_handler(
FwIndexType portNum,
105 FW_ASSERT(frameBuffer.
getData() < &this->m_frameBuffer[0] +
sizeof(this->m_frameBuffer));
106 this->m_bufferState = BufferOwnershipState::OWNED;
112 const U16 startIndex =
static_cast<U16
>(serializer.
getBuffLength());
113 const U16 idlePacketSize =
static_cast<U16
>(endIndex - startIndex);
117 FW_ASSERT(idlePacketSize >= 7, static_cast<FwAssertArgType>(idlePacketSize));
120 SpacePacketHeader header;
121 header.setpacketIdentification(idleApid);
122 header.setpacketSequenceControl(
124 header.setpacketDataLength(lengthToken);
Serialization/Deserialization operation was successful.
static U16 compute(const U8 *buffer, U32 length)
compute CRC16 for a buffer
void dataOut_out(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
Invoke output port dataOut.
SerializeStatus serialize(U8 val)
serialize 8-bit unsigned int
bool isConnected_comStatusOut_OutputPort(FwIndexType portNum)
Describes the frame trailer format for a Telemetry (TM) Transfer Frame.
SerializeStatus
forward declaration for string
~TmFramer()
Destroy TmFramer object.
Serializable::SizeType getBuffLength() const
returns current buffer size
The size of the serial representation.
Per Space Packet Standard, all 1s (11bits) is reserved for Idle Packets.
void comStatusOut_out(FwIndexType portNum, Fw::Success &condition)
Invoke output port comStatusOut.
U8 getvcId() const
Get member vcId.
Omit length from serialization.
PlatformIndexType FwIndexType
Type used to pass context info between components during framing/deframing.
RateGroupDivider component implementation.
Auto-generated base for TmFramer component.
void dataReturnOut_out(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
Invoke output port dataReturnOut.
TmFramer(const char *const compName)
Construct TmFramer object.
ExternalSerializeBufferWithMemberCopy getSerializer()
void setfecf(U16 fecf)
Set member fecf.
PlatformAssertArgType FwAssertArgType
The type of arguments to assert functions.