24 m_allocation_failure_response(
BufferRepeater::NUM_BUFFER_REPEATER_FAILURE_OPTIONS) {}
29 this->m_allocation_failure_response = allocation_failure_response;
32 bool BufferRepeater ::check_allocation(
FwIndexType index,
36 bool is_valid = (new_allocation.
getData() !=
nullptr) && (new_allocation.
getSize() >= incoming_buffer.
getSize());
40 switch (this->m_allocation_failure_response) {
62 void BufferRepeater ::portIn_handler(
FwIndexType portNum,
69 if (this->check_allocation(i, new_allocation, buffer)) {
void setSize(FwSizeType size)
BufferRepeaterFailureOption
void portOut_out(FwIndexType portNum, Fw::Buffer &fwBuffer)
Invoke output port portOut.
void log_WARNING_HI_AllocationSoftFailure(I32 port, FwSizeType size) const
BufferRepeater(const char *const compName)
bool isConnected_portOut_OutputPort(FwIndexType portNum)
FwSizeType getSize() const
void log_FATAL_AllocationHardFailure(I32 port, FwSizeType size) const
PlatformIndexType FwIndexType
#define FW_ASSERT_NO_OVERFLOW(value, T)
void configure(BufferRepeaterFailureOption allocation_failure_response)
RateGroupDivider component implementation.
Auto-generated base for BufferRepeater component.
Fw::Buffer allocate_out(FwIndexType portNum, FwSizeType size)
Invoke output port allocate.
void deallocate_out(FwIndexType portNum, Fw::Buffer &fwBuffer)
Invoke output port deallocate.