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
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
};
Svc::ComSplitterComponentBase
Auto-generated base for ComSplitter component.
Definition:
ComSplitterComponentAc.hpp:30
ComSplitter.hpp
Svc::ComSplitterComponentBase::data
PROTECTED Fw::ComBuffer & data
Definition:
ComSplitterComponentAc.hpp:122
Svc::ComSplitter::~ComSplitter
~ComSplitter(void)
Definition:
ComSplitter.cpp:24
Fw::ObjBase::init
void init(void)
Object initializer.
Definition:
ObjBase.cpp:26
Svc::ComSplitter::ComSplitter
ComSplitter(const char *compName)
Definition:
ComSplitter.cpp:17
FW_ASSERT
#define FW_ASSERT(...)
Definition:
Assert.hpp:9
Svc
Definition:
ActiveLoggerComponentAc.cpp:22
Svc::ComSplitterComponentBase::portNum
PRIVATE NATIVE_INT_TYPE portNum
Definition:
ComSplitterComponentAc.hpp:245
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.19