24Framer ::Framer(
const char*
const compName)
24Framer ::Framer(
const char*
const compName) {
…}
35 this->m_protocol = &protocol;
36 protocol.
setup(*
this);
41 this->m_frame_sent =
false;
42 this->m_protocol->frame(data, size, packet_type);
44 if (this->isConnected_comStatusOut_OutputPort(0) && (!this->m_frame_sent)) {
46 this->comStatusOut_out(0, status);
61 this->bufferDeallocate_out(0, fwBuffer);
65 if (this->isConnected_comStatusOut_OutputPort(portNum)) {
66 this->comStatusOut_out(portNum, condition);
83 this->m_frame_sent =
true;
87 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 logMsg(const char *fmt, POINTER_CAST a0=0, POINTER_CAST a1=0, POINTER_CAST a2=0, POINTER_CAST a3=0, POINTER_CAST a4=0, POINTER_CAST a5=0, POINTER_CAST a6=0, POINTER_CAST a7=0, POINTER_CAST a8=0, POINTER_CAST a9=0)
void init()
Object initializer.
NATIVE_UINT_TYPE 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