F´ Flight Software - C/C++ Documentation
NASA-v2.0.1
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
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
b
d
e
f
g
h
i
l
m
n
p
q
s
t
u
v
w
Typedefs
Enumerations
Enumerator
a
b
c
d
e
f
g
h
l
m
n
o
p
q
r
s
t
w
Related Functions
Files
File List
File Members
All
_
a
b
c
d
f
g
h
i
k
l
m
n
p
r
s
t
u
v
Functions
f
i
m
s
u
Variables
Typedefs
Enumerations
Enumerator
c
d
f
m
p
r
s
t
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
ComSplitter.cpp
Go to the documentation of this file.
1
// ----------------------------------------------------------------------
2
//
3
// ComSplitter.cpp
4
//
5
// ----------------------------------------------------------------------
6
7
#include <
Svc/ComSplitter/ComSplitter.hpp
>
8
#include "
Fw/Types/BasicTypes.hpp
"
9
10
namespace
Svc
{
11
12
// ----------------------------------------------------------------------
13
// Construction, initialization, and destruction
14
// ----------------------------------------------------------------------
15
16
ComSplitter ::
17
ComSplitter
(
const
char
* compName) :
18
ComSplitterComponentBase(compName)
19
{
20
21
}
22
23
ComSplitter ::
24
~ComSplitter
(
void
)
25
{
26
27
}
28
29
void
ComSplitter ::
30
init
(
NATIVE_INT_TYPE
instance)
31
{
32
ComSplitterComponentBase::init(instance);
33
}
34
35
// ----------------------------------------------------------------------
36
// Handler implementations
37
// ----------------------------------------------------------------------
38
39
void
ComSplitter ::
40
comIn_handler(
41
NATIVE_INT_TYPE
portNum,
42
Fw::ComBuffer
&data,
43
U32 context
44
)
45
{
46
FW_ASSERT
(portNum == 0);
47
48
NATIVE_INT_TYPE
numPorts = getNum_comOut_OutputPorts();
49
FW_ASSERT
(numPorts > 0);
50
51
for
(
NATIVE_INT_TYPE
i = 0; i < numPorts; i++) {
52
if
( isConnected_comOut_OutputPort(i) ) {
53
// Need to make a copy because we are passing by reference!:
54
Fw::ComBuffer
dataToSend = data;
55
comOut_out(i, dataToSend, 0);
56
}
57
}
58
}
59
60
};
ComSplitter.hpp
Svc::ComSplitter::~ComSplitter
~ComSplitter(void)
Definition:
ComSplitter.cpp:24
Svc::ComSplitter::ComSplitter
ComSplitter(const char *compName)
Definition:
ComSplitter.cpp:17
FW_ASSERT
#define FW_ASSERT(...)
Definition:
Assert.hpp:9
Svc::ComSplitter::init
void init(NATIVE_INT_TYPE instance)
Definition:
ComSplitter.cpp:30
Svc
Definition:
ActiveRateGroupImplCfg.hpp:18
BasicTypes.hpp
Declares ISF basic types.
NATIVE_INT_TYPE
int NATIVE_INT_TYPE
native integer type declaration
Definition:
BasicTypes.hpp:29
Fw::ComBuffer
Definition:
ComBuffer.hpp:21
Svc
ComSplitter
ComSplitter.cpp
Generated by
1.8.17