![]() |
F´ Flight Software - C/C++ Documentation
devel
A framework for building embedded system applications to NASA flight quality standards.
|
Auto-generated base for ActiveLogger component. More...
#include <Svc/ActiveLogger/ActiveLoggerComponentAc.hpp>
Public Member Functions | |
void | init (NATIVE_INT_TYPE queueDepth, NATIVE_INT_TYPE instance=0) |
Initialize ActiveLoggerComponentBase object. More... | |
Fw::InputCmdPort * | get_CmdDisp_InputPort (NATIVE_INT_TYPE portNum) |
Fw::InputLogPort * | get_LogRecv_InputPort (NATIVE_INT_TYPE portNum) |
Svc::InputPingPort * | get_pingIn_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_FatalAnnounce_OutputPort (NATIVE_INT_TYPE portNum, Svc::InputFatalEventPort *port) |
Connect port to FatalAnnounce[portNum]. More... | |
void | set_PktSend_OutputPort (NATIVE_INT_TYPE portNum, Fw::InputComPort *port) |
Connect port to PktSend[portNum]. More... | |
void | set_pingOut_OutputPort (NATIVE_INT_TYPE portNum, Svc::InputPingPort *port) |
Connect port to pingOut[portNum]. More... | |
void | regCommands () |
Register commands with the Command Dispatcher. More... | |
![]() | |
void | start (NATIVE_UINT_TYPE priority=Os::Task::TASK_DEFAULT, NATIVE_UINT_TYPE stackSize=Os::Task::TASK_DEFAULT, NATIVE_UINT_TYPE cpuAffinity=Os::Task::TASK_DEFAULT, NATIVE_UINT_TYPE identifier=Os::Task::TASK_DEFAULT) |
called by instantiator when task is to be started More... | |
DEPRECATED (void start(NATIVE_INT_TYPE identifier, NATIVE_INT_TYPE priority, NATIVE_INT_TYPE stackSize, NATIVE_INT_TYPE cpuAffinity=-1), "Please switch to start(NATIVE_UINT_TYPE priority, NATIVE_UINT_TYPE stackSize, NATIVE_UINT_TYPE cpuAffinity, NATIVE_UINT_TYPE identifier)") | |
called by instantiator when task is to be started More... | |
void | exit () |
exit task in active component More... | |
Os::Task::TaskStatus | join (void **value_ptr) |
provide return value of thread if value_ptr is not NULL More... | |
![]() | |
void | setIdBase (const U32) |
Set the ID base. More... | |
U32 | getIdBase () const |
Protected Types | |
enum | { NUM_CMDDISP_INPUT_PORTS = 1 } |
Enumerations for numbers of special input ports. More... | |
enum | { NUM_LOGRECV_INPUT_PORTS = 1 , NUM_PINGIN_INPUT_PORTS = 1 } |
Enumerations for numbers of typed input ports. More... | |
enum | { NUM_CMDREG_OUTPUT_PORTS = 1 , NUM_CMDSTATUS_OUTPUT_PORTS = 1 , NUM_LOG_OUTPUT_PORTS = 1 , NUM_LOGTEXT_OUTPUT_PORTS = 1 , NUM_TIME_OUTPUT_PORTS = 1 } |
Enumerations for numbers of special output ports. More... | |
enum | { NUM_FATALANNOUNCE_OUTPUT_PORTS = 1 , NUM_PKTSEND_OUTPUT_PORTS = 1 , NUM_PINGOUT_OUTPUT_PORTS = 1 } |
Enumerations for numbers of typed output ports. More... | |
enum | { OPCODE_SET_EVENT_FILTER = 0x0 , OPCODE_SET_ID_FILTER = 0x2 , OPCODE_DUMP_FILTER_STATE = 0x3 } |
Command opcodes. More... | |
enum | { EVENTID_SEVERITY_FILTER_STATE = 0x0 , EVENTID_ID_FILTER_ENABLED = 0x1 , EVENTID_ID_FILTER_LIST_FULL = 0x2 , EVENTID_ID_FILTER_REMOVED = 0x3 , EVENTID_ID_FILTER_NOT_FOUND = 0x4 } |
Event IDs. More... | |
Friends | |
class | ActiveLoggerComponentBaseFriend |
Friend class for white-box testing. More... | |
Additional Inherited Members | |
![]() | |
enum | { ACTIVE_COMPONENT_EXIT } |
![]() | |
enum | MsgDispatchStatus { MSG_DISPATCH_OK , MSG_DISPATCH_EMPTY , MSG_DISPATCH_ERROR , MSG_DISPATCH_EXIT } |
![]() | |
Os::Task | m_task |
task object for active component More... | |
![]() | |
Os::Queue | m_queue |
queue object for active component More... | |
Auto-generated base for ActiveLogger component.
A component for logging events
Definition at line 40 of file ActiveLoggerComponentAc.hpp.
|
protected |
Enumerations for numbers of special input ports.
Enumerator | |
---|---|
NUM_CMDDISP_INPUT_PORTS |
Definition at line 58 of file ActiveLoggerComponentAc.hpp.
|
protected |
Enumerations for numbers of typed input ports.
Enumerator | |
---|---|
NUM_LOGRECV_INPUT_PORTS | |
NUM_PINGIN_INPUT_PORTS |
Definition at line 63 of file ActiveLoggerComponentAc.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 |
Definition at line 69 of file ActiveLoggerComponentAc.hpp.
|
protected |
Enumerations for numbers of typed output ports.
Enumerator | |
---|---|
NUM_FATALANNOUNCE_OUTPUT_PORTS | |
NUM_PKTSEND_OUTPUT_PORTS | |
NUM_PINGOUT_OUTPUT_PORTS |
Definition at line 78 of file ActiveLoggerComponentAc.hpp.
|
protected |
Command opcodes.
Definition at line 85 of file ActiveLoggerComponentAc.hpp.
|
protected |
Event IDs.
Definition at line 92 of file ActiveLoggerComponentAc.hpp.
|
protected |
Construct ActiveLoggerComponentBase object.
compName | The component name |
Definition at line 735 of file ActiveLoggerComponentAc.cpp.
|
protectedvirtual |
Destroy ActiveLoggerComponentBase object.
Definition at line 742 of file ActiveLoggerComponentAc.cpp.
|
protected |
Emit command response.
opCode | The opcode |
cmdSeq | The command sequence number |
response | The command response |
Definition at line 1158 of file ActiveLoggerComponentAc.cpp.
|
protectedpure virtual |
Handler for command DUMP_FILTER_STATE
Dump the filter states via events
opCode | The opcode |
cmdSeq | The command sequence number |
|
protected |
Base-class handler function for command DUMP_FILTER_STATE
Dump the filter states via events
opCode | The opcode |
cmdSeq | The command sequence number |
args | The command argument buffer |
Definition at line 1295 of file ActiveLoggerComponentAc.cpp.
|
protectedvirtual |
Pre-message hook for command DUMP_FILTER_STATE.
opCode | The opcode |
cmdSeq | The command sequence number |
Definition at line 1373 of file ActiveLoggerComponentAc.cpp.
|
protected |
Invoke output port FatalAnnounce.
portNum | The port number |
Id | The ID of the FATAL event |
Definition at line 1039 of file ActiveLoggerComponentAc.cpp.
Fw::InputCmdPort * Svc::ActiveLoggerComponentBase::get_CmdDisp_InputPort | ( | NATIVE_INT_TYPE | portNum | ) |
Get special input port at index
portNum | The port number |
Definition at line 416 of file ActiveLoggerComponentAc.cpp.
Fw::InputLogPort * Svc::ActiveLoggerComponentBase::get_LogRecv_InputPort | ( | NATIVE_INT_TYPE | portNum | ) |
Get typed input port at index
portNum | The port number |
Definition at line 431 of file ActiveLoggerComponentAc.cpp.
Svc::InputPingPort * Svc::ActiveLoggerComponentBase::get_pingIn_InputPort | ( | NATIVE_INT_TYPE | portNum | ) |
Get typed input port at index
portNum | The port number |
Definition at line 442 of file ActiveLoggerComponentAc.cpp.
|
protected |
Get the number of CmdDisp input ports
Definition at line 752 of file ActiveLoggerComponentAc.cpp.
|
protected |
Get the number of CmdReg output ports
Definition at line 778 of file ActiveLoggerComponentAc.cpp.
|
protected |
Get the number of CmdStatus output ports
Definition at line 784 of file ActiveLoggerComponentAc.cpp.
|
protected |
Get the number of FatalAnnounce output ports
Definition at line 816 of file ActiveLoggerComponentAc.cpp.
|
protected |
Get the number of Log output ports
Definition at line 790 of file ActiveLoggerComponentAc.cpp.
|
protected |
Get the number of LogRecv input ports
Definition at line 762 of file ActiveLoggerComponentAc.cpp.
|
protected |
Get the number of pingIn input ports
Definition at line 768 of file ActiveLoggerComponentAc.cpp.
|
protected |
Get the number of pingOut output ports
Definition at line 828 of file ActiveLoggerComponentAc.cpp.
|
protected |
Get the number of PktSend output ports
Definition at line 822 of file ActiveLoggerComponentAc.cpp.
|
protected |
Get the number of Time output ports
Definition at line 806 of file ActiveLoggerComponentAc.cpp.
|
protected |
void Svc::ActiveLoggerComponentBase::init | ( | NATIVE_INT_TYPE | queueDepth, |
NATIVE_INT_TYPE | instance = 0 |
||
) |
Initialize ActiveLoggerComponentBase object.
queueDepth | The queue depth |
instance | The instance number |
Definition at line 79 of file ActiveLoggerComponentAc.cpp.
|
protected |
Check whether port CmdReg is connected
portNum | The port number |
Definition at line 838 of file ActiveLoggerComponentAc.cpp.
|
protected |
Check whether port CmdStatus is connected
portNum | The port number |
Definition at line 849 of file ActiveLoggerComponentAc.cpp.
|
protected |
Check whether port FatalAnnounce is connected
portNum | The port number |
Definition at line 901 of file ActiveLoggerComponentAc.cpp.
|
protected |
Check whether port Log is connected
portNum | The port number |
Definition at line 860 of file ActiveLoggerComponentAc.cpp.
|
protected |
Check whether port pingOut is connected
portNum | The port number |
Definition at line 923 of file ActiveLoggerComponentAc.cpp.
|
protected |
Check whether port PktSend is connected
portNum | The port number |
Definition at line 912 of file ActiveLoggerComponentAc.cpp.
|
protected |
Check whether port Time is connected
portNum | The port number |
Definition at line 886 of file ActiveLoggerComponentAc.cpp.
|
protected |
Log event ID_FILTER_ENABLED
Indicate ID is filtered
ID | The ID filtered |
Definition at line 1499 of file ActiveLoggerComponentAc.cpp.
|
protected |
Log event ID_FILTER_REMOVED
Removed an ID from the filter
ID | The ID removed |
Definition at line 1675 of file ActiveLoggerComponentAc.cpp.
|
protected |
Log event SEVERITY_FILTER_STATE
Dump severity filter state
severity | The severity level |
Definition at line 1388 of file ActiveLoggerComponentAc.cpp.
|
protected |
Log event ID_FILTER_LIST_FULL
Attempted to add ID to full ID filter ID
ID | The ID filtered |
Definition at line 1587 of file ActiveLoggerComponentAc.cpp.
|
protected |
Log event ID_FILTER_NOT_FOUND
ID not in filter
ID | The ID removed |
Definition at line 1763 of file ActiveLoggerComponentAc.cpp.
|
protectedpure virtual |
Handler for input port LogRecv.
portNum | The port number |
id | Log ID |
timeTag | Time Tag |
severity | The severity argument |
args | Buffer containing serialized log entry |
|
protected |
Handler base-class function for input port LogRecv.
portNum | The port number |
id | Log ID |
timeTag | Time Tag |
severity | The severity argument |
args | Buffer containing serialized log entry |
Definition at line 940 of file ActiveLoggerComponentAc.cpp.
|
protectedpure virtual |
Internal interface handler for loqQueue.
id | Log ID |
timeTag | Time Tag |
severity | The severity argument |
args | Buffer containing serialized log entry |
|
protected |
Internal interface base-class function for loqQueue.
id | Log ID |
timeTag | Time Tag |
severity | The severity argument |
args | Buffer containing serialized log entry |
Definition at line 1090 of file ActiveLoggerComponentAc.cpp.
|
protectedpure virtual |
Handler for input port pingIn.
portNum | The port number |
key | Value to return to pinger |
|
protected |
Handler base-class function for input port pingIn.
portNum | The port number |
key | Value to return to pinger |
Definition at line 965 of file ActiveLoggerComponentAc.cpp.
|
protectedvirtual |
Pre-message hook for async input port pingIn.
portNum | The port number |
key | Value to return to pinger |
Definition at line 1026 of file ActiveLoggerComponentAc.cpp.
|
protected |
Invoke output port pingOut.
portNum | The port number |
key | Value to return to pinger |
Definition at line 1071 of file ActiveLoggerComponentAc.cpp.
|
protected |
Invoke output port PktSend.
portNum | The port number |
data | Buffer containing packet data |
context | Call context value; meaning chosen by user |
Definition at line 1054 of file ActiveLoggerComponentAc.cpp.
void Svc::ActiveLoggerComponentBase::regCommands | ( | ) |
Register commands with the Command Dispatcher.
Connect the dispatcher first
Definition at line 713 of file ActiveLoggerComponentAc.cpp.
void Svc::ActiveLoggerComponentBase::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 457 of file ActiveLoggerComponentAc.cpp.
void Svc::ActiveLoggerComponentBase::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 471 of file ActiveLoggerComponentAc.cpp.
|
protectedpure virtual |
Handler for command SET_EVENT_FILTER
Set filter for reporting events. Events are not stored in component.
opCode | The opcode |
cmdSeq | The command sequence number |
filterLevel | Filter level |
filterEnabled | Filter state |
|
protected |
Base-class handler function for command SET_EVENT_FILTER
Set filter for reporting events. Events are not stored in component.
opCode | The opcode |
cmdSeq | The command sequence number |
args | The command argument buffer |
Definition at line 1175 of file ActiveLoggerComponentAc.cpp.
void Svc::ActiveLoggerComponentBase::set_FatalAnnounce_OutputPort | ( | NATIVE_INT_TYPE | portNum, |
Svc::InputFatalEventPort * | port | ||
) |
Connect port to FatalAnnounce[portNum].
portNum | The port number |
port | The input port |
Definition at line 535 of file ActiveLoggerComponentAc.cpp.
|
protectedpure virtual |
Handler for command SET_ID_FILTER
Filter a particular ID
opCode | The opcode |
cmdSeq | The command sequence number |
idFilterEnabled | ID filter state |
|
protected |
Base-class handler function for command SET_ID_FILTER
Filter a particular ID
opCode | The opcode |
cmdSeq | The command sequence number |
args | The command argument buffer |
Definition at line 1236 of file ActiveLoggerComponentAc.cpp.
|
protectedvirtual |
Pre-message hook for command SET_ID_FILTER.
opCode | The opcode |
cmdSeq | The command sequence number |
Definition at line 1362 of file ActiveLoggerComponentAc.cpp.
void Svc::ActiveLoggerComponentBase::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 485 of file ActiveLoggerComponentAc.cpp.
void Svc::ActiveLoggerComponentBase::set_pingOut_OutputPort | ( | NATIVE_INT_TYPE | portNum, |
Svc::InputPingPort * | port | ||
) |
Connect port to pingOut[portNum].
portNum | The port number |
port | The input port |
Definition at line 563 of file ActiveLoggerComponentAc.cpp.
void Svc::ActiveLoggerComponentBase::set_PktSend_OutputPort | ( | NATIVE_INT_TYPE | portNum, |
Fw::InputComPort * | port | ||
) |
Connect port to PktSend[portNum].
portNum | The port number |
port | The input port |
Definition at line 549 of file ActiveLoggerComponentAc.cpp.
void Svc::ActiveLoggerComponentBase::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 517 of file ActiveLoggerComponentAc.cpp.
|
friend |
Friend class for white-box testing.
Definition at line 49 of file ActiveLoggerComponentAc.hpp.