![]() |
F´ Flight Software - C/C++ Documentation
devel
A framework for building embedded system applications to NASA flight quality standards.
|
Auto-generated base for Health component. More...
#include <Svc/Health/HealthComponentAc.hpp>
Friends | |
class | HealthComponentBaseFriend |
Friend class for white-box testing. More... | |
Additional Inherited Members | |
![]() | |
enum | MsgDispatchStatus { MSG_DISPATCH_OK , MSG_DISPATCH_EMPTY , MSG_DISPATCH_ERROR , MSG_DISPATCH_EXIT } |
![]() | |
Os::Queue | m_queue |
queue object for active component More... | |
Auto-generated base for Health component.
A component for checking the health of active components
Definition at line 37 of file HealthComponentAc.hpp.
|
protected |
Enumerations for numbers of special input ports.
Enumerator | |
---|---|
NUM_CMDDISP_INPUT_PORTS |
Definition at line 55 of file HealthComponentAc.hpp.
|
protected |
Enumerations for numbers of typed input ports.
Enumerator | |
---|---|
NUM_PINGRETURN_INPUT_PORTS | |
NUM_RUN_INPUT_PORTS |
Definition at line 60 of file HealthComponentAc.hpp.
|
protected |
Enumerations for numbers of special output ports.
Enumerator | |
---|---|
NUM_CMDREG_OUTPUT_PORTS | |
NUM_CMDSTATUS_OUTPUT_PORTS | |
NUM_LOG_OUTPUT_PORTS | |
NUM_LOGTEXT_OUTPUT_PORTS | |
NUM_TIME_OUTPUT_PORTS | |
NUM_TLM_OUTPUT_PORTS |
Definition at line 66 of file HealthComponentAc.hpp.
|
protected |
Enumerations for numbers of typed output ports.
Enumerator | |
---|---|
NUM_PINGSEND_OUTPUT_PORTS | |
NUM_WDOGSTROKE_OUTPUT_PORTS |
Definition at line 76 of file HealthComponentAc.hpp.
|
protected |
Command opcodes.
Enumerator | |
---|---|
OPCODE_HLTH_ENABLE | A command to enable or disable health checks. |
OPCODE_HLTH_PING_ENABLE | Ignore a particular ping entry. |
OPCODE_HLTH_CHNG_PING | Change ping value. |
Definition at line 82 of file HealthComponentAc.hpp.
|
protected |
Event IDs.
Definition at line 89 of file HealthComponentAc.hpp.
|
protected |
Channel IDs.
Enumerator | |
---|---|
CHANNELID_PINGLATEWARNINGS | Channel ID for PingLateWarnings. |
Definition at line 101 of file HealthComponentAc.hpp.
|
protected |
Construct HealthComponentBase object.
compName | The component name |
Definition at line 728 of file HealthComponentAc.cpp.
|
protectedvirtual |
Destroy HealthComponentBase object.
Definition at line 735 of file HealthComponentAc.cpp.
|
protected |
Emit command response.
opCode | The opcode |
cmdSeq | The command sequence number |
response | The command response |
Definition at line 1060 of file HealthComponentAc.cpp.
|
protectedvirtual |
Called in the message loop to dispatch a message from the queue.
Implements Fw::QueuedComponentBase.
Definition at line 2139 of file HealthComponentAc.cpp.
Fw::InputCmdPort * Svc::HealthComponentBase::get_CmdDisp_InputPort | ( | NATIVE_INT_TYPE | portNum | ) |
Get special input port at index
portNum | The port number |
Definition at line 409 of file HealthComponentAc.cpp.
Svc::InputPingPort * Svc::HealthComponentBase::get_PingReturn_InputPort | ( | NATIVE_INT_TYPE | portNum | ) |
Get typed input port at index
portNum | The port number |
Definition at line 424 of file HealthComponentAc.cpp.
Svc::InputSchedPort * Svc::HealthComponentBase::get_Run_InputPort | ( | NATIVE_INT_TYPE | portNum | ) |
Get typed input port at index
portNum | The port number |
Definition at line 435 of file HealthComponentAc.cpp.
|
protected |
Get the number of CmdDisp input ports
Definition at line 745 of file HealthComponentAc.cpp.
|
protected |
Get the number of CmdReg output ports
Definition at line 771 of file HealthComponentAc.cpp.
|
protected |
Get the number of CmdStatus output ports
Definition at line 777 of file HealthComponentAc.cpp.
|
protected |
Get the number of Log output ports
Definition at line 783 of file HealthComponentAc.cpp.
|
protected |
Get the number of PingReturn input ports
Definition at line 755 of file HealthComponentAc.cpp.
|
protected |
Get the number of PingSend output ports
Definition at line 815 of file HealthComponentAc.cpp.
|
protected |
Get the number of Run input ports
Definition at line 761 of file HealthComponentAc.cpp.
|
protected |
Get the number of Time output ports
Definition at line 799 of file HealthComponentAc.cpp.
|
protected |
Get the number of Tlm output ports
Definition at line 805 of file HealthComponentAc.cpp.
|
protected |
Get the number of WdogStroke output ports
Definition at line 821 of file HealthComponentAc.cpp.
|
protected |
|
protectedpure virtual |
Handler for command HLTH_CHNG_PING
Change ping value
opCode | The opcode |
cmdSeq | The command sequence number |
entry | The entry to modify |
warningValue | Ping warning threshold |
fatalValue | Ping fatal threshold |
|
protected |
Base-class handler function for command HLTH_CHNG_PING
Change ping value
opCode | The opcode |
cmdSeq | The command sequence number |
args | The command argument buffer |
Definition at line 1195 of file HealthComponentAc.cpp.
|
protectedvirtual |
Pre-message hook for command HLTH_CHNG_PING.
opCode | The opcode |
cmdSeq | The command sequence number |
Definition at line 1284 of file HealthComponentAc.cpp.
|
protectedpure virtual |
Handler for command HLTH_ENABLE
A command to enable or disable health checks
opCode | The opcode |
cmdSeq | The command sequence number |
enable | whether or not health checks are enabled |
|
protected |
Base-class handler function for command HLTH_ENABLE
A command to enable or disable health checks
opCode | The opcode |
cmdSeq | The command sequence number |
args | The command argument buffer |
Definition at line 1077 of file HealthComponentAc.cpp.
|
protectedvirtual |
Pre-message hook for command HLTH_ENABLE.
opCode | The opcode |
cmdSeq | The command sequence number |
Definition at line 1262 of file HealthComponentAc.cpp.
|
protectedpure virtual |
Handler for command HLTH_PING_ENABLE
Ignore a particular ping entry
opCode | The opcode |
cmdSeq | The command sequence number |
entry | The entry to enable/disable |
enable | whether or not a port is pinged |
|
protected |
Base-class handler function for command HLTH_PING_ENABLE
Ignore a particular ping entry
opCode | The opcode |
cmdSeq | The command sequence number |
args | The command argument buffer |
Definition at line 1136 of file HealthComponentAc.cpp.
|
protectedvirtual |
Pre-message hook for command HLTH_PING_ENABLE.
opCode | The opcode |
cmdSeq | The command sequence number |
Definition at line 1273 of file HealthComponentAc.cpp.
void Svc::HealthComponentBase::init | ( | NATIVE_INT_TYPE | queueDepth, |
NATIVE_INT_TYPE | instance = 0 |
||
) |
Initialize HealthComponentBase object.
queueDepth | The queue depth |
instance | The instance number |
Definition at line 72 of file HealthComponentAc.cpp.
|
protected |
Check whether port CmdReg is connected
portNum | The port number |
Definition at line 831 of file HealthComponentAc.cpp.
|
protected |
Check whether port CmdStatus is connected
portNum | The port number |
Definition at line 842 of file HealthComponentAc.cpp.
|
protected |
Check whether port Log is connected
portNum | The port number |
Definition at line 853 of file HealthComponentAc.cpp.
|
protected |
Check whether port PingSend is connected
portNum | The port number |
Definition at line 905 of file HealthComponentAc.cpp.
|
protected |
Check whether port Time is connected
portNum | The port number |
Definition at line 879 of file HealthComponentAc.cpp.
|
protected |
Check whether port Tlm is connected
portNum | The port number |
Definition at line 890 of file HealthComponentAc.cpp.
|
protected |
Check whether port WdogStroke is connected
portNum | The port number |
Definition at line 916 of file HealthComponentAc.cpp.
|
protected |
Log event HLTH_CHECK_ENABLE
Report checking turned on or off
enabled | If health checking is enabled |
Definition at line 1579 of file HealthComponentAc.cpp.
|
protected |
Log event HLTH_CHECK_PING
Report a particular entry on or off
enabled | If health pinging is enabled for a particular entry |
entry | The entry passing the warning level |
Definition at line 1670 of file HealthComponentAc.cpp.
|
protected |
Log event HLTH_PING_UPDATED
Report changed ping
entry | The entry changed |
warn | The new warning value |
fatal | The new FATAL value |
Definition at line 1849 of file HealthComponentAc.cpp.
|
protected |
Log event HLTH_PING_LATE
Declare FATAL since task is no longer responding
entry | The entry passing the warning level |
Definition at line 1377 of file HealthComponentAc.cpp.
|
protected |
Log event HLTH_PING_WRONG_KEY
Declare FATAL since task is no longer responding
entry | The entry passing the warning level |
badKey | The incorrect key value |
Definition at line 1468 of file HealthComponentAc.cpp.
|
protected |
Log event HLTH_PING_INVALID_VALUES
Report changed ping
entry | The entry changed |
warn | The new warning value |
fatal | The new FATAL value |
Definition at line 1965 of file HealthComponentAc.cpp.
|
protected |
Log event HLTH_PING_WARN
Warn that a ping target is longer than the warning value
entry | The entry passing the warning level |
Definition at line 1299 of file HealthComponentAc.cpp.
|
protected |
Log event HLTH_CHECK_LOOKUP_ERROR
Entry was not found
entry | The entry passing the warning level |
Definition at line 1771 of file HealthComponentAc.cpp.
|
protectedpure virtual |
Handler for input port PingReturn.
portNum | The port number |
key | Value to return to pinger |
|
protected |
Handler base-class function for input port PingReturn.
portNum | The port number |
key | Value to return to pinger |
Definition at line 933 of file HealthComponentAc.cpp.
|
protectedvirtual |
Pre-message hook for async input port PingReturn.
portNum | The port number |
key | Value to return to pinger |
Definition at line 1013 of file HealthComponentAc.cpp.
|
protected |
Invoke output port PingSend.
portNum | The port number |
key | Value to return to pinger |
Definition at line 1026 of file HealthComponentAc.cpp.
void Svc::HealthComponentBase::regCommands | ( | ) |
Register commands with the Command Dispatcher.
Connect the dispatcher first
Definition at line 706 of file HealthComponentAc.cpp.
|
protectedpure virtual |
Handler for input port Run.
portNum | The port number |
context | The call order |
|
protected |
Handler base-class function for input port Run.
portNum | The port number |
context | The call order |
Definition at line 986 of file HealthComponentAc.cpp.
void Svc::HealthComponentBase::set_CmdReg_OutputPort | ( | NATIVE_INT_TYPE | portNum, |
Fw::InputCmdRegPort * | port | ||
) |
Connect port to CmdReg[portNum].
portNum | The port number |
port | The input port |
Definition at line 450 of file HealthComponentAc.cpp.
void Svc::HealthComponentBase::set_CmdStatus_OutputPort | ( | NATIVE_INT_TYPE | portNum, |
Fw::InputCmdResponsePort * | port | ||
) |
Connect port to CmdStatus[portNum].
portNum | The port number |
port | The input port |
Definition at line 464 of file HealthComponentAc.cpp.
void Svc::HealthComponentBase::set_Log_OutputPort | ( | NATIVE_INT_TYPE | portNum, |
Fw::InputLogPort * | port | ||
) |
Connect port to Log[portNum].
portNum | The port number |
port | The input port |
Definition at line 478 of file HealthComponentAc.cpp.
void Svc::HealthComponentBase::set_PingSend_OutputPort | ( | NATIVE_INT_TYPE | portNum, |
Svc::InputPingPort * | port | ||
) |
Connect port to PingSend[portNum].
portNum | The port number |
port | The input port |
Definition at line 542 of file HealthComponentAc.cpp.
void Svc::HealthComponentBase::set_Time_OutputPort | ( | NATIVE_INT_TYPE | portNum, |
Fw::InputTimePort * | port | ||
) |
Connect port to Time[portNum].
portNum | The port number |
port | The input port |
Definition at line 510 of file HealthComponentAc.cpp.
void Svc::HealthComponentBase::set_Tlm_OutputPort | ( | NATIVE_INT_TYPE | portNum, |
Fw::InputTlmPort * | port | ||
) |
Connect port to Tlm[portNum].
portNum | The port number |
port | The input port |
Definition at line 524 of file HealthComponentAc.cpp.
void Svc::HealthComponentBase::set_WdogStroke_OutputPort | ( | NATIVE_INT_TYPE | portNum, |
Svc::InputWatchDogPort * | port | ||
) |
Connect port to WdogStroke[portNum].
portNum | The port number |
port | The input port |
Definition at line 556 of file HealthComponentAc.cpp.
|
protected |
Write telemetry channel PingLateWarnings
Number of overrun warnings
arg | The telemetry value |
_tlmTime | Timestamp. Default: unspecified, request from getTime port |
Definition at line 2085 of file HealthComponentAc.cpp.
|
protected |
Invoke output port WdogStroke.
portNum | The port number |
code | Watchdog stroke code |
Definition at line 1041 of file HealthComponentAc.cpp.
|
friend |
Friend class for white-box testing.
Definition at line 46 of file HealthComponentAc.hpp.