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