|
F´ Flight Software - C/C++ Documentation
NASA-v1.5.0
A framework for building embedded system applications to NASA flight quality standards.
|
#include <Svc/BufferManager/BufferManager.hpp>
Classes | |
| struct | Allocate |
| struct | Entry |
| struct | Free |
Public Types | |
| enum | Status { SUCCESS, FAILURE } |
Public Types inherited from Svc::BufferManagerComponentBase | |
| enum | { NUM_BUFFERSENDIN_INPUT_PORTS = 1, NUM_BUFFERGETCALLEE_INPUT_PORTS = 1 } |
| enum | { NUM_TIMECALLER_OUTPUT_PORTS = 1, NUM_EVENTOUT_OUTPUT_PORTS = 1, NUM_TEXTEVENTOUT_OUTPUT_PORTS = 1, NUM_TLMOUT_OUTPUT_PORTS = 1 } |
Public Attributes | |
| PRIVATE | __pad2__: BufferManager& bufferManager |
| State | state |
| The warning state. More... | |
| PRIVATE | __pad3__: class Store { public: Store( const U32 size ) |
| PRIVATE | __pad4__: const U32 totalSize |
| U8 *const | memoryBase |
| U32 | freeIndex |
| Pointer to the first free byte of store memory. More... | |
| U32 | padSize |
| The amount of padding at the end of the store, added to allocations that otherwise would wrap around. More... | |
| U32 | allocatedSize |
| The total allocated size on the store. More... | |
| PRIVATE | __pad5__: class AllocationQueue { public: AllocationQueue(const U32 size) |
| PRIVATE | __pad6__: U32 getNextId(void) |
| PRIVATE | __pad7__: const U32 totalSize |
| Entry *const | data |
| PRIVATE | __pad8__: U32 nextId |
| U32 | allocateIndex |
| U32 | allocationSize |
| PRIVATE | __pad9__: Fw::Buffer bufferGetCallee_handler( NATIVE_INT_TYPE portNum |
| The port number. More... | |
| PRIVATE U32 | size |
| PRIVATE | __pad10__: Warnings warnings |
| Store | store |
| The store. More... | |
| AllocationQueue | allocationQueue |
| The allocation queue. More... | |
Public Attributes inherited from Svc::BufferManagerComponentBase | |
| PROTECTED | __pad0__: BufferManagerComponentBase(void) |
| PROTECTED | __pad1__: virtual void lock(void) |
| PROTECTED | __pad2__: virtual void bufferSendIn_handler( NATIVE_INT_TYPE portNum |
| PROTECTED Fw::Buffer & | fwBuffer = 0 |
| PROTECTED | __pad3__: void bufferSendIn_handlerBase( NATIVE_INT_TYPE portNum |
| PROTECTED | __pad4__: NATIVE_INT_TYPE getNum_bufferSendIn_InputPorts(void) |
| PROTECTED | __pad5__: NATIVE_INT_TYPE getNum_timeCaller_OutputPorts(void) |
| PROTECTED | __pad6__: bool isConnected_timeCaller_OutputPort( NATIVE_INT_TYPE portNum ) |
| PROTECTED | __pad7__: enum { EVENTID_CLEAREDERRORSTATE = 0x00 |
| PROTECTED | EVENTID_STORESIZEEXCEEDED = 0x01 |
| PROTECTED | EVENTID_TOOMANYBUFFERS = 0x02 |
| PROTECTED | PROTECTED: void log_ACTIVITY_HI_ClearedErrorState( void ) |
| PROTECTED | __pad8__: enum { CHANNELID_BUFFERMANAGER_NUMALLOCATEDBUFFERS = 0x00 |
| Channel ID for BufferManager_NumAllocatedBuffers. More... | |
| PROTECTED | CHANNELID_BUFFERMANAGER_ALLOCATEDSIZE = 0x01 |
| Channel ID for BufferManager_AllocatedSize. More... | |
| PROTECTED | __pad9__: Fw::Time getTime(void) |
| PRIVATE | __pad10__: Fw::InputBufferSendPort m_bufferSendIn_InputPort[NUM_BUFFERSENDIN_INPUT_PORTS] |
| Fw::InputBufferGetPort | m_bufferGetCallee_InputPort [NUM_BUFFERGETCALLEE_INPUT_PORTS] |
| PRIVATE | __pad11__: Fw::OutputTimePort m_timeCaller_OutputPort[NUM_TIMECALLER_OUTPUT_PORTS] |
| Fw::OutputLogPort | m_eventOut_OutputPort [NUM_EVENTOUT_OUTPUT_PORTS] |
| Fw::OutputTlmPort | m_tlmOut_OutputPort [NUM_TLMOUT_OUTPUT_PORTS] |
| PRIVATE | __pad12__: static void m_p_bufferSendIn_in( Fw::PassiveComponentBase* callComp |
| PRIVATE NATIVE_INT_TYPE | portNum |
| PRIVATE NATIVE_INT_TYPE Fw::Buffer & | fwBuffer |
| PRIVATE | __pad13__: Os::Mutex m_guardedPortMutex |
Public Attributes inherited from Fw::PassiveComponentBase | |
| PROTECTED | __pad0__: PassiveComponentBase(const char* name) |
| Named constructor. More... | |
| PRIVATE | __pad1__: U32 m_idBase |
| ID base for opcodes etc. More... | |
| NATIVE_INT_TYPE | m_instance |
| instance of component object More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from Svc::BufferManagerComponentBase | |
| static Fw::Buffer | m_p_bufferGetCallee_in (Fw::PassiveComponentBase *callComp, NATIVE_INT_TYPE portNum, U32 size) |
Protected Member Functions inherited from Fw::ObjBase | |
| ObjBase (const char *name) | |
| ObjBase constructor. More... | |
| virtual | ~ObjBase () |
| Destructor. More... | |
| void | init (void) |
| Object initializer. More... | |
Definition at line 20 of file BufferManager.hpp.
| Enumerator | |
|---|---|
| SUCCESS | |
| FAILURE | |
Definition at line 116 of file BufferManager.hpp.
| Svc::BufferManager::~Store | ( | void | ) |
| Svc::BufferManager::~AllocationQueue | ( | void | ) |
| Svc::BufferManager::BufferManager | ( | const char *const | compName, |
| const U32 | storeSize, | ||
| const U32 | maxNumBuffers | ||
| ) |
Construct object BufferManager
| compName | The component name |
Definition at line 247 of file BufferManager.cpp.
| Svc::BufferManager::~BufferManager | ( | void | ) |
Destroy object BufferManager
Definition at line 267 of file BufferManager.cpp.
| Allocate::Status Svc::BufferManager::allocate | ( | const U32 | size, |
| U32 & | id | ||
| ) |
| void Svc::BufferManager::bufferSendIn_handler | ( | const NATIVE_INT_TYPE | portNum, |
| Fw::Buffer & | buffer | ||
| ) |
Handler implementation for bufferSendIn
| portNum | The port number |
Definition at line 316 of file BufferManager.cpp.
| Free::Status Svc::BufferManager::free | ( | const U32 | expectedId, |
| U32 & | sawId, | ||
| U32 & | size | ||
| ) |
| void Svc::BufferManager::free | ( | const U32 | size, |
| U8 *const | address | ||
| ) |
| size | The allocation size |
| address | The allocation address |
| U32 Svc::BufferManager::getAllocatedSize | ( | void | ) | const |
| U32 Svc::BufferManager::getAllocationSize | ( | void | ) | const |
| U32 Svc::BufferManager::getNextIndex | ( | const U32 | index | ) |
| void Svc::BufferManager::init | ( | const NATIVE_INT_TYPE | instance | ) |
Initialize object BufferManager
| instance | The instance number |
Definition at line 261 of file BufferManager.cpp.
| void Svc::BufferManager::update | ( | const Status::t | status | ) |
Update the warning state.
| status | The status |
| Svc::BufferManager::Warnings | ( | BufferManager & | bufferManager | ) |
Construct a Warnings object.
| bufferManager | The enclosing BufferManager |
| PRIVATE Svc::BufferManager::__pad10__ |
Definition at line 329 of file BufferManager.hpp.
| PRIVATE Svc::BufferManager::__pad2__ |
Definition at line 78 of file BufferManager.hpp.
| PRIVATE Svc::BufferManager::__pad3__ |
Definition at line 88 of file BufferManager.hpp.
| PRIVATE Svc::BufferManager::__pad4__ |
Definition at line 139 of file BufferManager.hpp.
| PRIVATE Svc::BufferManager::__pad5__ |
Definition at line 166 of file BufferManager.hpp.
| PRIVATE Svc::BufferManager::__pad6__ |
Definition at line 241 of file BufferManager.hpp.
| PRIVATE Svc::BufferManager::__pad7__ |
Definition at line 253 of file BufferManager.hpp.
| PRIVATE Svc::BufferManager::__pad8__ |
Definition at line 265 of file BufferManager.hpp.
| PRIVATE Svc::BufferManager::__pad9__ |
The port number.
Definition at line 309 of file BufferManager.hpp.
| U32 Svc::BufferManager::allocatedSize |
The total allocated size on the store.
Definition at line 162 of file BufferManager.hpp.
| U32 Svc::BufferManager::allocateIndex |
Definition at line 275 of file BufferManager.hpp.
| AllocationQueue Svc::BufferManager::allocationQueue |
The allocation queue.
Definition at line 342 of file BufferManager.hpp.
| U32 Svc::BufferManager::allocationSize |
Definition at line 281 of file BufferManager.hpp.
| Entry* const Svc::BufferManager::data |
Definition at line 263 of file BufferManager.hpp.
| U32 Svc::BufferManager::freeIndex |
Pointer to the first free byte of store memory.
Definition at line 156 of file BufferManager.hpp.
| U8* const Svc::BufferManager::memoryBase |
Definition at line 149 of file BufferManager.hpp.
| U32 Svc::BufferManager::padSize |
The amount of padding at the end of the store, added to allocations that otherwise would wrap around.
Definition at line 159 of file BufferManager.hpp.
| PRIVATE U32 Svc::BufferManager::size |
Definition at line 319 of file BufferManager.hpp.
| State Svc::BufferManager::state |
The warning state.
Definition at line 84 of file BufferManager.hpp.
| Store Svc::BufferManager::store |
The store.
Definition at line 339 of file BufferManager.hpp.