24Framer ::Framer(
const char*
const compName)
31 this->m_protocol = &protocol;
32 protocol.
setup(*
this);
37 this->m_frame_sent =
false;
38 this->m_protocol->frame(data, size, packet_type);
40 if (this->isConnected_comStatusOut_OutputPort(0) && (!this->m_frame_sent)) {
42 this->comStatusOut_out(0, status);
57 this->bufferDeallocate_out(0, fwBuffer);
61 if (this->isConnected_comStatusOut_OutputPort(portNum)) {
62 this->comStatusOut_out(portNum, condition);
79 this->m_frame_sent =
true;
83 return this->framedAllocate_out(0, size);
PlatformIntType NATIVE_INT_TYPE
uint8_t U8
8-bit unsigned integer
C++-compatible configuration header for fprime configuration.
Status returned by the send call.
@ SEND_OK
Send worked as expected.
U8 * getBuffAddr()
gets buffer address for data filling
static void log(const char *format,...)
log a formated string with supplied arguments
Serializable::SizeType getBuffLength() const
returns current buffer size
@ SUCCESS
Representing success.
Auto-generated base for Framer component.
abstract class representing a framing protocol
void setup(FramingProtocolInterface &interface)
setup function called to supply the interface used for allocation and sending
interface supplied to the framing protocol