F´ Flight Software - C/C++ Documentation
devel
A framework for building embedded system applications to NASA flight quality standards.
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
z
Functions
a
b
c
d
g
h
i
m
o
p
r
s
t
v
w
Variables
Typedefs
a
b
c
d
e
f
g
h
l
o
p
r
s
t
u
w
Enumerations
Enumerator
a
b
c
f
h
i
n
o
p
s
v
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
w
Typedefs
c
e
s
t
u
w
Enumerations
b
c
d
g
h
m
o
q
s
t
u
w
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Related Symbols
a
b
c
d
f
g
h
l
p
r
s
t
u
Files
File List
File Members
All
_
a
b
c
d
f
g
h
i
l
m
n
p
r
s
t
u
v
Functions
c
i
m
p
s
u
Variables
_
b
c
f
i
l
p
r
s
Typedefs
b
c
f
i
n
p
s
u
Enumerations
Enumerator
a
b
c
d
f
g
h
p
r
s
t
Macros
_
a
c
d
f
g
h
i
l
m
p
r
s
t
u
v
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
PrmDbImpl.hpp
Go to the documentation of this file.
1
13
#ifndef PRMDBIMPL_HPP_
14
#define PRMDBIMPL_HPP_
15
16
#include <
Svc/PrmDb/PrmDbComponentAc.hpp
>
17
#include <
PrmDbImplCfg.hpp
>
18
#include <
Fw/Types/String.hpp
>
19
#include <
Os/Mutex.hpp
>
20
21
namespace
Svc
{
22
29
30
class
PrmDbImpl
:
public
PrmDbComponentBase
{
31
public
:
32
33
friend
class
PrmDbImplTester
;
34
42
PrmDbImpl
(
const
char
* name);
43
51
52
void
init
(
NATIVE_INT_TYPE
queueDepth,
NATIVE_INT_TYPE
instance);
53
59
void
configure
(
const
char
* file);
60
61
67
void
readParamFile
();
// NOTE: Assumed to run at initialization time. No guard of data structure.
68
71
virtual
~PrmDbImpl
();
72
protected
:
73
private
:
82
Fw::ParamValid
getPrm_handler(
NATIVE_INT_TYPE
portNum,
FwPrmIdType
id
,
Fw::ParamBuffer
&val);
91
void
setPrm_handler(
NATIVE_INT_TYPE
portNum,
FwPrmIdType
id
,
Fw::ParamBuffer
&val);
92
101
102
void
pingIn_handler(
NATIVE_INT_TYPE
portNum, U32 key);
111
void
PRM_SAVE_FILE_cmdHandler(
FwOpcodeType
opCode, U32 cmdSeq);
112
117
118
void
clearDb();
119
120
Fw::String
m_fileName;
121
122
struct
t_dbStruct {
123
bool
used;
124
FwPrmIdType
id;
125
Fw::ParamBuffer
val;
126
} m_db[PRMDB_NUM_DB_ENTRIES];
127
128
};
30
class
PrmDbImpl
:
public
PrmDbComponentBase
{
…
};
129
}
130
131
#endif
/* PRMDBIMPL_HPP_ */
NATIVE_INT_TYPE
PlatformIntType NATIVE_INT_TYPE
Definition
BasicTypes.h:51
FwOpcodeType
U32 FwOpcodeType
Definition
FpConfig.h:56
FwPrmIdType
U32 FwPrmIdType
Definition
FpConfig.h:65
Mutex.hpp
PrmDbComponentAc.hpp
PrmDbImplCfg.hpp
String.hpp
Fw::ObjBase::init
void init()
Object initializer.
Definition
ObjBase.cpp:27
Fw::ParamBuffer
Definition
PrmBuffer.hpp:21
Fw::ParamValid
Enum representing parameter validity.
Definition
ParamValidEnumAc.hpp:19
Fw::String
Definition
String.hpp:10
Svc::PrmDbComponentBase
Auto-generated base for PrmDb component.
Definition
PrmDbComponentAc.hpp:39
Svc::PrmDbImpl
Component class for managing parameters.
Definition
PrmDbImpl.hpp:30
Svc::PrmDbImpl::readParamFile
void readParamFile()
PrmDb file read function.
Definition
PrmDbImpl.cpp:246
Svc::PrmDbImpl::~PrmDbImpl
virtual ~PrmDbImpl()
PrmDb destructor.
Definition
PrmDbImpl.cpp:243
Svc::PrmDbImpl::PrmDbImpl
PrmDbImpl(const char *name)
PrmDb constructor.
Definition
PrmDbImpl.cpp:44
Svc::PrmDbImpl::configure
void configure(const char *file)
PrmDb configure method.
Definition
PrmDbImpl.cpp:48
Svc::PrmDbImpl::PrmDbImplTester
friend class PrmDbImplTester
Definition
PrmDbImpl.hpp:33
Svc
Definition
ActiveRateGroupCfg.hpp:18
Svc
PrmDb
PrmDbImpl.hpp
Generated by
1.10.0