F´ Flight Software - C/C++ Documentation
NASA-v1.5.0
A framework for building embedded system applications to NASA flight quality standards.
|
Go to the documentation of this file.
24 BufferAccumulatorComponentBase(compName),
35 void BufferAccumulator ::
41 BufferAccumulatorComponentBase::init(queueDepth, instance);
64 allocator.
allocate(identifier, actualSize, recoverable));
80 void BufferAccumulator ::
81 bufferSendInFill_handler(
86 const bool status = this->
bufferQueue.enqueue(buffer);
89 this->log_ACTIVITY_HI_BA_BufferAccepted();
95 this->log_WARNING_HI_BA_QueueFull();
100 this->sendStoredBuffer();
110 this->bufferSendOutReturn_out(0,
buffer);
112 this->sendStoredBuffer();
121 this->pingOut_out(0, key);
137 void BufferAccumulator ::
138 BA_SetMode_cmdHandler(
147 this->sendStoredBuffer();
159 void BufferAccumulator ::
160 sendStoredBuffer(
void)
164 const bool status = this->
bufferQueue.dequeue(buffer);
166 this->bufferSendOutDrain_out(0,
buffer);
PRIVATE const U32 OpState mode
< The mode
PRIVATE const U32 cmdSeq
The command sequence number.
void bufferSendInReturn_handler(const NATIVE_INT_TYPE portNum, Fw::Buffer &buffer)
NATIVE_INT_TYPE allocatorId
The allocator ID.
virtual void deallocate(const NATIVE_UINT_TYPE identifier, void *ptr)=0
Deallocate memory.
BufferAccumulator(const char *const compName)
virtual void * allocate(const NATIVE_UINT_TYPE identifier, NATIVE_UINT_TYPE &size, bool &recoverable)=0
Allocate memory.
void deallocateQueue(Fw::MemAllocator &allocator)
Return allocated queue. Should be done during shutdown.
#define FwOpcodeType
Type representation for a command opcode.
unsigned int NATIVE_UINT_TYPE
native unsigned integer type declaration
ArrayFIFOBuffer bufferQueue
The FIFO queue of buffers.
void allocateQueue(NATIVE_INT_TYPE identifier, Fw::MemAllocator &allocator, NATIVE_UINT_TYPE maxNumBuffers)
void schedIn_handler(const NATIVE_INT_TYPE portNum, NATIVE_UINT_TYPE context)
bool send
Whether to send a buffer to the downstream client.
void pingIn_handler(const NATIVE_INT_TYPE portNum, U32 key)
Fw::Buffer * bufferMemory
Memory for the buffer array.
Declares ISF basic types.
int NATIVE_INT_TYPE
native integer type declaration
PRIVATE Fw::Buffer & buffer
U32 numWarnings
The number of QueueFull warnings sent since the last successful enqueue operation.