15 #include "Fw/Types/BasicTypes.hpp"
16 #include "Fw/Types/Assert.hpp"
26 const char *
const compName
27 ) : UartFramerComponentBase(compName), m_size(0)
37 UartFramerComponentBase::init(instance);
54 buff = this->DeframerAllocate_out(0,this->m_size);
57 this->readBufferSend_out(0,buff);
66 Drv::SendStatus UartFramer ::
72 this->serialSend_out(0,sendBuffer);
73 this->FramerDeallocate_out(0,sendBuffer);
75 return Drv::SendStatus::SEND_OK;
82 Drv::SerialReadStatus &status
86 Drv::RecvStatus outStat = Drv::RecvStatus::RECV_OK;
88 if (status != Drv::SerialReadStatus::SER_OK) {
89 outStat = Drv::RecvStatus::RECV_ERROR;
93 this->Deframer_out(0,serBuffer,outStat);
97 Fw::Buffer newBuff = this->DeframerAllocate_out(0,this->m_size);
98 if (newBuff.
getSize() != this->m_size) {
99 this->log_WARNING_HI_BuffErr();
101 this->readBufferSend_out(0,newBuff);