![]() |
F´ Flight Software - C/C++ Documentation
NASA-v2.0.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... | |
Public Member Functions | |
HealthImpl (const char *const compName) | |
HealthImpl constructor. More... | |
void | init (const NATIVE_INT_TYPE queueDepth, const NATIVE_INT_TYPE instance) |
HealthImpl initialization function. More... | |
void | setPingEntries (PingEntry *pingEntries, NATIVE_INT_TYPE numPingEntries, U32 watchDogCode) |
Set ping entry tables. More... | |
~HealthImpl (void) | |
Component destructor. More... | |
Protected Member Functions | |
virtual void | doOtherChecks (void) |
additional checks function 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.
|
protectedvirtual |
additional checks function
Does additional checks based on the platform
Definition at line 24 of file HealthComponentStubChecks.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.
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.