F´ Flight Software - C/C++ Documentation  devel
A framework for building embedded system applications to NASA flight quality standards.
StaticMemoryComponentImpl.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title StaticMemoryComponentImpl.hpp
3 // \author mstarch
4 // \brief hpp file for StaticMemory component implementation class
5 //
6 // \copyright
7 // Copyright 2009-2015, by the California Institute of Technology.
8 // ALL RIGHTS RESERVED. United States Government Sponsorship
9 // acknowledged.
10 //
11 // ======================================================================
12 
13 #ifndef StaticMemory_HPP
14 #define StaticMemory_HPP
15 
16 #include "StaticMemoryConfig.hpp"
18 
19 namespace Svc {
20 
22  public:
23  // ----------------------------------------------------------------------
24  // Construction, initialization, and destruction
25  // ----------------------------------------------------------------------
26 
29  StaticMemoryComponentImpl(const char* const compName
30  );
31 
34  void init(const NATIVE_INT_TYPE instance = 0
35  );
36 
40 
41  PRIVATE:
42 
43  // ----------------------------------------------------------------------
44  // Handler implementations for user-defined typed input ports
45  // ----------------------------------------------------------------------
46 
49  void bufferDeallocate_handler(const NATIVE_INT_TYPE portNum,
50  Fw::Buffer& fwBuffer);
51 
54  Fw::Buffer bufferAllocate_handler(const NATIVE_INT_TYPE portNum,
55  U32 size);
56 
57  bool m_allocated[NUM_BUFFERALLOCATE_INPUT_PORTS];
59 };
60 
61 } // end namespace Svc
62 
63 #endif
PlatformIntType NATIVE_INT_TYPE
Definition: BasicTypes.h:51
uint8_t U8
8-bit unsigned integer
Definition: BasicTypes.h:26
void init()
Object initializer.
Definition: ObjBase.cpp:27
Auto-generated base for StaticMemory component.
StaticMemoryComponentImpl(const char *const compName)
@ STATIC_MEMORY_ALLOCATION_SIZE