![]() |
F´ Flight Software - C/C++ Documentation
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 (FwSizeType queueDepth, FwEnumStoreType instance=0) |
| Initialize ActiveLoggerComponentBase object. More... | |
| Fw::InputCmdPort * | get_CmdDisp_InputPort (FwIndexType portNum) |
| Fw::InputLogPort * | get_LogRecv_InputPort (FwIndexType portNum) |
| Svc::InputPingPort * | get_pingIn_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_FatalAnnounce_OutputPort (FwIndexType portNum, Svc::InputFatalEventPort *port) |
| Connect port to FatalAnnounce[portNum]. More... | |
| void | set_PktSend_OutputPort (FwIndexType portNum, Fw::InputComPort *port) |
| Connect port to PktSend[portNum]. More... | |
| void | set_pingOut_OutputPort (FwIndexType portNum, Svc::InputPingPort *port) |
| Connect port to pingOut[portNum]. More... | |
| void | regCommands () |
| Register commands with the Command Dispatcher. More... | |
Public Member Functions inherited from Fw::ActiveComponentBase | |
| void | start (Os::Task::ParamType priority=Os::Task::TASK_DEFAULT, Os::Task::ParamType stackSize=Os::Task::TASK_DEFAULT, Os::Task::ParamType cpuAffinity=Os::Task::TASK_DEFAULT, Os::Task::ParamType identifier=Os::Task::TASK_DEFAULT) |
| called by instantiator when task is to be started More... | |
| void | exit () |
| exit task in active component More... | |
| Os::Task::Status | join () |
| Join the thread. More... | |
| DEPRECATED (Os::Task::Status join(void **value_ptr), "Switch to .join()") | |
| Join to thread with discarded value_ptr. More... | |
Public Member Functions inherited from Fw::PassiveComponentBase | |
| void | setIdBase (const U32) |
| Set the ID base. More... | |
| U32 | getIdBase () const |
Protected Member Functions | |
| ActiveLoggerComponentBase (const char *compName="") | |
| Construct ActiveLoggerComponentBase object. More... | |
| virtual | ~ActiveLoggerComponentBase () |
| Destroy ActiveLoggerComponentBase object. More... | |
| FwIndexType | getNum_CmdDisp_InputPorts () const |
| FwIndexType | getNum_LogRecv_InputPorts () const |
| FwIndexType | getNum_pingIn_InputPorts () const |
| FwIndexType | getNum_CmdReg_OutputPorts () const |
| FwIndexType | getNum_CmdStatus_OutputPorts () const |
| FwIndexType | getNum_Log_OutputPorts () const |
| FwIndexType | getNum_Time_OutputPorts () const |
| FwIndexType | getNum_FatalAnnounce_OutputPorts () const |
| FwIndexType | getNum_PktSend_OutputPorts () const |
| FwIndexType | getNum_pingOut_OutputPorts () const |
| bool | isConnected_CmdReg_OutputPort (FwIndexType portNum) |
| bool | isConnected_CmdStatus_OutputPort (FwIndexType portNum) |
| bool | isConnected_Log_OutputPort (FwIndexType portNum) |
| bool | isConnected_Time_OutputPort (FwIndexType portNum) |
| bool | isConnected_FatalAnnounce_OutputPort (FwIndexType portNum) |
| bool | isConnected_PktSend_OutputPort (FwIndexType portNum) |
| bool | isConnected_pingOut_OutputPort (FwIndexType portNum) |
| virtual void | LogRecv_handler (FwIndexType portNum, FwEventIdType id, Fw::Time &timeTag, const Fw::LogSeverity &severity, Fw::LogBuffer &args)=0 |
| Handler for input port LogRecv. More... | |
| virtual void | pingIn_handler (FwIndexType portNum, U32 key)=0 |
| Handler for input port pingIn. More... | |
| void | LogRecv_handlerBase (FwIndexType portNum, FwEventIdType id, Fw::Time &timeTag, const Fw::LogSeverity &severity, Fw::LogBuffer &args) |
| Handler base-class function for input port LogRecv. More... | |
| void | pingIn_handlerBase (FwIndexType portNum, U32 key) |
| Handler base-class function for input port pingIn. More... | |
| virtual void | pingIn_preMsgHook (FwIndexType portNum, U32 key) |
| Pre-message hook for async input port pingIn. More... | |
| void | FatalAnnounce_out (FwIndexType portNum, FwEventIdType Id) |
| Invoke output port FatalAnnounce. More... | |
| void | PktSend_out (FwIndexType portNum, Fw::ComBuffer &data, U32 context) |
| Invoke output port PktSend. More... | |
| void | pingOut_out (FwIndexType portNum, U32 key) |
| Invoke output port pingOut. More... | |
| virtual void | loqQueue_internalInterfaceHandler (FwEventIdType id, const Fw::Time &timeTag, const Fw::LogSeverity &severity, const Fw::LogBuffer &args)=0 |
| Internal interface handler for loqQueue. More... | |
| void | loqQueue_internalInterfaceInvoke (FwEventIdType id, const Fw::Time &timeTag, const Fw::LogSeverity &severity, const Fw::LogBuffer &args) |
| Internal interface base-class function for loqQueue. More... | |
| void | cmdResponse_out (FwOpcodeType opCode, U32 cmdSeq, Fw::CmdResponse response) |
| Emit command response. More... | |
| virtual void | SET_EVENT_FILTER_cmdHandler (FwOpcodeType opCode, U32 cmdSeq, Svc::ActiveLogger_FilterSeverity filterLevel, Svc::ActiveLogger_Enabled filterEnabled)=0 |
| virtual void | SET_ID_FILTER_cmdHandler (FwOpcodeType opCode, U32 cmdSeq, U32 ID, Svc::ActiveLogger_Enabled idFilterEnabled)=0 |
| virtual void | DUMP_FILTER_STATE_cmdHandler (FwOpcodeType opCode, U32 cmdSeq)=0 |
| void | SET_EVENT_FILTER_cmdHandlerBase (FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args) |
| void | SET_ID_FILTER_cmdHandlerBase (FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args) |
| void | DUMP_FILTER_STATE_cmdHandlerBase (FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args) |
| virtual void | SET_ID_FILTER_preMsgHook (FwOpcodeType opCode, U32 cmdSeq) |
| Pre-message hook for command SET_ID_FILTER. More... | |
| virtual void | DUMP_FILTER_STATE_preMsgHook (FwOpcodeType opCode, U32 cmdSeq) |
| Pre-message hook for command DUMP_FILTER_STATE. More... | |
| void | log_ACTIVITY_LO_SEVERITY_FILTER_STATE (Svc::ActiveLogger_FilterSeverity severity, bool enabled) const |
| void | log_ACTIVITY_HI_ID_FILTER_ENABLED (U32 ID) const |
| void | log_WARNING_LO_ID_FILTER_LIST_FULL (U32 ID) const |
| void | log_ACTIVITY_HI_ID_FILTER_REMOVED (U32 ID) const |
| void | log_WARNING_LO_ID_FILTER_NOT_FOUND (U32 ID) const |
| Fw::Time | getTime () |
Protected Member Functions inherited from Fw::ActiveComponentBase | |
| ActiveComponentBase (const char *name) | |
| Constructor. More... | |
| virtual | ~ActiveComponentBase () |
| Destructor. More... | |
| void | init (NATIVE_INT_TYPE instance) |
| initialization code More... | |
| virtual void | preamble () |
| A function that will be called before the event loop is entered. More... | |
| MsgDispatchStatus | dispatch () |
| The function that will dispatching messages. More... | |
| virtual void | finalizer () |
| A function that will be called after exiting the loop. More... | |
Protected Member Functions inherited from Fw::QueuedComponentBase | |
| QueuedComponentBase (const char *name) | |
| Constructor. More... | |
| virtual | ~QueuedComponentBase () |
| Destructor. More... | |
| void | init (NATIVE_INT_TYPE instance) |
| initialization function More... | |
| Os::Queue::Status | createQueue (FwSizeType depth, FwSizeType msgSize) |
| NATIVE_INT_TYPE | 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 (NATIVE_INT_TYPE instance) |
| Initialization function. More... | |
| NATIVE_INT_TYPE | 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... | |
Friends | |
| class | ActiveLoggerComponentBaseFriend |
| Friend class for white-box testing. More... | |
Additional Inherited Members | |
Public Types inherited from Fw::ActiveComponentBase | |
| enum | { ACTIVE_COMPONENT_EXIT } |
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::ActiveComponentBase | |
| Os::Task | m_task |
| task object for active component More... | |
Protected Attributes inherited from Fw::QueuedComponentBase | |
| 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 649 of file ActiveLoggerComponentAc.cpp.
|
protectedvirtual |
Destroy ActiveLoggerComponentBase object.
Definition at line 656 of file ActiveLoggerComponentAc.cpp.
|
protected |
Emit command response.
| opCode | The opcode |
| cmdSeq | The command sequence number |
| response | The command response |
Definition at line 1072 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 1209 of file ActiveLoggerComponentAc.cpp.
|
protectedvirtual |
Pre-message hook for command DUMP_FILTER_STATE.
| opCode | The opcode |
| cmdSeq | The command sequence number |
Definition at line 1287 of file ActiveLoggerComponentAc.cpp.
|
protected |
Invoke output port FatalAnnounce.
| portNum | The port number |
| Id | The ID of the FATAL event |
Definition at line 953 of file ActiveLoggerComponentAc.cpp.
| Fw::InputCmdPort * Svc::ActiveLoggerComponentBase::get_CmdDisp_InputPort | ( | FwIndexType | portNum | ) |
Get special input port at index
| portNum | The port number |
Definition at line 330 of file ActiveLoggerComponentAc.cpp.
| Fw::InputLogPort * Svc::ActiveLoggerComponentBase::get_LogRecv_InputPort | ( | FwIndexType | portNum | ) |
Get typed input port at index
| portNum | The port number |
Definition at line 345 of file ActiveLoggerComponentAc.cpp.
| Svc::InputPingPort * Svc::ActiveLoggerComponentBase::get_pingIn_InputPort | ( | FwIndexType | portNum | ) |
Get typed input port at index
| portNum | The port number |
Definition at line 356 of file ActiveLoggerComponentAc.cpp.
|
protected |
Get the number of CmdDisp input ports
Definition at line 666 of file ActiveLoggerComponentAc.cpp.
|
protected |
Get the number of CmdReg output ports
Definition at line 692 of file ActiveLoggerComponentAc.cpp.
|
protected |
Get the number of CmdStatus output ports
Definition at line 698 of file ActiveLoggerComponentAc.cpp.
|
protected |
Get the number of FatalAnnounce output ports
Definition at line 730 of file ActiveLoggerComponentAc.cpp.
|
protected |
Get the number of Log output ports
Definition at line 704 of file ActiveLoggerComponentAc.cpp.
|
protected |
Get the number of LogRecv input ports
Definition at line 676 of file ActiveLoggerComponentAc.cpp.
|
protected |
Get the number of pingIn input ports
Definition at line 682 of file ActiveLoggerComponentAc.cpp.
|
protected |
Get the number of pingOut output ports
Definition at line 742 of file ActiveLoggerComponentAc.cpp.
|
protected |
Get the number of PktSend output ports
Definition at line 736 of file ActiveLoggerComponentAc.cpp.
|
protected |
Get the number of Time output ports
Definition at line 720 of file ActiveLoggerComponentAc.cpp.
|
protected |
| void Svc::ActiveLoggerComponentBase::init | ( | FwSizeType | queueDepth, |
| FwEnumStoreType | instance = 0 |
||
| ) |
Initialize ActiveLoggerComponentBase object.
| queueDepth | The queue depth |
| instance | The instance number |
Definition at line 80 of file ActiveLoggerComponentAc.cpp.
|
protected |
Check whether port CmdReg is connected
| portNum | The port number |
Definition at line 752 of file ActiveLoggerComponentAc.cpp.
|
protected |
Check whether port CmdStatus is connected
| portNum | The port number |
Definition at line 763 of file ActiveLoggerComponentAc.cpp.
|
protected |
Check whether port FatalAnnounce is connected
| portNum | The port number |
Definition at line 815 of file ActiveLoggerComponentAc.cpp.
|
protected |
Check whether port Log is connected
| portNum | The port number |
Definition at line 774 of file ActiveLoggerComponentAc.cpp.
|
protected |
Check whether port pingOut is connected
| portNum | The port number |
Definition at line 837 of file ActiveLoggerComponentAc.cpp.
|
protected |
Check whether port PktSend is connected
| portNum | The port number |
Definition at line 826 of file ActiveLoggerComponentAc.cpp.
|
protected |
Check whether port Time is connected
| portNum | The port number |
Definition at line 800 of file ActiveLoggerComponentAc.cpp.
|
protected |
Log event ID_FILTER_ENABLED
Indicate ID is filtered
| ID | The ID filtered |
Definition at line 1407 of file ActiveLoggerComponentAc.cpp.
|
protected |
Log event ID_FILTER_REMOVED
Removed an ID from the filter
| ID | The ID removed |
Definition at line 1571 of file ActiveLoggerComponentAc.cpp.
|
protected |
Log event SEVERITY_FILTER_STATE
Dump severity filter state
| severity | The severity level |
Definition at line 1302 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 1489 of file ActiveLoggerComponentAc.cpp.
|
protected |
Log event ID_FILTER_NOT_FOUND
ID not in filter
| ID | The ID removed |
Definition at line 1653 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 854 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 1004 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 879 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 940 of file ActiveLoggerComponentAc.cpp.
|
protected |
Invoke output port pingOut.
| portNum | The port number |
| key | Value to return to pinger |
Definition at line 985 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 968 of file ActiveLoggerComponentAc.cpp.
| void Svc::ActiveLoggerComponentBase::regCommands | ( | ) |
Register commands with the Command Dispatcher.
Connect the dispatcher first
Definition at line 627 of file ActiveLoggerComponentAc.cpp.
| void Svc::ActiveLoggerComponentBase::set_CmdReg_OutputPort | ( | FwIndexType | portNum, |
| Fw::InputCmdRegPort * | port | ||
| ) |
Connect port to CmdReg[portNum].
| portNum | The port number |
| port | The input port |
Definition at line 371 of file ActiveLoggerComponentAc.cpp.
| void Svc::ActiveLoggerComponentBase::set_CmdStatus_OutputPort | ( | FwIndexType | portNum, |
| Fw::InputCmdResponsePort * | port | ||
| ) |
Connect port to CmdStatus[portNum].
| portNum | The port number |
| port | The input port |
Definition at line 385 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 1089 of file ActiveLoggerComponentAc.cpp.
| void Svc::ActiveLoggerComponentBase::set_FatalAnnounce_OutputPort | ( | FwIndexType | portNum, |
| Svc::InputFatalEventPort * | port | ||
| ) |
Connect port to FatalAnnounce[portNum].
| portNum | The port number |
| port | The input port |
Definition at line 449 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 1150 of file ActiveLoggerComponentAc.cpp.
|
protectedvirtual |
Pre-message hook for command SET_ID_FILTER.
| opCode | The opcode |
| cmdSeq | The command sequence number |
Definition at line 1276 of file ActiveLoggerComponentAc.cpp.
| void Svc::ActiveLoggerComponentBase::set_Log_OutputPort | ( | FwIndexType | portNum, |
| Fw::InputLogPort * | port | ||
| ) |
Connect port to Log[portNum].
| portNum | The port number |
| port | The input port |
Definition at line 399 of file ActiveLoggerComponentAc.cpp.
| void Svc::ActiveLoggerComponentBase::set_pingOut_OutputPort | ( | FwIndexType | portNum, |
| Svc::InputPingPort * | port | ||
| ) |
Connect port to pingOut[portNum].
| portNum | The port number |
| port | The input port |
Definition at line 477 of file ActiveLoggerComponentAc.cpp.
| void Svc::ActiveLoggerComponentBase::set_PktSend_OutputPort | ( | FwIndexType | portNum, |
| Fw::InputComPort * | port | ||
| ) |
Connect port to PktSend[portNum].
| portNum | The port number |
| port | The input port |
Definition at line 463 of file ActiveLoggerComponentAc.cpp.
| void Svc::ActiveLoggerComponentBase::set_Time_OutputPort | ( | FwIndexType | portNum, |
| Fw::InputTimePort * | port | ||
| ) |
Connect port to Time[portNum].
| portNum | The port number |
| port | The input port |
Definition at line 431 of file ActiveLoggerComponentAc.cpp.
|
friend |
Friend class for white-box testing.
Definition at line 49 of file ActiveLoggerComponentAc.hpp.