20 m_retry_state(WAITING_FOR_SEND),
21 m_bufferState(
Fw::Buffer::OwnershipState::OWNED) {}
26 this->m_num_retries = num_retries;
37 if (this->m_retry_state == WAITING_FOR_SEND) {
44 this->m_retry_state = WAITING_FOR_SEND;
52 this->m_retry_count++;
53 this->m_retry_state = WAITING_FOR_STATUS;
55 this->
dataOut_out(0, this->m_buffer, this->m_context);
58 FW_ASSERT(this->m_retry_state == WAITING_FOR_STATUS);
62 if (this->m_retry_count < this->m_num_retries) {
63 this->m_retry_state = RETRYING;
67 this->m_retry_state = WAITING_FOR_SEND;
77 FW_ASSERT(this->m_retry_state == WAITING_FOR_SEND);
79 this->m_retry_state = WAITING_FOR_STATUS;
80 this->m_retry_count = 0;
86 FW_ASSERT(this->m_retry_state == WAITING_FOR_STATUS);
88 this->m_buffer = buffer;
89 this->m_context = context;
Auto-generated base for ComRetry component.
void dataReturnOut_out(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
Invoke output port dataReturnOut.
void dataOut_out(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
Invoke output port dataOut.
~ComRetry()
Destroy ComRetry object.
The buffer is currently not owned.
ComRetry(const char *const compName)
Construct ComRetry object.
void configure(U32 num_retries)
Configure the number of retries.
PlatformIndexType FwIndexType
Type used to pass context info between components during framing/deframing.
RateGroupDivider component implementation.
The buffer is currently owned.
Implementation of malloc based allocator.
void comStatusOut_out(FwIndexType portNum, Fw::Success &condition)
Invoke output port comStatusOut.