24 this->m_numEntries = 0;
53 return this->m_numEntries;
57 return this->m_tlmBuffer;
61 this->m_tlmBuffer = buffer;
82 stat = this->m_tlmBuffer.
serialize(timeTag);
PlatformIntType NATIVE_INT_TYPE
PlatformUIntType NATIVE_UINT_TYPE
NATIVE_UINT_TYPE getBuffCapacity() const
returns capacity, not current size, of buffer
U8 * getBuffAddr()
gets buffer address for data filling
SerializeStatus serializeBase(SerializeBufferBase &buffer) const
SerializeStatus deserializeBase(SerializeBufferBase &buffer)
SerializeStatus setBuffLen(Serializable::SizeType length)
sets buffer length manually after filling with data
void resetDeser()
reset deserialization to beginning
Serializable::SizeType getBuffLeft() const
returns how much deserialization buffer is left
void resetSer()
reset to beginning of buffer to reuse for serialization
Serializable::SizeType getBuffLength() const
returns current buffer size
SerializeStatus deserialize(U8 &val)
deserialize 8-bit unsigned int
SerializeStatus serialize(U8 val)
serialize 8-bit unsigned int
U8 * getBuffAddr()
gets buffer address for data filling
void setBuffer(Fw::ComBuffer &buffer)
set the internal buffer for deserializing values
virtual ~TlmPacket()
Destructor.
SerializeStatus extractValue(FwChanIdType &id, Time &timeTag, TlmBuffer &buffer, NATIVE_UINT_TYPE bufferSize)
SerializeStatus resetPktDeser()
Reset deserialization. This should be done before extracting values.
SerializeStatus deserialize(SerializeBufferBase &buffer)
Deserialize the packet. For use internally in software. To extract channels, use setBuffer() and extr...
NATIVE_UINT_TYPE getNumEntries()
get the number of packets added via addValue()
SerializeStatus resetPktSer()
Reset serialization of values. This should be done when starting to accumulate a new set of values.
Fw::ComBuffer & getBuffer()
get buffer to send to the ground
SerializeStatus serialize(SerializeBufferBase &buffer) const
Serialize the packet before sending. For use internally in software. To send to the ground,...
SerializeStatus addValue(FwChanIdType id, Time &timeTag, TlmBuffer &buffer)
Add telemetry value to buffer.
SerializeStatus
forward declaration for string
@ FW_SERIALIZE_OK
Serialization/Deserialization operation was successful.
@ FW_DESERIALIZE_TYPE_MISMATCH
Deserialized type ID didn't match.
@ FW_SERIALIZE_NO_ROOM_LEFT
No room left in the buffer to serialize data.