17ComStub::ComStub(
const char*
const compName) : ComStubComponentBase(compName), m_reinitialize(true) {}
20 ComStubComponentBase::init(instance);
30 FW_ASSERT(!this->m_reinitialize || !this->isConnected_comStatus_OutputPort(0));
31 Drv::SendStatus driverStatus = Drv::SendStatus::SEND_RETRY;
33 driverStatus = this->drvDataOut_out(0, sendBuffer);
35 FW_ASSERT(driverStatus != Drv::SendStatus::SEND_RETRY);
36 Fw::Success comSuccess = (driverStatus.e == Drv::SendStatus::SEND_OK) ? Fw::Success::SUCCESS :
Fw::Success::FAILURE;
37 this->m_reinitialize = driverStatus.e != Drv::SendStatus::SEND_OK;
38 if (this->isConnected_comStatus_OutputPort(0)) {
39 this->comStatus_out(0, comSuccess);
41 return Drv::SendStatus::SEND_OK;
45 Fw::Success radioSuccess = Fw::Success::SUCCESS;
46 if (this->isConnected_comStatus_OutputPort(0) && m_reinitialize) {
47 this->m_reinitialize =
false;
48 this->comStatus_out(0, radioSuccess);
54 const Drv::RecvStatus& recvStatus) {
55 this->comDataOut_out(0, recvBuffer, recvStatus);
PlatformIntType NATIVE_INT_TYPE
PlatformUIntType NATIVE_UINT_TYPE
C++ header for working with basic fprime types.
const NATIVE_UINT_TYPE RETRY_LIMIT
void init(const NATIVE_INT_TYPE instance=0)
ComStub(const char *const compName)