35 this->m_protocol = &protocol;
36 protocol.
setup(*
this);
41 this->m_frame_sent =
false;
42 this->m_protocol->
frame(data, size, packet_type);
83 this->m_frame_sent =
true;
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.
void comStatusOut_out(NATIVE_INT_TYPE portNum, Fw::Success &condition)
Invoke output port comStatusOut.
Fw::Buffer framedAllocate_out(NATIVE_INT_TYPE portNum, U32 size)
Invoke output port framedAllocate.
Drv::SendStatus framedOut_out(NATIVE_INT_TYPE portNum, Fw::Buffer &sendBuffer)
Invoke output port framedOut.
void bufferDeallocate_out(NATIVE_INT_TYPE portNum, Fw::Buffer &fwBuffer)
Invoke output port bufferDeallocate.
bool isConnected_comStatusOut_OutputPort(NATIVE_INT_TYPE portNum)
Framer(const char *const compName)
void setup(FramingProtocol &protocol)
Setup this component with a supplied framing protocol.
abstract class representing a framing protocol
virtual void frame(const U8 *const data, const U32 size, Fw::ComPacket::ComPacketType packet_type)=0
frame a given set of bytes
void setup(FramingProtocolInterface &interface)
setup function called to supply the interface used for allocation and sending
interface supplied to the framing protocol