F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
ReadyPortAc.hpp
Go to the documentation of this file.
1
// ======================================================================
2
// \title ReadyPortAc.hpp
3
// \author Generated by fpp-to-cpp
4
// \brief hpp file for Ready port
5
// ======================================================================
6
7
#ifndef Fw_ReadyPortAc_HPP
8
#define Fw_ReadyPortAc_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
37
class
InputReadyPort
:
38
public
Fw::InputPortBase
39
{
40
41
public
:
42
43
// ----------------------------------------------------------------------
44
// Constants
45
// ----------------------------------------------------------------------
46
47
enum
{
49
SERIALIZED_SIZE
= 0
50
};
51
52
public
:
53
54
// ----------------------------------------------------------------------
55
// Types
56
// ----------------------------------------------------------------------
57
59
typedef
void (*
CompFuncPtr
)(
60
Fw::PassiveComponentBase
* callComp,
61
FwIndexType
portNum
62
);
63
64
public
:
65
66
// ----------------------------------------------------------------------
67
// Input Port Member functions
68
// ----------------------------------------------------------------------
69
71
InputReadyPort
();
72
74
void
init
();
75
77
void
addCallComp
(
78
Fw::PassiveComponentBase
* callComp,
79
CompFuncPtr
funcPtr
80
);
81
83
void
invoke
();
84
85
private
:
86
87
#if FW_PORT_SERIALIZATION == 1
88
90
Fw::SerializeStatus
invokeSerial(
Fw::SerializeBufferBase
& _buffer);
91
92
#endif
93
94
private
:
95
96
// ----------------------------------------------------------------------
97
// Member variables
98
// ----------------------------------------------------------------------
99
101
CompFuncPtr
m_func;
102
103
};
104
120
class
OutputReadyPort
:
121
public
Fw::OutputPortBase
122
{
123
124
public
:
125
126
// ----------------------------------------------------------------------
127
// Output Port Member functions
128
// ----------------------------------------------------------------------
129
131
OutputReadyPort
();
132
134
void
init
();
135
137
void
addCallPort
(
138
InputReadyPort
* callPort
139
);
140
142
void
invoke
()
const
;
143
144
private
:
145
146
// ----------------------------------------------------------------------
147
// Member variables
148
// ----------------------------------------------------------------------
149
151
InputReadyPort
* m_port;
152
153
};
154
155
}
156
157
#endif
Fw::OutputReadyPort::init
void init()
Initialization function.
Definition:
ReadyPortAc.cpp:118
Fw::PassiveComponentBase
Definition:
PassiveComponentBase.hpp:10
String.hpp
Fw::InputReadyPort::addCallComp
void addCallComp(Fw::PassiveComponentBase *callComp, CompFuncPtr funcPtr)
Register a component.
Definition:
ReadyPortAc.cpp:58
PassiveComponentBase.hpp
FPrimeBasicTypes.hpp
Fw::InputReadyPort::init
void init()
Initialization function.
Definition:
ReadyPortAc.cpp:52
InputPortBase.hpp
Fw::SerializeStatus
SerializeStatus
forward declaration for string
Definition:
Serializable.hpp:14
Fw::OutputReadyPort
Definition:
ReadyPortAc.hpp:120
Fw::InputReadyPort::CompFuncPtr
void(* CompFuncPtr)(Fw::PassiveComponentBase *callComp, FwIndexType portNum)
The port callback function type.
Definition:
ReadyPortAc.hpp:59
Fw::InputReadyPort::invoke
void invoke()
Invoke a port interface.
Definition:
ReadyPortAc.cpp:72
Fw::SerializeBufferBase
Definition:
Serializable.hpp:54
Fw::InputReadyPort
Definition:
ReadyPortAc.hpp:37
OutputPortBase.hpp
Fw::InputReadyPort::InputReadyPort
InputReadyPort()
Constructor.
Definition:
ReadyPortAc.cpp:44
FwIndexType
PlatformIndexType FwIndexType
Definition:
FwIndexTypeAliasAc.h:15
Fw::OutputReadyPort::OutputReadyPort
OutputReadyPort()
Constructor.
Definition:
ReadyPortAc.cpp:110
Fw::OutputPortBase
Definition:
OutputPortBase.hpp:11
Fw::OutputReadyPort::addCallPort
void addCallPort(InputReadyPort *callPort)
Register an input port.
Definition:
ReadyPortAc.cpp:124
Fw
Definition:
FppConstantsAc.hpp:121
Fw::OutputReadyPort::invoke
void invoke() const
Invoke a port interface.
Definition:
ReadyPortAc.cpp:137
Fw::InputReadyPort::SERIALIZED_SIZE
The size of the serial representations of the port arguments.
Definition:
ReadyPortAc.hpp:49
Fw::InputPortBase
Definition:
InputPortBase.hpp:12
Serializable.hpp
Fw
Ports
Ready
ReadyPortAc.hpp
Generated by
1.8.14