29 m_firstHeaderPointer()
46 U16 firstHeaderPointer
49 m_comQueueIndex(comQueueIndex),
52 m_hasSecHdr(hasSecHdr),
53 m_sequenceFlags(sequenceFlags),
54 m_sequenceCount(sequenceCount),
59 m_firstHeaderPointer(firstHeaderPointer)
67 m_comQueueIndex(obj.m_comQueueIndex),
69 m_pktType(obj.m_pktType),
70 m_hasSecHdr(obj.m_hasSecHdr),
71 m_sequenceFlags(obj.m_sequenceFlags),
72 m_sequenceCount(obj.m_sequenceCount),
75 m_sendNow(obj.m_sendNow),
76 m_saIndex(obj.m_saIndex),
77 m_firstHeaderPointer(obj.m_firstHeaderPointer)
93 set(obj.
m_comQueueIndex, obj.
m_apid, obj.
m_pktType, obj.
m_hasSecHdr, obj.
m_sequenceFlags, obj.
m_sequenceCount, obj.
m_vcId, obj.
m_pvn, obj.
m_sendNow, obj.
m_saIndex, obj.
m_firstHeaderPointer);
100 if (
this == &obj) {
return true; }
103 (this->m_apid == obj.
m_apid) &&
108 (this->m_vcId == obj.
m_vcId) &&
109 (this->m_pvn == obj.
m_pvn) &&
119 return !(*
this == obj);
124 std::ostream& operator<<(std::ostream& os,
const FrameContext& obj) {
267 #if FW_SERIALIZABLE_TO_STRING 276 sb +=
"comQueueIndex = ";
283 this->
m_apid.toString(tmp);
294 sb +=
"hasSecHdr = ";
300 sb +=
"sequenceFlags = ";
306 sb +=
"sequenceCount = ";
319 this->
m_pvn.toString(tmp);
336 sb +=
"firstHeaderPointer = ";
360 U16 firstHeaderPointer
Serialization/Deserialization operation was successful.
FrameContext()
Constructor (default value)
PlatformSizeType FwSizeType
Fw::SerializeStatus serializeTo(Fw::SerialBufferBase &buffer, Fw::Endianness mode=Fw::Endianness::BIG) const
Serialization.
void set_hasSecHdr(bool hasSecHdr)
Set member hasSecHdr.
void set_apid(ComCfg::Apid::T apid)
Set member apid.
FwSizeType serializedSize() const
Get the dynamic serialized size of the struct.
The size of the serial representation.
void set_sendNow(bool sendNow)
Set member sendNow.
bool operator!=(const FrameContext &obj) const
Inequality operator.
virtual SerializeStatus serializeFrom(U8 val, Endianness mode=Endianness::BIG)=0
Serialize an 8-bit unsigned integer value.
SerializeStatus
forward declaration for string
virtual SerializeStatus deserializeTo(U8 &val, Endianness mode=Endianness::BIG)=0
Deserialize an 8-bit unsigned integer value.
void set_sequenceFlags(U8 sequenceFlags)
Set member sequenceFlags.
The size of the serial representation.
void set_sequenceCount(U16 sequenceCount)
Set member sequenceCount.
void set(FwIndexType comQueueIndex, ComCfg::Apid::T apid, ComCfg::SppPacketType::T pktType, bool hasSecHdr, U8 sequenceFlags, U16 sequenceCount, U8 vcId, ComCfg::Pvn::T pvn, bool sendNow, U16 saIndex, U16 firstHeaderPointer)
Set all members.
void set_pvn(ComCfg::Pvn::T pvn)
Set member pvn.
const char * toChar() const
Convert to a C-style char*.
ComCfg::SppPacketType m_pktType
Fw::SerializeStatus deserializeFrom(Fw::SerialBufferBase &buffer, Fw::Endianness mode=Fw::Endianness::BIG)
Deserialization.
FormatStatus format(const CHAR *formatString,...)
write formatted string to buffer
void set_vcId(U8 vcId)
Set member vcId.
uint8_t U8
8-bit unsigned integer
bool operator==(const FrameContext &obj) const
Equality operator.
void set_comQueueIndex(FwIndexType comQueueIndex)
Set member comQueueIndex.
void set_saIndex(U16 saIndex)
Set member saIndex.
PlatformIndexType FwIndexType
Type used to pass context info between components during framing/deframing.
The size of the serial representation.
FwIndexType m_comQueueIndex
void set_firstHeaderPointer(U16 firstHeaderPointer)
Set member firstHeaderPointer.
void set_pktType(ComCfg::SppPacketType::T pktType)
Set member pktType.
APIDs are 11 bits in the Space Packet protocol, so we use U16. Max value 7FF.
FrameContext & operator=(const FrameContext &obj)
Copy assignment operator.