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 "
Svc/StaticMemory/StaticMemoryComponentAc.hpp
"
17
#include "config/StaticMemoryConfig.hpp"
18
19
namespace
Svc
{
20
21
class
StaticMemoryComponentImpl
final :
public
StaticMemoryComponentBase
{
22
friend
class
StaticMemoryTester
;
23
24
public
:
25
// ----------------------------------------------------------------------
26
// Construction, initialization, and destruction
27
// ----------------------------------------------------------------------
28
31
StaticMemoryComponentImpl
(
const
char
*
const
compName
32
);
33
36
~StaticMemoryComponentImpl
();
37
38
private
:
39
// ----------------------------------------------------------------------
40
// Handler implementations for user-defined typed input ports
41
// ----------------------------------------------------------------------
42
45
void
bufferDeallocate_handler(
const
FwIndexType
portNum,
46
Fw::Buffer
& fwBuffer);
47
50
Fw::Buffer
bufferAllocate_handler(
const
FwIndexType
portNum,
51
FwSizeType
size);
52
53
bool
m_allocated[
NUM_BUFFERALLOCATE_INPUT_PORTS
];
54
U8
m_static_memory[
NUM_BUFFERALLOCATE_INPUT_PORTS
][
STATIC_MEMORY_ALLOCATION_SIZE
];
55
};
56
57
}
// end namespace Svc
58
59
#endif
FwSizeType
PlatformSizeType FwSizeType
Definition:
FwSizeTypeAliasAc.h:15
Svc::StaticMemoryComponentImpl::StaticMemoryTester
friend class StaticMemoryTester
Definition:
StaticMemoryComponentImpl.hpp:22
StaticMemoryComponentAc.hpp
Svc::STATIC_MEMORY_ALLOCATION_SIZE
Definition:
StaticMemoryConfig.hpp:12
U8
uint8_t U8
8-bit unsigned integer
Definition:
BasicTypes.h:53
Svc::StaticMemoryComponentImpl::~StaticMemoryComponentImpl
~StaticMemoryComponentImpl()
Definition:
StaticMemoryComponentImpl.cpp:34
FwIndexType
PlatformIndexType FwIndexType
Definition:
FwIndexTypeAliasAc.h:15
Svc::StaticMemoryComponentBase::NUM_BUFFERALLOCATE_INPUT_PORTS
Definition:
StaticMemoryComponentAc.hpp:45
Svc
RateGroupDivider component implementation.
Definition:
ActiveRateGroupCfg.hpp:18
Svc::StaticMemoryComponentBase
Auto-generated base for StaticMemory component.
Definition:
StaticMemoryComponentAc.hpp:24
Svc::StaticMemoryComponentImpl::StaticMemoryComponentImpl
StaticMemoryComponentImpl(const char *const compName)
Definition:
StaticMemoryComponentImpl.cpp:23
Fw::Buffer
Definition:
Buffer.hpp:47
Svc::StaticMemoryComponentImpl
Definition:
StaticMemoryComponentImpl.hpp:21
Svc
StaticMemory
StaticMemoryComponentImpl.hpp
Generated by
1.8.14