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
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
HealthComponentImpl.hpp
Go to the documentation of this file.
1
// ======================================================================
2
// \title Health.hpp
3
// \author Tim, J.Perez
4
// \brief hpp file for Health 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
#ifndef Health_HPP
14
#define Health_HPP
15
16
#include <
Svc/Health/HealthComponentAc.hpp
>
17
#include <
Fw/Types/String.hpp
>
18
19
namespace
Svc
{
20
31
32
class
HealthImpl
:
public
HealthComponentBase
{
33
34
public
:
45
struct
PingEntry
{
46
NATIVE_UINT_TYPE
warnCycles
;
47
NATIVE_UINT_TYPE
fatalCycles
;
48
Fw::String
entryName
;
49
};
45
struct
PingEntry
{
…
};
50
56
HealthImpl
(
const
char
*
const
compName);
57
64
void
init
(
const
NATIVE_INT_TYPE
queueDepth,
const
NATIVE_INT_TYPE
instance);
65
73
void
setPingEntries
(
PingEntry
* pingEntries,
NATIVE_INT_TYPE
numPingEntries, U32 watchDogCode);
74
78
~HealthImpl
();
79
80
PROTECTED:
81
85
virtual
void
doOtherChecks
();
86
87
PRIVATE:
88
95
void
PingReturn_handler(
const
NATIVE_INT_TYPE
portNum, U32 key);
96
103
void
Run_handler(
const
NATIVE_INT_TYPE
portNum,
NATIVE_UINT_TYPE
context);
104
112
void
HLTH_ENABLE_cmdHandler(
const
FwOpcodeType
opCode, U32 cmdSeq,
Fw::Enabled
enable);
113
122
void
HLTH_PING_ENABLE_cmdHandler(
FwOpcodeType
opCode, U32 cmdSeq,
const
Fw::CmdStringArg
& entry,
Fw::Enabled
enable);
123
133
void
HLTH_CHNG_PING_cmdHandler(
const
FwOpcodeType
opCode, U32 cmdSeq,
const
Fw::CmdStringArg
& entry, U32 warningValue, U32 fatalValue);
134
138
struct
PingTracker {
139
PingEntry
entry;
140
U32 cycleCount;
141
U32 key;
142
Fw::Enabled::t
enabled;
143
} m_pingTrackerEntries[
NUM_PINGSEND_OUTPUT_PORTS
];
144
145
NATIVE_INT_TYPE
findEntry(
const
Fw::CmdStringArg
& entry);
146
148
U32 m_numPingEntries;
149
U32 m_key;
150
U32 m_watchDogCode;
151
U32 m_warnings;
152
Fw::Enabled
m_enabled;
153
U32 queue_depth;
154
155
};
32
class
HealthImpl
:
public
HealthComponentBase
{
…
};
156
157
}
// end namespace Svc
158
159
#endif
NATIVE_INT_TYPE
PlatformIntType NATIVE_INT_TYPE
Definition
BasicTypes.h:51
NATIVE_UINT_TYPE
PlatformUIntType NATIVE_UINT_TYPE
Definition
BasicTypes.h:52
FwOpcodeType
U32 FwOpcodeType
Definition
FpConfig.h:56
HealthComponentAc.hpp
String.hpp
Fw::CmdStringArg
Definition
CmdString.hpp:10
Fw::Enabled
Enabled and disabled states.
Definition
EnabledEnumAc.hpp:19
Fw::Enabled::T
T
The raw enum type.
Definition
EnabledEnumAc.hpp:31
Fw::ObjBase::init
void init()
Object initializer.
Definition
ObjBase.cpp:27
Fw::String
Definition
String.hpp:10
Svc::HealthComponentBase
Auto-generated base for Health component.
Definition
HealthComponentAc.hpp:39
Svc::HealthComponentBase::NUM_PINGSEND_OUTPUT_PORTS
@ NUM_PINGSEND_OUTPUT_PORTS
Definition
HealthComponentAc.hpp:77
Svc::HealthImpl
Health component implementation class.
Definition
HealthComponentImpl.hpp:32
Svc::HealthImpl::doOtherChecks
virtual void doOtherChecks()
additional checks function
Definition
HealthComponentStubChecks.cpp:24
Svc::HealthImpl::~HealthImpl
~HealthImpl()
Component destructor.
Definition
HealthComponentImpl.cpp:64
Svc::HealthImpl::setPingEntries
void setPingEntries(PingEntry *pingEntries, NATIVE_INT_TYPE numPingEntries, U32 watchDogCode)
Set ping entry tables.
Definition
HealthComponentImpl.cpp:45
Svc::HealthImpl::HealthImpl
HealthImpl(const char *const compName)
HealthImpl constructor.
Definition
HealthComponentImpl.cpp:23
Svc
Definition
ActiveRateGroupCfg.hpp:18
Svc::HealthImpl::PingEntry
struct for ping entry
Definition
HealthComponentImpl.hpp:45
Svc::HealthImpl::PingEntry::entryName
Fw::String entryName
the name of the entry
Definition
HealthComponentImpl.hpp:48
Svc::HealthImpl::PingEntry::warnCycles
NATIVE_UINT_TYPE warnCycles
number of cycles before WARNING
Definition
HealthComponentImpl.hpp:46
Svc::HealthImpl::PingEntry::fatalCycles
NATIVE_UINT_TYPE fatalCycles
number of cycles before FATAL
Definition
HealthComponentImpl.hpp:47
Svc
Health
HealthComponentImpl.hpp
Generated by
1.10.0