37 m_comQueueIndex(comQueueIndex),
39 m_sequenceCount(sequenceCount),
49 m_comQueueIndex(obj.m_comQueueIndex),
51 m_sequenceCount(obj.m_sequenceCount),
53 m_sendNow(obj.m_sendNow)
76 if (
this == &obj) {
return true; }
79 (this->m_apid == obj.
m_apid) &&
81 (this->m_vcId == obj.
m_vcId) &&
89 return !(*
this == obj);
94 std::ostream& operator<<(std::ostream& os,
const FrameContext& obj) {
183 #if FW_SERIALIZABLE_TO_STRING 192 sb +=
"comQueueIndex = ";
199 this->
m_apid.toString(tmp);
204 sb +=
"sequenceCount = ";
void set(FwIndexType comQueueIndex, ComCfg::Apid::T apid, U16 sequenceCount, U8 vcId, bool sendNow)
Set all members.
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.
const char * toChar() const
Convert to a C-style char*.
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.
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.