F´ Flight Software - C/C++ Documentation
NASA-v1.6.0
A framework for building embedded system applications to NASA flight quality standards.
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Functions
a
b
c
d
e
f
g
h
i
j
l
m
o
p
r
s
t
u
v
w
Variables
b
c
f
g
k
l
m
o
p
r
s
t
u
w
z
Typedefs
a
b
c
d
e
f
g
h
i
l
n
o
p
r
s
t
u
v
w
Enumerations
Enumerator
a
b
f
h
i
k
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
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
~
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
~
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Typedefs
a
b
c
e
f
i
m
r
s
t
w
Enumerations
b
c
d
f
g
h
m
o
q
r
s
t
u
w
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Related Symbols
:
a
b
c
d
f
g
h
l
p
q
r
s
t
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
Functions
f
g
i
m
p
r
s
t
u
Variables
_
b
c
f
g
i
l
p
r
s
w
Typedefs
a
b
c
e
f
i
n
p
s
t
u
Enumerations
Enumerator
a
b
c
f
g
h
p
r
s
t
Macros
_
a
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
►
F´ Flight Software - C/C++ Documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
TlmChan.hpp
Go to the documentation of this file.
1
13
#ifndef TELEMCHANIMPL_HPP_
14
#define TELEMCHANIMPL_HPP_
15
16
#include <
Fw/Tlm/TlmPacket.hpp
>
17
#include <
Svc/TlmChan/TlmChanComponentAc.hpp
>
18
#include <
TlmChanImplCfg.hpp
>
19
20
namespace
Svc
{
21
22
class
TlmChan
:
public
TlmChanComponentBase
{
23
public
:
24
TlmChan
(
const
char
* compName);
25
virtual
~TlmChan
();
26
void
init
(
NATIVE_INT_TYPE
queueDepth,
27
NATIVE_INT_TYPE
instance
28
);
29
30
PROTECTED:
31
// can be overridden for alternate algorithms
32
virtual
NATIVE_UINT_TYPE
doHash
(
FwChanIdType
id
);
33
34
PRIVATE:
35
// Port functions
36
void
TlmRecv_handler(
NATIVE_INT_TYPE
portNum,
FwChanIdType
id
,
Fw::Time
& timeTag,
Fw::TlmBuffer
& val);
37
void
TlmGet_handler(
NATIVE_INT_TYPE
portNum,
FwChanIdType
id
,
Fw::Time
& timeTag,
Fw::TlmBuffer
& val);
38
void
Run_handler(
NATIVE_INT_TYPE
portNum,
NATIVE_UINT_TYPE
context);
41
void
pingIn_handler(
const
NATIVE_INT_TYPE
portNum,
42
U32 key
43
);
44
45
typedef
struct
tlmEntry {
46
FwChanIdType
id;
47
bool
updated;
48
Fw::Time
lastUpdate;
49
Fw::TlmBuffer
buffer;
50
tlmEntry* next;
51
bool
used;
52
NATIVE_UINT_TYPE
bucketNo;
53
} TlmEntry;
54
55
struct
TlmSet {
56
TlmEntry* slots[TLMCHAN_NUM_TLM_HASH_SLOTS];
57
TlmEntry buckets[TLMCHAN_HASH_BUCKETS];
58
NATIVE_INT_TYPE
free;
59
} m_tlmEntries[2];
60
61
U32 m_activeBuffer;
// !< which buffer is active for storing telemetry
62
};
22
class
TlmChan
:
public
TlmChanComponentBase
{
…
};
63
64
}
// namespace Svc
65
66
#endif
/* TELEMCHANIMPL_HPP_ */
NATIVE_INT_TYPE
PlatformIntType NATIVE_INT_TYPE
Definition
BasicTypes.h:51
NATIVE_UINT_TYPE
PlatformUIntType NATIVE_UINT_TYPE
Definition
BasicTypes.h:52
FwChanIdType
U32 FwChanIdType
Definition
FpConfig.h:59
TlmChanComponentAc.hpp
TlmChanImplCfg.hpp
Configuration file for Telemetry Channel component.
TlmPacket.hpp
Fw::ObjBase::init
void init()
Object initializer.
Definition
ObjBase.cpp:27
Fw::Time
Definition
Time.hpp:9
Fw::TlmBuffer
Definition
TlmBuffer.hpp:20
Svc::TlmChanComponentBase
Auto-generated base for TlmChan component.
Definition
TlmChanComponentAc.hpp:29
Svc::TlmChan
Definition
TlmChan.hpp:22
Svc::TlmChan::doHash
virtual NATIVE_UINT_TYPE doHash(FwChanIdType id)
Definition
TlmChan.cpp:51
Svc::TlmChan::~TlmChan
virtual ~TlmChan()
Definition
TlmChan.cpp:43
Svc::TlmChan::TlmChan
TlmChan(const char *compName)
Definition
TlmChan.cpp:19
Svc
Definition
ActiveRateGroupCfg.hpp:18
Svc
TlmChan
TlmChan.hpp
Generated by
1.10.0