F´ Flight Software - C/C++ Documentation
NASA-v1.5.0
A framework for building embedded system applications to NASA flight quality standards.
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Functions
a
b
c
d
g
h
i
m
r
s
t
v
w
Variables
Typedefs
Enumerations
Enumerator
a
b
c
f
h
i
l
m
n
o
p
s
t
v
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
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
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Typedefs
c
t
u
w
Enumerations
b
c
d
e
f
g
h
i
m
o
p
q
s
t
w
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
w
Related Functions
a
b
c
f
g
h
l
p
r
s
t
Files
File List
File Members
All
_
a
b
c
d
f
g
h
i
k
l
m
n
p
r
s
t
u
v
w
Functions
f
i
m
s
u
Variables
_
c
f
i
l
p
t
Typedefs
Enumerations
Enumerator
a
c
d
f
i
m
p
r
s
t
w
Macros
a
c
d
f
g
h
i
k
l
m
n
p
r
s
t
u
v
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
ComSplitterComponentAc.hpp
Go to the documentation of this file.
1
// ======================================================================
2
// \title ComSplitterComponentAc.hpp
3
// \author Auto-generated
4
// \brief hpp file for ComSplitter component base 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 COMSPLITTER_COMP_HPP_
14
#define COMSPLITTER_COMP_HPP_
15
16
#include <
FpConfig.hpp
>
17
#include <
Fw/Port/InputSerializePort.hpp
>
18
#include <
Fw/Port/OutputSerializePort.hpp
>
19
#include <
Fw/Comp/ActiveComponentBase.hpp
>
20
#include <
Fw/Com/ComBuffer.hpp
>
21
#include <
Fw/Com/ComPortAc.hpp
>
22
23
namespace
Svc
{
24
28
class
ComSplitterComponentBase
:
29
public
Fw::PassiveComponentBase
30
{
31
32
// ----------------------------------------------------------------------
33
// Friend classes
34
// ----------------------------------------------------------------------
35
38
friend
class
ComSplitterComponentBaseFriend
;
39
40
public
:
41
42
// ----------------------------------------------------------------------
43
// Getters for typed input ports
44
// ----------------------------------------------------------------------
45
50
Fw::InputComPort
*
get_comIn_InputPort
(
51
NATIVE_INT_TYPE
portNum
52
);
53
54
public
:
55
56
// ----------------------------------------------------------------------
57
// Connect typed input ports to typed output ports
58
// ----------------------------------------------------------------------
59
62
void
set_comOut_OutputPort
(
63
NATIVE_INT_TYPE
portNum
,
64
Fw::InputComPort
*port
65
);
66
67
#if FW_PORT_SERIALIZATION
68
69
public
:
70
71
// ----------------------------------------------------------------------
72
// Connect serialization input ports to typed output ports
73
// ----------------------------------------------------------------------
74
77
void
set_comOut_OutputPort
(
78
NATIVE_INT_TYPE
portNum
,
79
Fw::InputSerializePort *port
80
);
81
82
#endif
83
84
PROTECTED
:
85
86
// ----------------------------------------------------------------------
87
// Component construction, initialization, and destruction
88
// ----------------------------------------------------------------------
89
90
#if FW_OBJECT_NAMES == 1
91
ComSplitterComponentBase
(
94
const
char
* compName
95
);
96
#else
97
ComSplitterComponentBase
(
void
);
100
#endif
101
104
void
init
(
105
NATIVE_INT_TYPE
instance = 0
106
);
107
110
virtual
~ComSplitterComponentBase
(
void
);
111
112
PROTECTED
:
113
114
// ----------------------------------------------------------------------
115
// Handlers to implement for typed input ports
116
// ----------------------------------------------------------------------
117
119
//
120
virtual
void
comIn_handler(
121
NATIVE_INT_TYPE
portNum
,
122
Fw::ComBuffer
&
data
,
123
U32
context
124
) = 0;
125
126
PROTECTED
:
127
128
// ----------------------------------------------------------------------
129
// Port handler base-class functions for typed input ports.
130
// ----------------------------------------------------------------------
131
// Call these functions directly to bypass the corresponding ports.
132
// ----------------------------------------------------------------------
133
136
void
comIn_handlerBase(
137
NATIVE_INT_TYPE
portNum
,
138
Fw::ComBuffer
&
data
,
139
U32
context
140
);
141
142
PROTECTED
:
143
144
// ----------------------------------------------------------------------
145
// Invocation functions for typed output ports
146
// ----------------------------------------------------------------------
147
150
void
comOut_out(
151
NATIVE_INT_TYPE
portNum
,
152
Fw::ComBuffer
&
data
,
153
U32
context
154
);
155
156
PROTECTED
:
157
158
// ----------------------------------------------------------------------
159
// Getters for numbers of input ports
160
// ----------------------------------------------------------------------
161
166
NATIVE_INT_TYPE
getNum_comIn_InputPorts(
void
);
167
168
169
// ----------------------------------------------------------------------
170
// Enumerations for number of ports
171
// ----------------------------------------------------------------------
172
173
enum
{
174
NUM_COMIN_INPUT_PORTS
= 1,
175
};
176
177
PROTECTED
:
178
179
// ----------------------------------------------------------------------
180
// Getters for numbers of output ports
181
// ----------------------------------------------------------------------
182
187
NATIVE_INT_TYPE
getNum_comOut_OutputPorts(
void
);
188
189
190
enum
{
191
NUM_COMOUT_OUTPUT_PORTS
= 5,
192
};
193
194
PROTECTED
:
195
196
// ----------------------------------------------------------------------
197
// Connection status queries for output ports
198
// ----------------------------------------------------------------------
199
204
bool
isConnected_comOut_OutputPort(
205
NATIVE_INT_TYPE
portNum
206
);
207
208
PROTECTED
:
209
210
// ----------------------------------------------------------------------
211
// Event logging functions
212
// ----------------------------------------------------------------------
213
214
215
PRIVATE
:
216
217
// ----------------------------------------------------------------------
218
// Typed input ports
219
// ----------------------------------------------------------------------
220
223
Fw::InputComPort
m_comIn_InputPort[
NUM_COMIN_INPUT_PORTS
];
224
225
PRIVATE
:
226
227
// ----------------------------------------------------------------------
228
// Typed output ports
229
// ----------------------------------------------------------------------
230
233
Fw::OutputComPort
m_comOut_OutputPort[
NUM_COMOUT_OUTPUT_PORTS
];
234
235
PRIVATE
:
236
237
// ----------------------------------------------------------------------
238
// Calls for messages received on typed input ports
239
// ----------------------------------------------------------------------
240
243
static
void
m_p_comIn_in(
244
Fw::PassiveComponentBase
* callComp,
245
NATIVE_INT_TYPE
portNum
,
246
Fw::ComBuffer
&
data
,
247
U32
context
248
);
249
250
251
252
};
253
254
}
// end namespace Svc
255
#endif
Svc::ComSplitterComponentBase
Auto-generated base for ComSplitter component.
Definition:
ComSplitterComponentAc.hpp:30
Svc::ComSplitterComponentBase::NUM_COMIN_INPUT_PORTS
@ NUM_COMIN_INPUT_PORTS
Definition:
ComSplitterComponentAc.hpp:174
PRIVATE
#define PRIVATE
overridable private for unit testing
Definition:
BasicTypes.hpp:118
Svc::ComSplitterComponentBase::set_comOut_OutputPort
void set_comOut_OutputPort(NATIVE_INT_TYPE portNum, Fw::InputComPort *port)
Definition:
ComSplitterComponentAc.cpp:40
ComBuffer.hpp
PROTECTED
#define PROTECTED
overridable protected for unit testing
Definition:
BasicTypes.hpp:114
InputSerializePort.hpp
ComPortAc.hpp
Fw::InputComPort
Definition:
ComPortAc.hpp:28
Svc::ComSplitterComponentBase::data
PROTECTED Fw::ComBuffer & data
Definition:
ComSplitterComponentAc.hpp:122
Fw::PassiveComponentBase
Definition:
PassiveComponentBase.hpp:10
Fw::ObjBase::init
void init(void)
Object initializer.
Definition:
ObjBase.cpp:26
Svc::ComSplitterComponentBase::ComSplitterComponentBaseFriend
friend class ComSplitterComponentBaseFriend
Definition:
ComSplitterComponentAc.hpp:38
ActiveComponentBase.hpp
Svc::ComSplitterComponentBase::NUM_COMOUT_OUTPUT_PORTS
@ NUM_COMOUT_OUTPUT_PORTS
Definition:
ComSplitterComponentAc.hpp:191
Fw::OutputComPort
Definition:
ComPortAc.hpp:49
Svc::ComSplitterComponentBase::get_comIn_InputPort
Fw::InputComPort * get_comIn_InputPort(NATIVE_INT_TYPE portNum)
Definition:
ComSplitterComponentAc.cpp:29
FpConfig.hpp
ISF configuration file.
Svc
Definition:
ActiveLoggerComponentAc.cpp:22
Svc::ComSplitterComponentBase::portNum
PRIVATE NATIVE_INT_TYPE portNum
Definition:
ComSplitterComponentAc.hpp:245
Svc::ComSplitterComponentBase::context
PROTECTED Fw::ComBuffer U32 context
Definition:
ComSplitterComponentAc.hpp:124
Svc::ComSplitterComponentBase::~ComSplitterComponentBase
virtual ~ComSplitterComponentBase(void)
Definition:
ComSplitterComponentAc.cpp:147
NATIVE_INT_TYPE
int NATIVE_INT_TYPE
native integer type declaration
Definition:
BasicTypes.hpp:29
Fw::ComBuffer
Definition:
ComBuffer.hpp:21
OutputSerializePort.hpp
build-fprime-automatic-native
F-Prime
Svc
ComSplitter
ComSplitterComponentAc.hpp
Generated by
1.8.19