45 m_comQueueIndex(comQueueIndex),
47 m_hasSecHdr(hasSecHdr),
48 m_sequenceFlags(sequenceFlags),
49 m_sequenceCount(sequenceCount),
61 m_comQueueIndex(obj.m_comQueueIndex),
63 m_hasSecHdr(obj.m_hasSecHdr),
64 m_sequenceFlags(obj.m_sequenceFlags),
65 m_sequenceCount(obj.m_sequenceCount),
68 m_sendNow(obj.m_sendNow),
69 m_saIndex(obj.m_saIndex)
92 if (
this == &obj) {
return true; }
95 (this->m_apid == obj.
m_apid) &&
99 (this->m_vcId == obj.
m_vcId) &&
100 (this->m_pvn == obj.
m_pvn) &&
109 return !(*
this == obj);
114 std::ostream& operator<<(std::ostream& os,
const FrameContext& obj) {
239 #if FW_SERIALIZABLE_TO_STRING 248 sb +=
"comQueueIndex = ";
255 this->
m_apid.toString(tmp);
260 sb +=
"hasSecHdr = ";
266 sb +=
"sequenceFlags = ";
272 sb +=
"sequenceCount = ";
285 this->
m_pvn.toString(tmp);
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.
void set(FwIndexType comQueueIndex, ComCfg::Apid::T apid, bool hasSecHdr, U8 sequenceFlags, U16 sequenceCount, U8 vcId, ComCfg::Pvn::T pvn, bool sendNow, U16 saIndex)
Set all members.
void set_sequenceCount(U16 sequenceCount)
Set member sequenceCount.
The size of the serial representation.
void set_pvn(ComCfg::Pvn::T pvn)
Set member pvn.
const char * toChar() const
Convert to a C-style char*.
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.
FwIndexType m_comQueueIndex
APIDs are 11 bits in the Space Packet protocol, so we use U16. Max value 7FF.
FrameContext & operator=(const FrameContext &obj)
Copy assignment operator.