F´ Flight Software - C/C++ Documentation
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 "config/StaticMemoryConfig.hpp"
18 
19 namespace Svc {
20 
22 
23  friend class StaticMemoryTester;
24 
25  public:
26  // ----------------------------------------------------------------------
27  // Construction, initialization, and destruction
28  // ----------------------------------------------------------------------
29 
32  StaticMemoryComponentImpl(const char* const compName
33  );
34 
38 
39  private:
40 
41  // ----------------------------------------------------------------------
42  // Handler implementations for user-defined typed input ports
43  // ----------------------------------------------------------------------
44 
47  void bufferDeallocate_handler(const FwIndexType portNum,
48  Fw::Buffer& fwBuffer);
49 
52  Fw::Buffer bufferAllocate_handler(const FwIndexType portNum,
53  U32 size);
54 
55  bool m_allocated[NUM_BUFFERALLOCATE_INPUT_PORTS];
57 };
58 
59 } // end namespace Svc
60 
61 #endif
uint8_t U8
8-bit unsigned integer
Definition: BasicTypes.h:56
PlatformIndexType FwIndexType
RateGroupDivider component implementation.
Auto-generated base for StaticMemory component.
StaticMemoryComponentImpl(const char *const compName)