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.
13 #ifndef Svc_BufferAccumulator_HPP
14 #define Svc_BufferAccumulator_HPP
16 #include "Svc/BufferAccumulator/BufferAccumulatorComponentAc.hpp"
23 public BufferAccumulatorComponentBase
33 class ArrayFIFOBuffer {
40 ~ArrayFIFOBuffer(
void);
61 U32 getSize(
void)
const;
65 U32 getCapacity(
void)
const;
98 const char *
const compName
136 void bufferSendInFill_handler(
170 void BA_SetMode_cmdHandler(
182 void sendStoredBuffer(
void);
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)
#define PRIVATE
overridable private for unit testing
NATIVE_INT_TYPE allocatorId
The allocator ID.
Defines a base class for a memory allocator for classes.
BufferAccumulator(const char *const compName)
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.
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.