24 BufferAccumulatorComponentBase(compName),
41 BufferAccumulatorComponentBase::init(queueDepth, instance);
60 this->allocatorId = identifier;
64 allocator.
allocate(identifier, actualSize, recoverable));
67 bufferQueue.init(this->bufferMemory, actualBuffers);
73 allocator.
deallocate(this->allocatorId, (
void*)this->bufferMemory);
80 void BufferAccumulator ::
81 bufferSendInFill_handler(
86 const bool status = this->bufferQueue.enqueue(buffer);
88 if (this->numWarnings > 0) {
89 this->log_ACTIVITY_HI_BA_BufferAccepted();
91 this->numWarnings = 0;
94 if (this->numWarnings == 0) {
95 this->log_WARNING_HI_BA_QueueFull();
100 this->sendStoredBuffer();
104 void BufferAccumulator ::
105 bufferSendInReturn_handler(
110 this->bufferSendOutReturn_out(0, buffer);
112 this->sendStoredBuffer();
115 void BufferAccumulator ::
121 this->pingOut_out(0, key);
124 void BufferAccumulator ::
137 void BufferAccumulator ::
138 BA_SetMode_cmdHandler(
147 this->sendStoredBuffer();
152 this->cmdResponse_out(opCode, cmdSeq, Fw::COMMAND_OK);
159 void BufferAccumulator ::
160 sendStoredBuffer(
void)
164 const bool status = this->bufferQueue.dequeue(buffer);
166 this->bufferSendOutDrain_out(0, buffer);