41 m_comQueueIndex(comQueueIndex),
43 m_hasSecHdr(hasSecHdr),
44 m_sequenceCount(sequenceCount),
55 m_comQueueIndex(obj.m_comQueueIndex),
57 m_hasSecHdr(obj.m_hasSecHdr),
58 m_sequenceCount(obj.m_sequenceCount),
61 m_sendNow(obj.m_sendNow)
84 if (
this == &obj) {
return true; }
87 (this->m_apid == obj.
m_apid) &&
90 (this->m_vcId == obj.
m_vcId) &&
91 (this->m_pvn == obj.
m_pvn) &&
99 return !(*
this == obj);
104 std::ostream& operator<<(std::ostream& os,
const FrameContext& obj) {
211 #if FW_SERIALIZABLE_TO_STRING 220 sb +=
"comQueueIndex = ";
227 this->
m_apid.toString(tmp);
232 sb +=
"hasSecHdr = ";
238 sb +=
"sequenceCount = ";
251 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.
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
The size of the serial representation.
virtual SerializeStatus deserializeTo(U8 &val, Endianness mode=Endianness::BIG)=0
Deserialize an 8-bit unsigned integer value.
void set_sequenceCount(U16 sequenceCount)
Set member sequenceCount.
void set_pvn(ComCfg::Pvn::T pvn)
Set member pvn.
void set(FwIndexType comQueueIndex, ComCfg::Apid::T apid, bool hasSecHdr, U16 sequenceCount, U8 vcId, ComCfg::Pvn::T pvn, bool sendNow)
Set all members.
The size of the serial representation.
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.
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.