F´ Flight Software - C/C++ Documentation
NASA-v1.5.0
A framework for building embedded system applications to NASA flight quality standards.
|
Health component implementation class. More...
#include <Svc/Health/HealthComponentImpl.hpp>
Classes | |
struct | PingEntry |
struct for ping entry More... | |
struct | PingTracker |
ping tracker struct More... | |
Health component implementation class.
The health component iterates through each entry in its table and checks its status. If an ping entry tracker is enabled, it will ping its corresponding port with a provided key. If a ping return is outstanding, a counter is decremented, and its value is checked against warning and fault thresholds. A watchdog is always stroked in the run handler.
Definition at line 32 of file HealthComponentImpl.hpp.
Svc::HealthImpl::HealthImpl | ( | const char *const | compName | ) |
HealthImpl constructor.
The constructor for Health
compName | component name |
Definition at line 23 of file HealthComponentImpl.cpp.
Svc::HealthImpl::~HealthImpl | ( | void | ) |
Component destructor.
The destructor for HealthImpl is empty
Definition at line 64 of file HealthComponentImpl.cpp.
NATIVE_INT_TYPE Svc::HealthImpl::findEntry | ( | Fw::CmdStringArg | entry | ) |
Definition at line 209 of file HealthComponentImpl.cpp.
|
virtual |
HLTH_CHNG_PING handler.
Implementation for HLTH_CHNG_PING command handler
opCode | Command opcode |
cmdSeq | Command sequence |
entry | Ping entry number |
warningValue | Warning threshold value |
fatalValue | Fatal threshold value |
Implements Svc::HealthComponentBase.
Definition at line 185 of file HealthComponentImpl.cpp.
void Svc::HealthImpl::HLTH_ENABLE_cmdHandler | ( | const FwOpcodeType | opCode, |
U32 | cmdSeq, | ||
HealthEnabled | enable | ||
) |
HLTH_ENABLE handler.
Implementation for HLTH_ENABLE command handler
opCode | Command opcode |
cmdSeq | Command sequence |
enable | Enum for enabling/disabling tracker |
Definition at line 148 of file HealthComponentImpl.cpp.
|
virtual |
HLTH_PING_ENABLE handler.
Handler for command HLTH_PING_ENABLE
opCode | Command opcode |
cmdSeq | Command sequence |
entry | Ping entry number |
enable | Enum for enabling/disabling tracker |
Implements Svc::HealthComponentBase.
Definition at line 159 of file HealthComponentImpl.cpp.
void Svc::HealthImpl::init | ( | const NATIVE_INT_TYPE | queueDepth, |
const NATIVE_INT_TYPE | instance | ||
) |
HealthImpl initialization function.
Initializes the autocoded base class, ping table, and data members
queueDepth | Depth of queue |
instance | The instance number |
Definition at line 39 of file HealthComponentImpl.cpp.
|
virtual |
run handler
Handler implementation for run
portNum | Port number |
context | Port Context |
Implements Svc::HealthComponentBase.
Definition at line 85 of file HealthComponentImpl.cpp.
void Svc::HealthImpl::setPingEntries | ( | PingEntry * | pingEntries, |
NATIVE_INT_TYPE | numPingEntries, | ||
U32 | watchDogCode | ||
) |
Set ping entry tables.
Provides a table of ping entries
pingEntries | Pointer to provided ping table entries |
numPingEntries | Number of ping entries in table |
watchDogCode | Value that is sent to watchdog |
Definition at line 45 of file HealthComponentImpl.cpp.
PROTECTED Svc::HealthImpl::__pad0__ |
Definition at line 80 of file HealthComponentImpl.hpp.
PRIVATE Svc::HealthImpl::__pad1__ |
Definition at line 87 of file HealthComponentImpl.hpp.
PRIVATE U32 Svc::HealthImpl::key |
Definition at line 95 of file HealthComponentImpl.hpp.
HealthEnabled Svc::HealthImpl::m_enabled |
if the pinger is enabled
Definition at line 152 of file HealthComponentImpl.hpp.
U32 Svc::HealthImpl::m_key |
current key value. Just increments for each ping entry.
Definition at line 149 of file HealthComponentImpl.hpp.
U32 Svc::HealthImpl::m_numPingEntries |
Private member data.
stores number of entries passed to constructor
Definition at line 148 of file HealthComponentImpl.hpp.
struct Svc::HealthImpl::PingTracker Svc::HealthImpl::m_pingTrackerEntries[NUM_PINGSEND_OUTPUT_PORTS] |
U32 Svc::HealthImpl::m_warnings |
number of slip warnings issued
Definition at line 151 of file HealthComponentImpl.hpp.
U32 Svc::HealthImpl::m_watchDogCode |
stores code used for watchdog stroking
Definition at line 150 of file HealthComponentImpl.hpp.
U32 Svc::HealthImpl::queue_depth |
queue depth passed by user
Definition at line 153 of file HealthComponentImpl.hpp.