 |
F´ Flight Software - C/C++ Documentation
NASA-v1.6.0
A framework for building embedded system applications to NASA flight quality standards.
|
Go to the documentation of this file.
39 status = serializer.
serialize(real_data_size);
44 status = serializer.
serialize(
static_cast<I32
>(packet_type));
48 status = serializer.
serialize(data, size,
true);
66 for (U32 i = 0; i < size; i++) {
71 hash.
final(hashBuffer);
74 char calc =
static_cast<char>(hashBuffer.
getBuffAddr()[i]);
76 ring.
peek(sent, size + i);
103 const U32 maxU32 = std::numeric_limits<U32>::max();
virtual void route(Fw::Buffer &data)=0
send deframed data into the system
SerializeStatus
forward declaration for string
FramingProtocolInterface * m_interface
SerializeStatus serialize(U8 val)
serialize 8-bit unsigned int
FprimeDeframing()
Constructor.
@ DEFRAMING_INVALID_CHECKSUM
void final(HashBuffer &buffer)
virtual void send(Fw::Buffer &outgoing)=0
send framed data out of the framer
DeframingStatus deframe(Types::CircularBuffer &buffer, U32 &needed) override
DeframingProtocolInterface * m_interface
A container class for holding a hash buffer.
SerializeBufferBase & getSerializeRepr()
#define HASH_DIGEST_LENGTH
NATIVE_UINT_TYPE get_allocated_size() const
@ DEFRAMING_STATUS_SUCCESS
NATIVE_UINT_TYPE get_capacity() const
virtual Fw::Buffer allocate(const U32 size)=0
allocation callback to allocate memory when framing
Fw::SerializeStatus peek(char &value, NATIVE_UINT_TYPE offset=0) const
A generic interface for creating and comparing hash values.
virtual Fw::Buffer allocate(const U32 size)=0
called to allocate memory, typically delegating to an allocate port call
DeframingStatus
Status of the deframing call.
FprimeFraming()
Constructor.
abstract class representing a framing protocol
void update(const void *const data, const NATIVE_INT_TYPE len)
Abstract base class representing a deframing protocol.
bool validate(Types::CircularBuffer &buffer, U32 size)
@ DEFRAMING_INVALID_FORMAT
static void hash(const void *data, const NATIVE_INT_TYPE len, HashBuffer &buffer)
@ FW_SERIALIZE_OK
Serialization/Deserialization operation was successful.
void frame(const U8 *const data, const U32 size, Fw::ComPacket::ComPacketType packet_type) override
Implements the frame method.