F´ Flight Software - C/C++ Documentation
NASA-v1.5.0
A framework for building embedded system applications to NASA flight quality standards.
|
Go to the documentation of this file.
29 m_enabled(HLTH_CHK_ENABLED),
56 FW_ASSERT(pingEntries[entry].warnCycles <= pingEntries[entry].fatalCycles, pingEntries[entry].warnCycles, pingEntries[entry].fatalCycles);
72 void HealthImpl::PingReturn_handler(
const NATIVE_INT_TYPE portNum, U32 key) {
117 this->log_WARNING_HI_HLTH_PING_WARN(_arg);
118 this->tlmWrite_PingLateWarnings(++this->
m_warnings);
122 this->m_pingTrackerEntries[entry].
cycleCount) {
134 this->doOtherChecks();
163 if (-1 == entryIndex) {
188 if (-1 == entryIndex) {
194 if (warningValue > fatalValue) {
void WdogStroke_out(NATIVE_INT_TYPE portNum, U32 code)
void Run_handler(const NATIVE_INT_TYPE portNum, NATIVE_UINT_TYPE context)
run handler
Auto-generated base for Health component.
virtual MsgDispatchStatus doDispatch(void)=0
method to dispatch a single message in the queue.
U32 m_warnings
number of slip warnings issued
NATIVE_INT_TYPE findEntry(Fw::CmdStringArg entry)
#define FW_NUM_ARRAY_ELEMENTS(a)
number of elements in an array
void log_WARNING_HI_HLTH_PING_INVALID_VALUES(Fw::LogStringArg &entry, U32 warn, U32 fatal)
void log_ACTIVITY_HI_HLTH_PING_UPDATED(Fw::LogStringArg &entry, U32 warn, U32 fatal)
PROTECTED HealthIsEnabled_MAX HealthIsEnabled
void log_WARNING_LO_HLTH_CHECK_LOOKUP_ERROR(Fw::LogStringArg &entry)
PingEntry entry
entry passed by user
NATIVE_UINT_TYPE warnCycles
number of cycles before WARNING
PRIVATE NATIVE_INT_TYPE portNum
~HealthImpl(void)
Component destructor.
@ NUM_PINGSEND_OUTPUT_PORTS
U32 m_watchDogCode
stores code used for watchdog stroking
PROTECTED U32 HealthEnabled enable
PROTECTED HEALTH_CHECK_ENABLED
void init(void)
Object initializer.
U32 cycleCount
current cycle count
PingEnabled enabled
if current ping result is checked
@ MSG_DISPATCH_OK
Dispatch was normal.
void log_ACTIVITY_HI_HLTH_CHECK_PING(HealthPingIsEnabled enabled, Fw::LogStringArg &entry)
HealthEnabled m_enabled
if the pinger is enabled
void log_FATAL_HLTH_PING_WRONG_KEY(Fw::LogStringArg &entry, U32 badKey)
#define FwOpcodeType
Type representation for a command opcode.
void log_FATAL_HLTH_PING_LATE(Fw::LogStringArg &entry)
unsigned int NATIVE_UINT_TYPE
native unsigned integer type declaration
void setPingEntries(PingEntry *pingEntries, NATIVE_INT_TYPE numPingEntries, U32 watchDogCode)
Set ping entry tables.
HealthImpl(const char *const compName)
HealthImpl constructor.
void HLTH_ENABLE_cmdHandler(const FwOpcodeType opCode, U32 cmdSeq, HealthEnabled enable)
HLTH_ENABLE handler.
U32 queue_depth
queue depth passed by user
NATIVE_UINT_TYPE fatalCycles
number of cycles before FATAL
U32 key
key passed to ping
U32 m_numPingEntries
Private member data.
@ MSG_DISPATCH_EMPTY
No more messages in the queue.
void log_ACTIVITY_HI_HLTH_CHECK_ENABLE(HealthIsEnabled enabled)
void HLTH_PING_ENABLE_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &entry, PingEnabled enable)
HLTH_PING_ENABLE handler.
Fw::EightyCharString entryName
the name of the entry
Declares ISF basic types.
@ COMMAND_VALIDATION_ERROR
void HLTH_CHNG_PING_cmdHandler(const FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &entry, U32 warningValue, U32 fatalValue)
HLTH_CHNG_PING handler.
U32 m_key
current key value. Just increments for each ping entry.
struct Svc::HealthImpl::PingTracker m_pingTrackerEntries[NUM_PINGSEND_OUTPUT_PORTS]
int NATIVE_INT_TYPE
native integer type declaration
bool isConnected_WdogStroke_OutputPort(NATIVE_INT_TYPE portNum)