 |
F´ Flight Software - C/C++ Documentation
NASA-v2.0.1
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);
SerializeStatus
forward declaration for string
FramingProtocolInterface * m_interface
SerializeStatus serialize(U8 val)
serialize 8-bit unsigned int
uint8_t U8
8-bit unsigned integer
@ DEFRAMING_INVALID_CHECKSUM
void final(HashBuffer &buffer)
DeframingStatus deframe(Types::CircularBuffer &buffer, U32 &needed)
DeframingProtocolInterface * m_interface
An container class for holding a hash buffer.
@ FW_SERIALIZE_OK
Serialization/Deserialization operation was successful.
SerializeBufferBase & getSerializeRepr()
#define HASH_DIGEST_LENGTH
static const FP_FRAME_TOKEN_TYPE START_WORD
@ DEFRAMING_STATUS_SUCCESS
virtual void route(Fw::Buffer &data)=0
send deframed data into the system
NATIVE_UINT_TYPE get_remaining_size(bool serialization=false)
virtual Fw::Buffer allocate(const U32 size)=0
called to allocate memory, typically delegating to an allocate port call
virtual void send(Fw::Buffer &outgoing)=0
send framed data out of the framer
Fw::SerializeStatus peek(char &value, NATIVE_UINT_TYPE offset=0)
A generic interface for creating and comparing hash values.
DeframingStatus
Status of the deframing call.
virtual Fw::Buffer allocate(const U32 size)=0
allocation callback to allocate memory when framing
#define FP_FRAME_HEADER_SIZE
abstract class representing a framing protocol
void update(const void *const data, const NATIVE_INT_TYPE len)
Abstract base class representing a deframing protocol.
void frame(const U8 *const data, const U32 size, Fw::ComPacket::ComPacketType packet_type)
frame a given set of bytes
NATIVE_UINT_TYPE get_capacity()
#define FP_FRAME_TOKEN_TYPE
bool validate(Types::CircularBuffer &buffer, U32 size)
static void hash(const void *data, const NATIVE_INT_TYPE len, HashBuffer &buffer)