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
GenericRepeaterComponentImpl.cpp
Go to the documentation of this file.
1
// ======================================================================
2
// \title GenericRepeaterComponentImpl.cpp
3
// \author joshuaa
4
// \brief cpp file for GenericRepeater component implementation 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
#include <
Svc/GenericRepeater/GenericRepeaterComponentImpl.hpp
>
14
#include "
Fw/Types/BasicTypes.hpp
"
15
16
namespace
Svc
{
17
18
// ----------------------------------------------------------------------
19
// Construction, initialization, and destruction
20
// ----------------------------------------------------------------------
21
22
GenericRepeaterComponentImpl ::GenericRepeaterComponentImpl
(
const
char
*
const
compName)
23
: GenericRepeaterComponentBase(compName) {}
24
25
void
GenericRepeaterComponentImpl ::init
(
const
NATIVE_INT_TYPE
instance) {
26
GenericRepeaterComponentBase::init(instance);
27
}
28
29
GenericRepeaterComponentImpl ::~GenericRepeaterComponentImpl
(
void
) {}
30
31
// ----------------------------------------------------------------------
32
// Handler implementations for user-defined serial input ports
33
// ----------------------------------------------------------------------
34
35
void
GenericRepeaterComponentImpl ::portIn_handler(
NATIVE_INT_TYPE
portNum,
36
Fw::SerializeBufferBase
& Buffer
37
) {
38
for
(
NATIVE_INT_TYPE
i = 0; i < NUM_PORTOUT_OUTPUT_PORTS; i++) {
39
if
(!isConnected_portOut_OutputPort(i)) {
40
continue
;
41
}
42
43
portOut_out(i, Buffer);
44
}
45
}
46
47
}
// end namespace Svc
Fw::SerializeBufferBase
Definition:
Serializable.hpp:43
GenericRepeaterComponentImpl.hpp
Svc::GenericRepeaterComponentImpl::init
void init(const NATIVE_INT_TYPE instance=0)
Definition:
GenericRepeaterComponentImpl.cpp:25
Svc::GenericRepeaterComponentImpl::GenericRepeaterComponentImpl
GenericRepeaterComponentImpl(const char *const compName)
Definition:
GenericRepeaterComponentImpl.cpp:22
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
Svc::GenericRepeaterComponentImpl::~GenericRepeaterComponentImpl
~GenericRepeaterComponentImpl(void)
Definition:
GenericRepeaterComponentImpl.cpp:29
Svc
GenericRepeater
GenericRepeaterComponentImpl.cpp
Generated by
1.8.17