F´ Flight Software - C/C++ Documentation
devel
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
l
m
n
o
p
r
s
t
u
v
w
z
Functions
a
b
c
d
g
h
i
m
o
p
r
s
t
v
w
Variables
Typedefs
a
b
c
d
e
f
g
h
l
o
p
r
s
t
u
w
Enumerations
Enumerator
a
b
c
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
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
w
Typedefs
c
e
s
t
u
w
Enumerations
b
c
d
g
h
m
o
q
s
t
u
w
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Related Symbols
a
b
c
d
f
g
h
l
p
r
s
t
u
Files
File List
File Members
All
_
a
b
c
d
f
g
h
i
l
m
n
p
r
s
t
u
v
Functions
c
i
m
p
s
u
Variables
_
b
c
f
i
l
p
r
s
Typedefs
b
c
f
i
n
p
s
u
Enumerations
Enumerator
a
b
c
d
f
g
h
p
r
s
t
Macros
_
a
c
d
f
g
h
i
l
m
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
ActiveLoggerImpl.hpp
Go to the documentation of this file.
1
/*
2
* ActiveLoggerImpl.hpp
3
*
4
* Created on: Mar 28, 2014
5
* Author: tcanham
6
*/
7
8
#ifndef ACTIVELOGGERIMPL_HPP_
9
#define ACTIVELOGGERIMPL_HPP_
10
11
#include <
Svc/ActiveLogger/ActiveLoggerComponentAc.hpp
>
12
#include <
Fw/Log/LogPacket.hpp
>
13
#include <
ActiveLoggerImplCfg.hpp
>
14
15
namespace
Svc
{
16
17
class
ActiveLoggerImpl
:
public
ActiveLoggerComponentBase
{
18
public
:
19
ActiveLoggerImpl
(
const
char
* compName);
20
virtual
~ActiveLoggerImpl
();
21
void
init
(
22
NATIVE_INT_TYPE
queueDepth,
23
NATIVE_INT_TYPE
instance
24
);
25
PROTECTED:
26
PRIVATE:
27
void
LogRecv_handler(
NATIVE_INT_TYPE
portNum,
FwEventIdType
id
,
Fw::Time
&timeTag,
const
Fw::LogSeverity
& severity,
Fw::LogBuffer
&args);
28
void
loqQueue_internalInterfaceHandler(
FwEventIdType
id
,
const
Fw::Time
&timeTag,
const
Fw::LogSeverity
& severity,
const
Fw::LogBuffer
&args);
29
30
void
SET_EVENT_FILTER_cmdHandler(
31
FwOpcodeType
opCode,
32
U32 cmdSeq,
33
ActiveLogger_FilterSeverity
filterLevel,
34
ActiveLogger_Enabled
filterEnabled);
35
36
void
SET_ID_FILTER_cmdHandler(
37
FwOpcodeType
opCode,
38
U32 cmdSeq,
39
U32 ID,
40
ActiveLogger_Enabled
idFilterEnabled
41
);
42
43
void
DUMP_FILTER_STATE_cmdHandler(
44
FwOpcodeType
opCode,
45
U32 cmdSeq
46
);
47
50
void
pingIn_handler(
51
const
NATIVE_INT_TYPE
portNum,
52
U32 key
53
);
54
55
// Filter state
56
struct
t_filterState {
57
ActiveLogger_Enabled
enabled;
//<! filter is enabled
58
} m_filterState[
ActiveLogger_FilterSeverity::NUM_CONSTANTS
];
59
60
// Working members
61
Fw::LogPacket
m_logPacket;
62
Fw::ComBuffer
m_comBuffer;
63
64
// array of filtered event IDs.
65
// value of 0 means no entry
66
FwEventIdType
m_filteredIDs[
TELEM_ID_FILTER_SIZE
];
67
68
};
17
class
ActiveLoggerImpl
:
public
ActiveLoggerComponentBase
{
…
};
69
70
}
71
#endif
/* ACTIVELOGGERIMPL_HPP_ */
ActiveLoggerComponentAc.hpp
ActiveLoggerImplCfg.hpp
TELEM_ID_FILTER_SIZE
@ TELEM_ID_FILTER_SIZE
Size of telemetry ID filter.
Definition
ActiveLoggerImplCfg.hpp:24
NATIVE_INT_TYPE
PlatformIntType NATIVE_INT_TYPE
Definition
BasicTypes.h:51
FwEventIdType
U32 FwEventIdType
Definition
FpConfig.h:62
FwOpcodeType
U32 FwOpcodeType
Definition
FpConfig.h:56
LogPacket.hpp
Fw::ComBuffer
Definition
ComBuffer.hpp:20
Fw::LogBuffer
Definition
LogBuffer.hpp:21
Fw::LogPacket
Definition
LogPacket.hpp:17
Fw::LogSeverity
Enum representing event severity.
Definition
LogSeverityEnumAc.hpp:19
Fw::ObjBase::init
void init()
Object initializer.
Definition
ObjBase.cpp:27
Fw::Time
Definition
Time.hpp:9
Svc::ActiveLogger_Enabled
Enabled and disabled state.
Definition
ActiveLogger_EnabledEnumAc.hpp:19
Svc::ActiveLogger_FilterSeverity
Definition
ActiveLogger_FilterSeverityEnumAc.hpp:20
Svc::ActiveLogger_FilterSeverity::NUM_CONSTANTS
@ NUM_CONSTANTS
The number of enumerated constants.
Definition
ActiveLogger_FilterSeverityEnumAc.hpp:60
Svc::ActiveLoggerComponentBase
Auto-generated base for ActiveLogger component.
Definition
ActiveLoggerComponentAc.hpp:42
Svc::ActiveLoggerImpl
Definition
ActiveLoggerImpl.hpp:17
Svc::ActiveLoggerImpl::ActiveLoggerImpl
ActiveLoggerImpl(const char *compName)
constructor
Definition
ActiveLoggerImpl.cpp:19
Svc::ActiveLoggerImpl::~ActiveLoggerImpl
virtual ~ActiveLoggerImpl()
destructor
Definition
ActiveLoggerImpl.cpp:40
Svc
Definition
ActiveRateGroupCfg.hpp:18
Svc
ActiveLogger
ActiveLoggerImpl.hpp
Generated by
1.10.0