![]() |
F´ Flight Software - C/C++ Documentation
devel
A framework for building embedded system applications to NASA flight quality standards.
|
Auto-generated base for SystemResources component. More...
#include <Svc/SystemResources/SystemResourcesComponentAc.hpp>
Public Member Functions | |
void | init (NATIVE_INT_TYPE instance=0) |
Initialize SystemResourcesComponentBase object. More... | |
Fw::InputCmdPort * | get_CmdDisp_InputPort (NATIVE_INT_TYPE portNum) |
Svc::InputSchedPort * | get_run_InputPort (NATIVE_INT_TYPE portNum) |
void | set_CmdReg_OutputPort (NATIVE_INT_TYPE portNum, Fw::InputCmdRegPort *port) |
Connect port to CmdReg[portNum]. More... | |
void | set_CmdStatus_OutputPort (NATIVE_INT_TYPE portNum, Fw::InputCmdResponsePort *port) |
Connect port to CmdStatus[portNum]. More... | |
void | set_Log_OutputPort (NATIVE_INT_TYPE portNum, Fw::InputLogPort *port) |
Connect port to Log[portNum]. More... | |
void | set_Time_OutputPort (NATIVE_INT_TYPE portNum, Fw::InputTimePort *port) |
Connect port to Time[portNum]. More... | |
void | set_Tlm_OutputPort (NATIVE_INT_TYPE portNum, Fw::InputTlmPort *port) |
Connect port to Tlm[portNum]. More... | |
void | regCommands () |
Register commands with the Command Dispatcher. More... | |
![]() | |
void | setIdBase (const U32) |
Set the ID base. More... | |
U32 | getIdBase () const |
Friends | |
class | SystemResourcesComponentBaseFriend |
Friend class for white-box testing. More... | |
Auto-generated base for SystemResources component.
Definition at line 34 of file SystemResourcesComponentAc.hpp.
|
protected |
Enumerations for numbers of special input ports.
Enumerator | |
---|---|
NUM_CMDDISP_INPUT_PORTS |
Definition at line 52 of file SystemResourcesComponentAc.hpp.
|
protected |
Enumerations for numbers of typed input ports.
Enumerator | |
---|---|
NUM_RUN_INPUT_PORTS |
Definition at line 57 of file SystemResourcesComponentAc.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 62 of file SystemResourcesComponentAc.hpp.
|
protected |
Command opcodes.
Enumerator | |
---|---|
OPCODE_ENABLE | A command to enable or disable system resource telemetry. |
OPCODE_VERSION | Report version as EVR. |
Definition at line 72 of file SystemResourcesComponentAc.hpp.
|
protected |
Event IDs.
Enumerator | |
---|---|
EVENTID_FRAMEWORK_VERSION | Version of the git repository. |
EVENTID_PROJECT_VERSION | Version of the git repository. |
Definition at line 78 of file SystemResourcesComponentAc.hpp.
|
protected |
Channel IDs.
Definition at line 84 of file SystemResourcesComponentAc.hpp.
|
protected |
Construct SystemResourcesComponentBase object.
compName | The component name |
Definition at line 496 of file SystemResourcesComponentAc.cpp.
|
protectedvirtual |
Destroy SystemResourcesComponentBase object.
Definition at line 503 of file SystemResourcesComponentAc.cpp.
|
protected |
Emit command response.
opCode | The opcode |
cmdSeq | The command sequence number |
response | The command response |
Definition at line 682 of file SystemResourcesComponentAc.cpp.
|
protectedpure virtual |
Handler for command ENABLE
A command to enable or disable system resource telemetry
opCode | The opcode |
cmdSeq | The command sequence number |
enable | whether or not system resource telemetry is enabled |
|
protected |
Base-class handler function for command ENABLE
A command to enable or disable system resource telemetry
opCode | The opcode |
cmdSeq | The command sequence number |
args | The command argument buffer |
Definition at line 699 of file SystemResourcesComponentAc.cpp.
Fw::InputCmdPort * Svc::SystemResourcesComponentBase::get_CmdDisp_InputPort | ( | NATIVE_INT_TYPE | portNum | ) |
Get special input port at index
portNum | The port number |
Definition at line 260 of file SystemResourcesComponentAc.cpp.
Svc::InputSchedPort * Svc::SystemResourcesComponentBase::get_run_InputPort | ( | NATIVE_INT_TYPE | portNum | ) |
Get typed input port at index
portNum | The port number |
Definition at line 275 of file SystemResourcesComponentAc.cpp.
|
protected |
Get the number of CmdDisp input ports
Definition at line 513 of file SystemResourcesComponentAc.cpp.
|
protected |
Get the number of CmdReg output ports
Definition at line 533 of file SystemResourcesComponentAc.cpp.
|
protected |
Get the number of CmdStatus output ports
Definition at line 539 of file SystemResourcesComponentAc.cpp.
|
protected |
Get the number of Log output ports
Definition at line 545 of file SystemResourcesComponentAc.cpp.
|
protected |
Get the number of run input ports
Definition at line 523 of file SystemResourcesComponentAc.cpp.
|
protected |
Get the number of Time output ports
Definition at line 561 of file SystemResourcesComponentAc.cpp.
|
protected |
Get the number of Tlm output ports
Definition at line 567 of file SystemResourcesComponentAc.cpp.
|
protected |
Get the time
\return The current time
Definition at line 1706 of file SystemResourcesComponentAc.cpp.
void Svc::SystemResourcesComponentBase::init | ( | NATIVE_INT_TYPE | instance = 0 | ) |
Initialize SystemResourcesComponentBase object.
instance | The instance number |
Definition at line 21 of file SystemResourcesComponentAc.cpp.
|
protected |
Check whether port CmdReg is connected
portNum | The port number |
Definition at line 577 of file SystemResourcesComponentAc.cpp.
|
protected |
Check whether port CmdStatus is connected
portNum | The port number |
Definition at line 588 of file SystemResourcesComponentAc.cpp.
|
protected |
Check whether port Log is connected
portNum | The port number |
Definition at line 599 of file SystemResourcesComponentAc.cpp.
|
protected |
Check whether port Time is connected
portNum | The port number |
Definition at line 625 of file SystemResourcesComponentAc.cpp.
|
protected |
Check whether port Tlm is connected
portNum | The port number |
Definition at line 636 of file SystemResourcesComponentAc.cpp.
|
protectedvirtual |
Lock the guarded mutex.
Definition at line 1726 of file SystemResourcesComponentAc.cpp.
|
protected |
Log event FRAMEWORK_VERSION
Version of the git repository.
version | version string |
Definition at line 783 of file SystemResourcesComponentAc.cpp.
|
protected |
Log event PROJECT_VERSION
Version of the git repository.
version | version string |
Definition at line 861 of file SystemResourcesComponentAc.cpp.
void Svc::SystemResourcesComponentBase::regCommands | ( | ) |
Register commands with the Command Dispatcher.
Connect the dispatcher first
Definition at line 478 of file SystemResourcesComponentAc.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 653 of file SystemResourcesComponentAc.cpp.
void Svc::SystemResourcesComponentBase::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 290 of file SystemResourcesComponentAc.cpp.
void Svc::SystemResourcesComponentBase::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 304 of file SystemResourcesComponentAc.cpp.
void Svc::SystemResourcesComponentBase::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 318 of file SystemResourcesComponentAc.cpp.
void Svc::SystemResourcesComponentBase::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 350 of file SystemResourcesComponentAc.cpp.
void Svc::SystemResourcesComponentBase::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 364 of file SystemResourcesComponentAc.cpp.
|
protected |
Write telemetry channel CPU
System's CPU Percentage
arg | The telemetry value |
_tlmTime | Timestamp. Default: unspecified, request from getTime port |
Definition at line 1075 of file SystemResourcesComponentAc.cpp.
|
protected |
Write telemetry channel CPU_00
System's CPU Percentage
arg | The telemetry value |
_tlmTime | Timestamp. Default: unspecified, request from getTime port |
Definition at line 1108 of file SystemResourcesComponentAc.cpp.
|
protected |
Write telemetry channel CPU_01
System's CPU Percentage
arg | The telemetry value |
_tlmTime | Timestamp. Default: unspecified, request from getTime port |
Definition at line 1141 of file SystemResourcesComponentAc.cpp.
|
protected |
Write telemetry channel CPU_02
System's CPU Percentage
arg | The telemetry value |
_tlmTime | Timestamp. Default: unspecified, request from getTime port |
Definition at line 1174 of file SystemResourcesComponentAc.cpp.
|
protected |
Write telemetry channel CPU_03
System's CPU Percentage
arg | The telemetry value |
_tlmTime | Timestamp. Default: unspecified, request from getTime port |
Definition at line 1207 of file SystemResourcesComponentAc.cpp.
|
protected |
Write telemetry channel CPU_04
System's CPU Percentage
arg | The telemetry value |
_tlmTime | Timestamp. Default: unspecified, request from getTime port |
Definition at line 1240 of file SystemResourcesComponentAc.cpp.
|
protected |
Write telemetry channel CPU_05
System's CPU Percentage
arg | The telemetry value |
_tlmTime | Timestamp. Default: unspecified, request from getTime port |
Definition at line 1273 of file SystemResourcesComponentAc.cpp.
|
protected |
Write telemetry channel CPU_06
System's CPU Percentage
arg | The telemetry value |
_tlmTime | Timestamp. Default: unspecified, request from getTime port |
Definition at line 1306 of file SystemResourcesComponentAc.cpp.
|
protected |
Write telemetry channel CPU_07
System's CPU Percentage
arg | The telemetry value |
_tlmTime | Timestamp. Default: unspecified, request from getTime port |
Definition at line 1339 of file SystemResourcesComponentAc.cpp.
|
protected |
Write telemetry channel CPU_08
System's CPU Percentage
arg | The telemetry value |
_tlmTime | Timestamp. Default: unspecified, request from getTime port |
Definition at line 1372 of file SystemResourcesComponentAc.cpp.
|
protected |
Write telemetry channel CPU_09
System's CPU Percentage
arg | The telemetry value |
_tlmTime | Timestamp. Default: unspecified, request from getTime port |
Definition at line 1405 of file SystemResourcesComponentAc.cpp.
|
protected |
Write telemetry channel CPU_10
System's CPU Percentage
arg | The telemetry value |
_tlmTime | Timestamp. Default: unspecified, request from getTime port |
Definition at line 1438 of file SystemResourcesComponentAc.cpp.
|
protected |
Write telemetry channel CPU_11
System's CPU Percentage
arg | The telemetry value |
_tlmTime | Timestamp. Default: unspecified, request from getTime port |
Definition at line 1471 of file SystemResourcesComponentAc.cpp.
|
protected |
Write telemetry channel CPU_12
System's CPU Percentage
arg | The telemetry value |
_tlmTime | Timestamp. Default: unspecified, request from getTime port |
Definition at line 1504 of file SystemResourcesComponentAc.cpp.
|
protected |
Write telemetry channel CPU_13
System's CPU Percentage
arg | The telemetry value |
_tlmTime | Timestamp. Default: unspecified, request from getTime port |
Definition at line 1537 of file SystemResourcesComponentAc.cpp.
|
protected |
Write telemetry channel CPU_14
System's CPU Percentage
arg | The telemetry value |
_tlmTime | Timestamp. Default: unspecified, request from getTime port |
Definition at line 1570 of file SystemResourcesComponentAc.cpp.
|
protected |
Write telemetry channel CPU_15
System's CPU Percentage
arg | The telemetry value |
_tlmTime | Timestamp. Default: unspecified, request from getTime port |
Definition at line 1603 of file SystemResourcesComponentAc.cpp.
|
protected |
Write telemetry channel FRAMEWORK_VERSION
Software framework version
arg | The telemetry value |
_tlmTime | Timestamp. Default: unspecified, request from getTime port |
Definition at line 1636 of file SystemResourcesComponentAc.cpp.
|
protected |
Write telemetry channel MEMORY_TOTAL
Total system memory in KB
arg | The telemetry value |
_tlmTime | Timestamp. Default: unspecified, request from getTime port |
Definition at line 943 of file SystemResourcesComponentAc.cpp.
|
protected |
Write telemetry channel MEMORY_USED
System memory used in KB
arg | The telemetry value |
_tlmTime | Timestamp. Default: unspecified, request from getTime port |
Definition at line 976 of file SystemResourcesComponentAc.cpp.
|
protected |
Write telemetry channel NON_VOLATILE_FREE
System non-volatile available in KB
arg | The telemetry value |
_tlmTime | Timestamp. Default: unspecified, request from getTime port |
Definition at line 1042 of file SystemResourcesComponentAc.cpp.
|
protected |
Write telemetry channel NON_VOLATILE_TOTAL
System non-volatile available in KB
arg | The telemetry value |
_tlmTime | Timestamp. Default: unspecified, request from getTime port |
Definition at line 1009 of file SystemResourcesComponentAc.cpp.
|
protected |
Write telemetry channel PROJECT_VERSION
Software project version
arg | The telemetry value |
_tlmTime | Timestamp. Default: unspecified, request from getTime port |
Definition at line 1669 of file SystemResourcesComponentAc.cpp.
|
protectedvirtual |
Unlock the guarded mutex.
Definition at line 1732 of file SystemResourcesComponentAc.cpp.
|
protectedpure virtual |
Handler for command VERSION
Report version as EVR
opCode | The opcode |
cmdSeq | The command sequence number |
|
protected |
Base-class handler function for command VERSION
Report version as EVR
opCode | The opcode |
cmdSeq | The command sequence number |
args | The command argument buffer |
Definition at line 750 of file SystemResourcesComponentAc.cpp.
|
friend |
Friend class for white-box testing.
Definition at line 43 of file SystemResourcesComponentAc.hpp.