31 this->m_protocol = &protocol;
32 protocol.
setup(*
this);
37 this->m_frame_sent =
false;
38 this->m_protocol->
frame(data, size, packet_type);
79 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 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.
void bufferDeallocate_out(FwIndexType portNum, Fw::Buffer &fwBuffer)
Invoke output port bufferDeallocate.
void comStatusOut_out(FwIndexType portNum, Fw::Success &condition)
Invoke output port comStatusOut.
Drv::SendStatus framedOut_out(FwIndexType portNum, Fw::Buffer &sendBuffer)
Invoke output port framedOut.
Fw::Buffer framedAllocate_out(FwIndexType portNum, U32 size)
Invoke output port framedAllocate.
bool isConnected_comStatusOut_OutputPort(FwIndexType 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