![]() |
F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
|
Auto-generated base for Health component. More...
#include <Svc/Health/HealthComponentAc.hpp>
Public Member Functions | |
| void | init (FwSizeType queueDepth, FwEnumStoreType instance=0) |
| Initialize HealthComponentBase object. More... | |
| Fw::InputCmdPort * | get_CmdDisp_InputPort (FwIndexType portNum) |
| Svc::InputPingPort * | get_PingReturn_InputPort (FwIndexType portNum) |
| Svc::InputSchedPort * | get_Run_InputPort (FwIndexType portNum) |
| void | set_CmdReg_OutputPort (FwIndexType portNum, Fw::InputCmdRegPort *port) |
| Connect port to CmdReg[portNum]. More... | |
| void | set_CmdStatus_OutputPort (FwIndexType portNum, Fw::InputCmdResponsePort *port) |
| Connect port to CmdStatus[portNum]. More... | |
| void | set_Log_OutputPort (FwIndexType portNum, Fw::InputLogPort *port) |
| Connect port to Log[portNum]. More... | |
| void | set_Time_OutputPort (FwIndexType portNum, Fw::InputTimePort *port) |
| Connect port to Time[portNum]. More... | |
| void | set_Tlm_OutputPort (FwIndexType portNum, Fw::InputTlmPort *port) |
| Connect port to Tlm[portNum]. More... | |
| void | set_PingSend_OutputPort (FwIndexType portNum, Svc::InputPingPort *port) |
| Connect port to PingSend[portNum]. More... | |
| void | set_WdogStroke_OutputPort (FwIndexType portNum, Svc::InputWatchDogPort *port) |
| Connect port to WdogStroke[portNum]. More... | |
| void | regCommands () |
| Register commands with the Command Dispatcher. More... | |
Public Member Functions inherited from Fw::QueuedComponentBase | |
| void | deinit () override |
| Allows de-initialization on teardown. More... | |
Public Member Functions inherited from Fw::PassiveComponentBase | |
| void | setIdBase (const FwIdType) |
| Set the ID base. More... | |
| FwIdType | getIdBase () const |
Protected Member Functions | |
| HealthComponentBase (const char *compName="") | |
| Construct HealthComponentBase object. More... | |
| virtual | ~HealthComponentBase () |
| Destroy HealthComponentBase object. More... | |
| bool | isConnected_CmdReg_OutputPort (FwIndexType portNum) const |
| bool | isConnected_CmdStatus_OutputPort (FwIndexType portNum) const |
| bool | isConnected_Log_OutputPort (FwIndexType portNum) const |
| bool | isConnected_Time_OutputPort (FwIndexType portNum) const |
| bool | isConnected_Tlm_OutputPort (FwIndexType portNum) const |
| bool | isConnected_PingSend_OutputPort (FwIndexType portNum) const |
| bool | isConnected_WdogStroke_OutputPort (FwIndexType portNum) const |
| void | CmdDisp_handlerBase (FwIndexType portNum, FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args) |
| Handler base-class function for input port CmdDisp. More... | |
| virtual void | PingReturn_handler (FwIndexType portNum, U32 key)=0 |
| Handler for input port PingReturn. More... | |
| virtual void | Run_handler (FwIndexType portNum, U32 context)=0 |
| Handler for input port Run. More... | |
| void | PingReturn_handlerBase (FwIndexType portNum, U32 key) |
| Handler base-class function for input port PingReturn. More... | |
| void | Run_handlerBase (FwIndexType portNum, U32 context) |
| Handler base-class function for input port Run. More... | |
| virtual void | PingReturn_preMsgHook (FwIndexType portNum, U32 key) |
| Pre-message hook for async input port PingReturn. More... | |
| void | PingSend_out (FwIndexType portNum, U32 key) const |
| Invoke output port PingSend. More... | |
| void | WdogStroke_out (FwIndexType portNum, U32 code) const |
| Invoke output port WdogStroke. More... | |
| void | cmdResponse_out (FwOpcodeType opCode, U32 cmdSeq, Fw::CmdResponse response) |
| Emit command response. More... | |
| virtual void | HLTH_ENABLE_cmdHandler (FwOpcodeType opCode, U32 cmdSeq, const Fw::Enabled &enable)=0 |
| virtual void | HLTH_PING_ENABLE_cmdHandler (FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &entry, const Fw::Enabled &enable)=0 |
| virtual void | HLTH_CHNG_PING_cmdHandler (FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &entry, U32 warningValue, U32 fatalValue)=0 |
| void | HLTH_ENABLE_cmdHandlerBase (FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args) |
| void | HLTH_PING_ENABLE_cmdHandlerBase (FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args) |
| void | HLTH_CHNG_PING_cmdHandlerBase (FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args) |
| virtual void | HLTH_ENABLE_preMsgHook (FwOpcodeType opCode, U32 cmdSeq) |
| Pre-message hook for command HLTH_ENABLE. More... | |
| virtual void | HLTH_PING_ENABLE_preMsgHook (FwOpcodeType opCode, U32 cmdSeq) |
| Pre-message hook for command HLTH_PING_ENABLE. More... | |
| virtual void | HLTH_CHNG_PING_preMsgHook (FwOpcodeType opCode, U32 cmdSeq) |
| Pre-message hook for command HLTH_CHNG_PING. More... | |
| void | log_WARNING_HI_HLTH_PING_WARN (const Fw::StringBase &entry) const |
| void | log_FATAL_HLTH_PING_LATE (const Fw::StringBase &entry) const |
| void | log_FATAL_HLTH_PING_WRONG_KEY (const Fw::StringBase &entry, U32 badKey) const |
| void | log_ACTIVITY_HI_HLTH_CHECK_ENABLE (const Fw::Enabled &enabled) const |
| void | log_ACTIVITY_HI_HLTH_CHECK_PING (const Fw::Enabled &enabled, const Fw::StringBase &entry) const |
| void | log_WARNING_LO_HLTH_CHECK_LOOKUP_ERROR (const Fw::StringBase &entry) const |
| void | log_ACTIVITY_HI_HLTH_PING_UPDATED (const Fw::StringBase &entry, U32 warn, U32 fatal) const |
| void | log_WARNING_HI_HLTH_PING_INVALID_VALUES (const Fw::StringBase &entry, U32 warn, U32 fatal) const |
| void | tlmWrite (FwChanIdType id, Fw::TlmBuffer &_tlmBuff, Fw::Time _tlmTime=Fw::Time()) const |
| void | tlmWrite_PingLateWarnings (U32 arg, Fw::Time _tlmTime=Fw::Time()) const |
| Fw::Time | getTime () const |
| virtual MsgDispatchStatus | doDispatch () |
| Called in the message loop to dispatch a message from the queue. More... | |
| MsgDispatchStatus | dispatchCurrentMessages () |
| Dispatch all current messages unless ERROR or EXIT occurs. More... | |
Protected Member Functions inherited from Fw::QueuedComponentBase | |
| QueuedComponentBase (const char *name) | |
| Constructor. More... | |
| virtual | ~QueuedComponentBase () |
| Destructor. More... | |
| void | init (FwEnumStoreType instance) |
| initialization function More... | |
| Os::Queue::Status | createQueue (FwSizeType depth, FwSizeType msgSize) |
| MsgDispatchStatus | dispatchAvailableMessages () |
| dispatches all messages currently in the queue, returning status of the dispatch More... | |
| FwSizeType | getNumMsgsDropped () |
| return number of messages dropped More... | |
| void | incNumMsgDropped () |
| increment the number of messages dropped More... | |
Protected Member Functions inherited from Fw::PassiveComponentBase | |
| PassiveComponentBase (const char *name) | |
| Named constructor. More... | |
| virtual | ~PassiveComponentBase () |
| Destructor. More... | |
| void | init (FwEnumStoreType instance) |
| Initialization function. More... | |
| FwEnumStoreType | getInstance () const |
Protected Member Functions inherited from Fw::ObjBase | |
| ObjBase (const char *name) | |
| ObjBase constructor. More... | |
| virtual | ~ObjBase () |
| Destructor. More... | |
| void | init () |
| Object initializer. More... | |
Static Protected Member Functions | |
| static constexpr FwIndexType | getNum_CmdDisp_InputPorts () |
| static constexpr FwIndexType | getNum_PingReturn_InputPorts () |
| static constexpr FwIndexType | getNum_Run_InputPorts () |
| static constexpr FwIndexType | getNum_CmdReg_OutputPorts () |
| static constexpr FwIndexType | getNum_CmdStatus_OutputPorts () |
| static constexpr FwIndexType | getNum_Log_OutputPorts () |
| static constexpr FwIndexType | getNum_Time_OutputPorts () |
| static constexpr FwIndexType | getNum_Tlm_OutputPorts () |
| static constexpr FwIndexType | getNum_PingSend_OutputPorts () |
| static constexpr FwIndexType | getNum_WdogStroke_OutputPorts () |
Friends | |
| class | HealthTesterBase |
| Friend class tester to support autocoded test harness. More... | |
| class | HealthTester |
| Friend class tester implementation to support white-box testing. More... | |
Additional Inherited Members | |
Public Types inherited from Fw::QueuedComponentBase | |
| enum | MsgDispatchStatus { MSG_DISPATCH_OK, MSG_DISPATCH_EMPTY, MSG_DISPATCH_ERROR, MSG_DISPATCH_EXIT } |
Protected Attributes inherited from Fw::QueuedComponentBase | |
| 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 42 of file HealthComponentAc.hpp.
|
protected |
Enumerations for numbers of special input ports.
| Enumerator | |
|---|---|
| NUM_CMDDISP_INPUT_PORTS | |
Definition at line 62 of file HealthComponentAc.hpp.
|
protected |
Enumerations for numbers of typed input ports.
| Enumerator | |
|---|---|
| NUM_PINGRETURN_INPUT_PORTS | |
| NUM_RUN_INPUT_PORTS | |
Definition at line 67 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 73 of file HealthComponentAc.hpp.
|
protected |
Enumerations for numbers of typed output ports.
| Enumerator | |
|---|---|
| NUM_PINGSEND_OUTPUT_PORTS | |
| NUM_WDOGSTROKE_OUTPUT_PORTS | |
Definition at line 83 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 89 of file HealthComponentAc.hpp.
|
protected |
Event IDs.
Definition at line 96 of file HealthComponentAc.hpp.
|
protected |
Channel IDs.
| Enumerator | |
|---|---|
| CHANNELID_PINGLATEWARNINGS | Channel ID for PingLateWarnings. |
Definition at line 108 of file HealthComponentAc.hpp.
|
protected |
Construct HealthComponentBase object.
| compName | The component name |
Definition at line 673 of file HealthComponentAc.cpp.
|
protectedvirtual |
Destroy HealthComponentBase object.
Definition at line 680 of file HealthComponentAc.cpp.
|
protected |
Handler base-class function for input port CmdDisp.
| portNum | The port number |
| opCode | The opcode |
| cmdSeq | The command sequence number |
| args | The command argument buffer |
Definition at line 800 of file HealthComponentAc.cpp.
|
protected |
Emit command response.
| opCode | The opcode |
| cmdSeq | The command sequence number |
| response | The command response |
Definition at line 993 of file HealthComponentAc.cpp.
|
protected |
Dispatch all current messages unless ERROR or EXIT occurs.
Definition at line 2382 of file HealthComponentAc.cpp.
|
protectedvirtual |
Called in the message loop to dispatch a message from the queue.
Implements Fw::QueuedComponentBase.
Definition at line 2065 of file HealthComponentAc.cpp.
| Fw::InputCmdPort * Svc::HealthComponentBase::get_CmdDisp_InputPort | ( | FwIndexType | portNum | ) |
Get special input port at index
| portNum | The port number |
Definition at line 337 of file HealthComponentAc.cpp.
| Svc::InputPingPort * Svc::HealthComponentBase::get_PingReturn_InputPort | ( | FwIndexType | portNum | ) |
Get typed input port at index
| portNum | The port number |
Definition at line 356 of file HealthComponentAc.cpp.
| Svc::InputSchedPort * Svc::HealthComponentBase::get_Run_InputPort | ( | FwIndexType | portNum | ) |
Get typed input port at index
| portNum | The port number |
Definition at line 367 of file HealthComponentAc.cpp.
|
inlinestaticprotected |
Get the number of CmdDisp input ports
Definition at line 343 of file HealthComponentAc.hpp.
|
inlinestaticprotected |
Get the number of CmdReg output ports
Definition at line 376 of file HealthComponentAc.hpp.
|
inlinestaticprotected |
Get the number of CmdStatus output ports
Definition at line 383 of file HealthComponentAc.hpp.
|
inlinestaticprotected |
Get the number of Log output ports
Definition at line 390 of file HealthComponentAc.hpp.
|
inlinestaticprotected |
Get the number of PingReturn input ports
Definition at line 356 of file HealthComponentAc.hpp.
|
inlinestaticprotected |
Get the number of PingSend output ports
Definition at line 428 of file HealthComponentAc.hpp.
|
inlinestaticprotected |
Get the number of Run input ports
Definition at line 363 of file HealthComponentAc.hpp.
|
inlinestaticprotected |
Get the number of Time output ports
Definition at line 408 of file HealthComponentAc.hpp.
|
inlinestaticprotected |
Get the number of Tlm output ports
Definition at line 415 of file HealthComponentAc.hpp.
|
inlinestaticprotected |
Get the number of WdogStroke output ports
Definition at line 435 of file HealthComponentAc.hpp.
|
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 1128 of file HealthComponentAc.cpp.
|
protectedvirtual |
Pre-message hook for command HLTH_CHNG_PING.
| opCode | The opcode |
| cmdSeq | The command sequence number |
Definition at line 1217 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 1010 of file HealthComponentAc.cpp.
|
protectedvirtual |
Pre-message hook for command HLTH_ENABLE.
| opCode | The opcode |
| cmdSeq | The command sequence number |
Definition at line 1195 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 1069 of file HealthComponentAc.cpp.
|
protectedvirtual |
Pre-message hook for command HLTH_PING_ENABLE.
| opCode | The opcode |
| cmdSeq | The command sequence number |
Definition at line 1206 of file HealthComponentAc.cpp.
| void Svc::HealthComponentBase::init | ( | FwSizeType | queueDepth, |
| FwEnumStoreType | instance = 0 |
||
| ) |
Initialize HealthComponentBase object.
| queueDepth | The queue depth |
| instance | The instance number |
Definition at line 65 of file HealthComponentAc.cpp.
|
protected |
Check whether port CmdReg is connected
| portNum | The port number |
Definition at line 692 of file HealthComponentAc.cpp.
|
protected |
Check whether port CmdStatus is connected
| portNum | The port number |
Definition at line 703 of file HealthComponentAc.cpp.
|
protected |
Check whether port Log is connected
| portNum | The port number |
Definition at line 714 of file HealthComponentAc.cpp.
|
protected |
Check whether port PingSend is connected
| portNum | The port number |
Definition at line 770 of file HealthComponentAc.cpp.
|
protected |
Check whether port Time is connected
| portNum | The port number |
Definition at line 740 of file HealthComponentAc.cpp.
|
protected |
Check whether port Tlm is connected
| portNum | The port number |
Definition at line 751 of file HealthComponentAc.cpp.
|
protected |
Check whether port WdogStroke is connected
| portNum | The port number |
Definition at line 781 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 1503 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 1588 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 1761 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 1307 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 1395 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 1874 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 1232 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 1686 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 852 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 932 of file HealthComponentAc.cpp.
|
protected |
Invoke output port PingSend.
| portNum | The port number |
| key | Value to return to pinger |
Definition at line 947 of file HealthComponentAc.cpp.
| void Svc::HealthComponentBase::regCommands | ( | ) |
Register commands with the Command Dispatcher.
Connect the dispatcher first
Definition at line 648 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 905 of file HealthComponentAc.cpp.
| void Svc::HealthComponentBase::set_CmdReg_OutputPort | ( | FwIndexType | portNum, |
| Fw::InputCmdRegPort * | port | ||
| ) |
Connect port to CmdReg[portNum].
| portNum | The port number |
| port | The input port |
Definition at line 386 of file HealthComponentAc.cpp.
| void Svc::HealthComponentBase::set_CmdStatus_OutputPort | ( | FwIndexType | portNum, |
| Fw::InputCmdResponsePort * | port | ||
| ) |
Connect port to CmdStatus[portNum].
| portNum | The port number |
| port | The input port |
Definition at line 400 of file HealthComponentAc.cpp.
| void Svc::HealthComponentBase::set_Log_OutputPort | ( | FwIndexType | portNum, |
| Fw::InputLogPort * | port | ||
| ) |
Connect port to Log[portNum].
| portNum | The port number |
| port | The input port |
Definition at line 414 of file HealthComponentAc.cpp.
| void Svc::HealthComponentBase::set_PingSend_OutputPort | ( | FwIndexType | portNum, |
| Svc::InputPingPort * | port | ||
| ) |
Connect port to PingSend[portNum].
| portNum | The port number |
| port | The input port |
Definition at line 482 of file HealthComponentAc.cpp.
| void Svc::HealthComponentBase::set_Time_OutputPort | ( | FwIndexType | portNum, |
| Fw::InputTimePort * | port | ||
| ) |
Connect port to Time[portNum].
| portNum | The port number |
| port | The input port |
Definition at line 446 of file HealthComponentAc.cpp.
| void Svc::HealthComponentBase::set_Tlm_OutputPort | ( | FwIndexType | portNum, |
| Fw::InputTlmPort * | port | ||
| ) |
Connect port to Tlm[portNum].
| portNum | The port number |
| port | The input port |
Definition at line 460 of file HealthComponentAc.cpp.
| void Svc::HealthComponentBase::set_WdogStroke_OutputPort | ( | FwIndexType | portNum, |
| Svc::InputWatchDogPort * | port | ||
| ) |
Connect port to WdogStroke[portNum].
| portNum | The port number |
| port | The input port |
Definition at line 496 of file HealthComponentAc.cpp.
|
protected |
Write telemetry channel given its local id and serialized value. Warning: This is a low level telemetry interface that does not guarentee channel type safety. It is up to the caller to make sure the serialized data matches the definition in the model. Update on change semantics are ignored, this telemetry is always written
| id | The channel id |
| _tlmBuff | The serialized telemetry value |
| _tlmTime | Timestamp. Default: unspecified, request from getTime port |
Definition at line 1991 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 2022 of file HealthComponentAc.cpp.
|
protected |
Invoke output port WdogStroke.
| portNum | The port number |
| code | Watchdog stroke code |
Definition at line 967 of file HealthComponentAc.cpp.
|
friend |
Friend class tester implementation to support white-box testing.
Definition at line 53 of file HealthComponentAc.hpp.
|
friend |
Friend class tester to support autocoded test harness.
Definition at line 51 of file HealthComponentAc.hpp.