F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
Toggle main menu visibility
Main Page
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
c
d
e
g
i
m
p
r
s
t
v
w
Variables
Typedefs
Enumerations
Enumerator
a
c
e
f
h
i
m
n
o
p
s
u
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
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
Typedefs
c
e
p
s
t
u
Enumerations
b
c
d
g
h
l
m
o
p
s
t
u
w
Enumerator
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
Related Symbols
a
b
c
d
f
g
h
l
p
r
s
t
u
v
Files
File List
File Members
All
_
a
b
c
d
f
g
h
i
l
m
n
p
q
r
s
t
u
v
Functions
c
i
m
s
u
Variables
b
c
d
i
p
s
Typedefs
b
c
d
f
i
m
n
p
q
r
s
t
u
Enumerations
Enumerator
a
b
c
d
f
g
h
p
r
s
t
Macros
_
a
c
d
f
h
l
m
p
r
s
u
v
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Loading...
Searching...
No Matches
PrmGetPortAc.cpp
Go to the documentation of this file.
1
// ======================================================================
2
// \title PrmGetPortAc.cpp
3
// \author Generated by fpp-to-cpp
4
// \brief cpp file for PrmGet port
5
// ======================================================================
6
7
#include "
F-Prime/Fw/Prm/PrmGetPortAc.hpp
"
8
#include "
Fw/Types/Assert.hpp
"
9
#include "
Fw/Types/ExternalString.hpp
"
10
11
namespace
Fw
{
12
13
// ----------------------------------------------------------------------
14
// Input Port Member functions
15
// ----------------------------------------------------------------------
16
17
InputPrmGetPort ::
18
InputPrmGetPort() :
19
Fw
::
InputPortBase
(),
20
m_func(nullptr)
21
{
22
23
}
17
InputPrmGetPort :: {
…
}
24
25
void
InputPrmGetPort ::
26
init()
27
{
28
Fw::InputPortBase::init
();
29
}
25
void
InputPrmGetPort :: {
…
}
30
31
void
InputPrmGetPort ::
32
addCallComp(
33
Fw::PassiveComponentBase
* callComp,
34
CompFuncPtr funcPtr
35
)
36
{
37
FW_ASSERT
(callComp !=
nullptr
);
38
FW_ASSERT
(funcPtr !=
nullptr
);
39
40
this->m_comp = callComp;
41
this->m_func = funcPtr;
42
this->m_connObj = callComp;
43
}
31
void
InputPrmGetPort :: {
…
}
44
45
Fw::ParamValid
InputPrmGetPort ::
46
invoke(
47
FwPrmIdType
id
,
48
Fw::ParamBuffer
& val
49
)
50
{
51
#if FW_PORT_TRACING == 1
52
this->trace();
53
#endif
54
55
FW_ASSERT
(this->m_comp !=
nullptr
);
56
FW_ASSERT
(this->m_func !=
nullptr
);
57
58
return
this->m_func(this->m_comp, this->m_portNum,
id
, val);
59
}
45
Fw::ParamValid
InputPrmGetPort :: {
…
}
60
61
#if FW_PORT_SERIALIZATION == 1
62
63
Fw::SerializeStatus
InputPrmGetPort ::
64
invokeSerial(
Fw::SerializeBufferBase
& _buffer)
65
{
66
// For ports with a return type, invokeSerial is not used
67
(void) _buffer;
68
69
FW_ASSERT
(0);
70
return
Fw::FW_SERIALIZE_OK
;
71
}
72
73
#endif
74
75
// ----------------------------------------------------------------------
76
// Output Port Member functions
77
// ----------------------------------------------------------------------
78
79
OutputPrmGetPort ::
80
OutputPrmGetPort() :
81
Fw
::
OutputPortBase
(),
82
m_port(nullptr)
83
{
84
85
}
79
OutputPrmGetPort :: {
…
}
86
87
void
OutputPrmGetPort ::
88
init()
89
{
90
Fw::OutputPortBase::init
();
91
}
87
void
OutputPrmGetPort :: {
…
}
92
93
void
OutputPrmGetPort ::
94
addCallPort(
InputPrmGetPort
* callPort)
95
{
96
FW_ASSERT
(callPort !=
nullptr
);
97
98
this->m_port = callPort;
99
this->m_connObj = callPort;
100
101
#if FW_PORT_SERIALIZATION == 1
102
this->m_serPort =
nullptr
;
103
#endif
104
}
93
void
OutputPrmGetPort :: {
…
}
105
106
Fw::ParamValid
OutputPrmGetPort ::
107
invoke(
108
FwPrmIdType
id
,
109
Fw::ParamBuffer
& val
110
)
const
111
{
112
#if FW_PORT_TRACING == 1
113
this->trace();
114
#endif
115
116
FW_ASSERT
(this->m_port !=
nullptr
);
117
return
this->m_port->invoke(
id
, val);
118
}
106
Fw::ParamValid
OutputPrmGetPort :: {
…
}
119
120
}
Assert.hpp
FW_ASSERT
#define FW_ASSERT(...)
Definition
Assert.hpp:14
ExternalString.hpp
FwPrmIdType
U32 FwPrmIdType
Definition
FpConfig.h:107
PrmGetPortAc.hpp
Fw::InputPortBase
Definition
InputPortBase.hpp:12
Fw::InputPortBase::init
virtual void init()
Definition
InputPortBase.cpp:18
Fw::InputPrmGetPort
Definition
PrmGetPortAc.hpp:27
Fw::OutputPortBase
Definition
OutputPortBase.hpp:11
Fw::OutputPortBase::init
virtual void init()
Definition
OutputPortBase.cpp:21
Fw::ParamBuffer
Definition
PrmBuffer.hpp:27
Fw::ParamValid
Enum representing parameter validity.
Definition
ParamValidEnumAc.hpp:19
Fw::PassiveComponentBase
Definition
PassiveComponentBase.hpp:10
Fw::SerializeBufferBase
Definition
Serializable.hpp:54
Fw
Definition
FppConstantsAc.hpp:121
Fw::SerializeStatus
SerializeStatus
forward declaration for string
Definition
Serializable.hpp:14
Fw::FW_SERIALIZE_OK
@ FW_SERIALIZE_OK
Serialization/Deserialization operation was successful.
Definition
Serializable.hpp:15
Fw
Prm
PrmGetPortAc.cpp
Generated by
1.9.8