F´ Flight Software - C/C++ Documentation
devel
A framework for building embedded system applications to NASA flight quality standards.
|
Implements the F Prime deframing protocol. More...
#include <Svc/FramingProtocol/FprimeProtocol.hpp>
Public Member Functions | |
FprimeDeframing () | |
Constructor. More... | |
bool | validate (Types::CircularBuffer &buffer, U32 size) |
DeframingStatus | deframe (Types::CircularBuffer &buffer, U32 &needed) override |
Public Member Functions inherited from Svc::DeframingProtocol | |
virtual | ~DeframingProtocol () |
DeframingProtocol () | |
void | setup (DeframingProtocolInterface &interface) |
Additional Inherited Members | |
Public Types inherited from Svc::DeframingProtocol | |
enum | DeframingStatus { DEFRAMING_STATUS_SUCCESS , DEFRAMING_INVALID_SIZE , DEFRAMING_INVALID_CHECKSUM , DEFRAMING_MORE_NEEDED , DEFRAMING_INVALID_FORMAT , DEFRAMING_MAX_STATUS } |
Status of the deframing call. More... | |
Protected Attributes inherited from Svc::DeframingProtocol | |
DeframingProtocolInterface * | m_interface |
Implements the F Prime deframing protocol.
Definition at line 54 of file FprimeProtocol.hpp.
Svc::FprimeDeframing::FprimeDeframing | ( | ) |
Constructor.
Definition at line 20 of file FprimeProtocol.cpp.
|
overridevirtual |
Implements the deframe method
buffer | The circular buffer |
needed | The number of bytes needed, updated by the caller |
Implements Svc::DeframingProtocol.
Definition at line 87 of file FprimeProtocol.cpp.
bool Svc::FprimeDeframing::validate | ( | Types::CircularBuffer & | buffer, |
U32 | size | ||
) |
Validates data against the stored hash value
buffer | The circular buffer |
size | The data size in bytes |
Definition at line 62 of file FprimeProtocol.cpp.