24Framer ::Framer(
const char*
const compName)
28 FramerComponentBase::init(instance);
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)) {
45 Fw::Success status = Fw::Success::SUCCESS;
46 this->comStatusOut_out(0, status);
61 this->bufferDeallocate_out(0, fwBuffer);
64void Framer ::comStatusIn_handler(
const NATIVE_INT_TYPE portNum, Fw::Success& condition) {
65 if (this->isConnected_comStatusOut_OutputPort(portNum)) {
66 this->comStatusOut_out(portNum, condition);
76 const Drv::SendStatus sendStatus = this->framedOut_out(0, outgoing);
77 if (sendStatus.e != Drv::SendStatus::SEND_OK) {
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.
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)
NATIVE_UINT_TYPE getBuffLength() const
returns current buffer size
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