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
PassiveComponentBase.cpp
Go to the documentation of this file.
1
#include <
Fw/Comp/PassiveComponentBase.hpp
>
2
#include <
Fw/Types/Assert.hpp
>
3
#include <
FpConfig.hpp
>
4
5
#include <stdio.h>
6
7
namespace
Fw
{
8
9
PassiveComponentBase::PassiveComponentBase(
const
char
* name) :
Fw
::ObjBase(name), m_idBase(0), m_instance(0) {
10
}
11
12
#if FW_OBJECT_TO_STRING == 1 && FW_OBJECT_NAMES == 1
13
void
PassiveComponentBase::toString(
char
* buffer,
NATIVE_INT_TYPE
size) {
14
FW_ASSERT
(buffer);
15
(void)snprintf(buffer, size,
"Comp: %s"
, this->m_objName);
16
// null terminate
17
buffer[size-1] = 0;
18
}
19
#endif
20
21
PassiveComponentBase::~PassiveComponentBase
(
void
) {
22
}
23
24
void
PassiveComponentBase::init
(
NATIVE_INT_TYPE
instance) {
25
ObjBase::init
();
26
this->
m_instance
= instance;
27
}
28
29
NATIVE_INT_TYPE
PassiveComponentBase::getInstance
(
void
)
const
{
30
return
this->
m_instance
;
31
}
32
33
void
PassiveComponentBase ::
34
setIdBase
(
const
U32 idBase)
35
{
36
this->m_idBase = idBase;
37
}
38
39
U32
PassiveComponentBase ::
40
getIdBase
(
void
)
const
41
{
42
return
this->m_idBase;
43
}
44
45
}
PassiveComponentBase.hpp
Fw::PassiveComponentBase::getIdBase
U32 getIdBase(void) const
Definition:
PassiveComponentBase.cpp:40
Fw::PassiveComponentBase::getInstance
NATIVE_INT_TYPE getInstance(void) const
Definition:
PassiveComponentBase.cpp:29
Fw::PassiveComponentBase::setIdBase
void setIdBase(const U32)
Set the ID base.
Definition:
PassiveComponentBase.cpp:34
Assert.hpp
Fw::ObjBase::init
void init(void)
Object initializer.
Definition:
ObjBase.cpp:26
Fw::PassiveComponentBase::~PassiveComponentBase
virtual ~PassiveComponentBase()
Destructor.
Definition:
PassiveComponentBase.cpp:21
FW_ASSERT
#define FW_ASSERT(...)
Definition:
Assert.hpp:9
FpConfig.hpp
ISF configuration file.
Fw::PassiveComponentBase::m_instance
NATIVE_INT_TYPE m_instance
instance of component object
Definition:
PassiveComponentBase.hpp:30
NATIVE_INT_TYPE
int NATIVE_INT_TYPE
native integer type declaration
Definition:
BasicTypes.hpp:29
Fw
Definition:
BufferGetPortAc.cpp:6
Fw
Comp
PassiveComponentBase.cpp
Generated by
1.8.19