F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
SignalPortAc.hpp
Go to the documentation of this file.
1
// ======================================================================
2
// \title SignalPortAc.hpp
3
// \author Generated by fpp-to-cpp
4
// \brief hpp file for Signal port
5
// ======================================================================
6
7
#ifndef Fw_SignalPortAc_HPP
8
#define Fw_SignalPortAc_HPP
9
10
#include <cstdio>
11
#include <cstring>
12
13
#include "
Fw/Comp/PassiveComponentBase.hpp
"
14
#include "
Fw/FPrimeBasicTypes.hpp
"
15
#include "
Fw/Port/InputPortBase.hpp
"
16
#include "
Fw/Port/OutputPortBase.hpp
"
17
#include "
Fw/Types/Serializable.hpp
"
18
#include "
Fw/Types/String.hpp
"
19
20
namespace
Fw
{
21
24
class
InputSignalPort
:
25
public
Fw::InputPortBase
26
{
27
28
public
:
29
30
// ----------------------------------------------------------------------
31
// Constants
32
// ----------------------------------------------------------------------
33
34
enum
{
36
SERIALIZED_SIZE
= 0
37
};
38
39
public
:
40
41
// ----------------------------------------------------------------------
42
// Types
43
// ----------------------------------------------------------------------
44
46
typedef
void (*
CompFuncPtr
)(
47
Fw::PassiveComponentBase
* callComp,
48
FwIndexType
portNum
49
);
50
51
public
:
52
53
// ----------------------------------------------------------------------
54
// Input Port Member functions
55
// ----------------------------------------------------------------------
56
58
InputSignalPort
();
59
61
void
init
();
62
64
void
addCallComp
(
65
Fw::PassiveComponentBase
* callComp,
66
CompFuncPtr
funcPtr
67
);
68
70
void
invoke
();
71
72
private
:
73
74
#if FW_PORT_SERIALIZATION == 1
75
77
Fw::SerializeStatus
invokeSerial(
Fw::SerializeBufferBase
& _buffer);
78
79
#endif
80
81
private
:
82
83
// ----------------------------------------------------------------------
84
// Member variables
85
// ----------------------------------------------------------------------
86
88
CompFuncPtr
m_func;
89
90
};
91
94
class
OutputSignalPort
:
95
public
Fw::OutputPortBase
96
{
97
98
public
:
99
100
// ----------------------------------------------------------------------
101
// Output Port Member functions
102
// ----------------------------------------------------------------------
103
105
OutputSignalPort
();
106
108
void
init
();
109
111
void
addCallPort
(
112
InputSignalPort
* callPort
113
);
114
116
void
invoke
()
const
;
117
118
private
:
119
120
// ----------------------------------------------------------------------
121
// Member variables
122
// ----------------------------------------------------------------------
123
125
InputSignalPort
* m_port;
126
127
};
128
129
}
130
131
#endif
Fw::PassiveComponentBase
Definition:
PassiveComponentBase.hpp:10
Fw::InputSignalPort::SERIALIZED_SIZE
The size of the serial representations of the port arguments.
Definition:
SignalPortAc.hpp:36
String.hpp
PassiveComponentBase.hpp
FPrimeBasicTypes.hpp
InputPortBase.hpp
Fw::SerializeStatus
SerializeStatus
forward declaration for string
Definition:
Serializable.hpp:14
Fw::OutputSignalPort::OutputSignalPort
OutputSignalPort()
Constructor.
Definition:
SignalPortAc.cpp:110
Fw::InputSignalPort::invoke
void invoke()
Invoke a port interface.
Definition:
SignalPortAc.cpp:72
Fw::InputSignalPort::init
void init()
Initialization function.
Definition:
SignalPortAc.cpp:52
Fw::SerializeBufferBase
Definition:
Serializable.hpp:54
Fw::InputSignalPort::addCallComp
void addCallComp(Fw::PassiveComponentBase *callComp, CompFuncPtr funcPtr)
Register a component.
Definition:
SignalPortAc.cpp:58
OutputPortBase.hpp
Fw::OutputSignalPort
Definition:
SignalPortAc.hpp:94
Fw::InputSignalPort::CompFuncPtr
void(* CompFuncPtr)(Fw::PassiveComponentBase *callComp, FwIndexType portNum)
The port callback function type.
Definition:
SignalPortAc.hpp:46
Fw::OutputSignalPort::init
void init()
Initialization function.
Definition:
SignalPortAc.cpp:118
Fw::OutputSignalPort::invoke
void invoke() const
Invoke a port interface.
Definition:
SignalPortAc.cpp:137
Fw::OutputSignalPort::addCallPort
void addCallPort(InputSignalPort *callPort)
Register an input port.
Definition:
SignalPortAc.cpp:124
Fw::InputSignalPort
Definition:
SignalPortAc.hpp:24
FwIndexType
PlatformIndexType FwIndexType
Definition:
FwIndexTypeAliasAc.h:15
Fw::InputSignalPort::InputSignalPort
InputSignalPort()
Constructor.
Definition:
SignalPortAc.cpp:44
Fw::OutputPortBase
Definition:
OutputPortBase.hpp:11
Fw
Definition:
FppConstantsAc.hpp:121
Fw::InputPortBase
Definition:
InputPortBase.hpp:12
Serializable.hpp
Fw
Ports
Signal
SignalPortAc.hpp
Generated by
1.8.14