![]() |
F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
|
Auto-generated base for ComQueue component. More...
#include <Svc/ComQueue/ComQueueComponentAc.hpp>
Protected Types | |
| enum | { NUM_BUFFERQUEUEIN_INPUT_PORTS = 1, NUM_COMPACKETQUEUEIN_INPUT_PORTS = 2, NUM_COMSTATUSIN_INPUT_PORTS = 1, NUM_DATARETURNIN_INPUT_PORTS = 1, NUM_RUN_INPUT_PORTS = 1 } |
| Enumerations for numbers of typed input ports. More... | |
| enum | { NUM_LOG_OUTPUT_PORTS = 1, NUM_LOGTEXT_OUTPUT_PORTS = 1, NUM_TIME_OUTPUT_PORTS = 1, NUM_TLM_OUTPUT_PORTS = 1 } |
| Enumerations for numbers of special output ports. More... | |
| enum | { NUM_BUFFERRETURNOUT_OUTPUT_PORTS = 1, NUM_DATAOUT_OUTPUT_PORTS = 1 } |
| Enumerations for numbers of typed output ports. More... | |
| enum | { EVENTID_QUEUEOVERFLOW = 0x0 } |
| Event IDs. More... | |
| enum | { CHANNELID_COMQUEUEDEPTH = 0x0, CHANNELID_BUFFQUEUEDEPTH = 0x1 } |
| Channel IDs. More... | |
Protected Types inherited from Fw::ActiveComponentBase | |
| enum | Lifecycle { CREATED, DISPATCHING, FINALIZING, DONE } |
| Tracks the lifecycle of the component. More... | |
Protected Member Functions | |
| ComQueueComponentBase (const char *compName="") | |
| Construct ComQueueComponentBase object. More... | |
| virtual | ~ComQueueComponentBase () |
| Destroy ComQueueComponentBase object. More... | |
| bool | isConnected_Log_OutputPort (FwIndexType portNum) |
| bool | isConnected_Time_OutputPort (FwIndexType portNum) |
| bool | isConnected_Tlm_OutputPort (FwIndexType portNum) |
| bool | isConnected_bufferReturnOut_OutputPort (FwIndexType portNum) |
| bool | isConnected_dataOut_OutputPort (FwIndexType portNum) |
| virtual void | bufferQueueIn_handler (FwIndexType portNum, Fw::Buffer &fwBuffer)=0 |
| Handler for input port bufferQueueIn. More... | |
| virtual void | comPacketQueueIn_handler (FwIndexType portNum, Fw::ComBuffer &data, U32 context)=0 |
| Handler for input port comPacketQueueIn. More... | |
| virtual void | comStatusIn_handler (FwIndexType portNum, Fw::Success &condition)=0 |
| Handler for input port comStatusIn. More... | |
| virtual void | dataReturnIn_handler (FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)=0 |
| Handler for input port dataReturnIn. More... | |
| virtual void | run_handler (FwIndexType portNum, U32 context)=0 |
| Handler for input port run. More... | |
| void | bufferQueueIn_handlerBase (FwIndexType portNum, Fw::Buffer &fwBuffer) |
| Handler base-class function for input port bufferQueueIn. More... | |
| void | comPacketQueueIn_handlerBase (FwIndexType portNum, Fw::ComBuffer &data, U32 context) |
| Handler base-class function for input port comPacketQueueIn. More... | |
| void | comStatusIn_handlerBase (FwIndexType portNum, Fw::Success &condition) |
| Handler base-class function for input port comStatusIn. More... | |
| void | dataReturnIn_handlerBase (FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context) |
| Handler base-class function for input port dataReturnIn. More... | |
| void | run_handlerBase (FwIndexType portNum, U32 context) |
| Handler base-class function for input port run. More... | |
| virtual void | bufferQueueIn_preMsgHook (FwIndexType portNum, Fw::Buffer &fwBuffer) |
| Pre-message hook for async input port bufferQueueIn. More... | |
| virtual void | comPacketQueueIn_preMsgHook (FwIndexType portNum, Fw::ComBuffer &data, U32 context) |
| Pre-message hook for async input port comPacketQueueIn. More... | |
| virtual void | comStatusIn_preMsgHook (FwIndexType portNum, Fw::Success &condition) |
| Pre-message hook for async input port comStatusIn. More... | |
| virtual void | run_preMsgHook (FwIndexType portNum, U32 context) |
| Pre-message hook for async input port run. More... | |
| virtual void | bufferQueueIn_overflowHook (FwIndexType portNum, Fw::Buffer &fwBuffer)=0 |
| Overflow hook for async input port bufferQueueIn. More... | |
| void | bufferReturnOut_out (FwIndexType portNum, Fw::Buffer &fwBuffer) |
| Invoke output port bufferReturnOut. More... | |
| void | dataOut_out (FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context) |
| Invoke output port dataOut. More... | |
| void | log_WARNING_HI_QueueOverflow (Svc::QueueType queueType, U32 index) const |
| void | tlmWrite_comQueueDepth (const Svc::ComQueueDepth &arg, Fw::Time _tlmTime=Fw::Time()) const |
| void | tlmWrite_buffQueueDepth (const Svc::BuffQueueDepth &arg, Fw::Time _tlmTime=Fw::Time()) const |
| Fw::Time | getTime () const |
Protected Member Functions inherited from Fw::ActiveComponentBase | |
| ActiveComponentBase (const char *name) | |
| Constructor. More... | |
| virtual | ~ActiveComponentBase () |
| Destructor. More... | |
| void | init (FwEnumStoreType 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 (FwEnumStoreType instance) |
| initialization function More... | |
| Os::Queue::Status | createQueue (FwSizeType depth, FwSizeType msgSize) |
| 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_bufferQueueIn_InputPorts () |
| static constexpr FwIndexType | getNum_comPacketQueueIn_InputPorts () |
| static constexpr FwIndexType | getNum_comStatusIn_InputPorts () |
| static constexpr FwIndexType | getNum_dataReturnIn_InputPorts () |
| static constexpr FwIndexType | getNum_run_InputPorts () |
| static constexpr FwIndexType | getNum_Log_OutputPorts () |
| static constexpr FwIndexType | getNum_Time_OutputPorts () |
| static constexpr FwIndexType | getNum_Tlm_OutputPorts () |
| static constexpr FwIndexType | getNum_bufferReturnOut_OutputPorts () |
| static constexpr FwIndexType | getNum_dataOut_OutputPorts () |
Friends | |
| class | ComQueueTesterBase |
| Friend class tester to support autocoded test harness. More... | |
| class | ComQueueTester |
| Friend class tester implementation to support 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 ComQueue component.
Component used to queue buffer types
Definition at line 39 of file ComQueueComponentAc.hpp.
|
protected |
Enumerations for numbers of typed input ports.
| Enumerator | |
|---|---|
| NUM_BUFFERQUEUEIN_INPUT_PORTS | |
| NUM_COMPACKETQUEUEIN_INPUT_PORTS | |
| NUM_COMSTATUSIN_INPUT_PORTS | |
| NUM_DATARETURNIN_INPUT_PORTS | |
| NUM_RUN_INPUT_PORTS | |
Definition at line 59 of file ComQueueComponentAc.hpp.
|
protected |
Enumerations for numbers of special output ports.
| Enumerator | |
|---|---|
| NUM_LOG_OUTPUT_PORTS | |
| NUM_LOGTEXT_OUTPUT_PORTS | |
| NUM_TIME_OUTPUT_PORTS | |
| NUM_TLM_OUTPUT_PORTS | |
Definition at line 68 of file ComQueueComponentAc.hpp.
|
protected |
Enumerations for numbers of typed output ports.
| Enumerator | |
|---|---|
| NUM_BUFFERRETURNOUT_OUTPUT_PORTS | |
| NUM_DATAOUT_OUTPUT_PORTS | |
Definition at line 76 of file ComQueueComponentAc.hpp.
|
protected |
Event IDs.
| Enumerator | |
|---|---|
| EVENTID_QUEUEOVERFLOW | Queue overflow event. |
Definition at line 82 of file ComQueueComponentAc.hpp.
|
protected |
Channel IDs.
| Enumerator | |
|---|---|
| CHANNELID_COMQUEUEDEPTH | Channel ID for comQueueDepth. |
| CHANNELID_BUFFQUEUEDEPTH | Channel ID for buffQueueDepth. |
Definition at line 87 of file ComQueueComponentAc.hpp.
|
protected |
Construct ComQueueComponentBase object.
| compName | The component name |
Definition at line 594 of file ComQueueComponentAc.cpp.
|
protectedvirtual |
Destroy ComQueueComponentBase object.
Definition at line 601 of file ComQueueComponentAc.cpp.
|
protectedpure virtual |
Handler for input port bufferQueueIn.
| portNum | The port number |
| fwBuffer | The buffer |
|
protected |
Handler base-class function for input port bufferQueueIn.
| portNum | The port number |
| fwBuffer | The buffer |
Definition at line 691 of file ComQueueComponentAc.cpp.
|
protectedpure virtual |
Overflow hook for async input port bufferQueueIn.
| portNum | The port number |
| fwBuffer | The buffer |
|
protectedvirtual |
Pre-message hook for async input port bufferQueueIn.
| portNum | The port number |
| fwBuffer | The buffer |
Definition at line 956 of file ComQueueComponentAc.cpp.
|
protected |
Invoke output port bufferReturnOut.
| portNum | The port number |
| fwBuffer | The buffer |
Definition at line 997 of file ComQueueComponentAc.cpp.
|
protectedpure virtual |
Handler for input port comPacketQueueIn.
| portNum | The port number |
| data | Buffer containing packet data |
| context | Call context value; meaning chosen by user |
|
protected |
Handler base-class function for input port comPacketQueueIn.
| portNum | The port number |
| data | Buffer containing packet data |
| context | Call context value; meaning chosen by user |
Definition at line 749 of file ComQueueComponentAc.cpp.
|
protectedvirtual |
Pre-message hook for async input port comPacketQueueIn.
| portNum | The port number |
| data | Buffer containing packet data |
| context | Call context value; meaning chosen by user |
Definition at line 965 of file ComQueueComponentAc.cpp.
|
protectedpure virtual |
Handler for input port comStatusIn.
| portNum | The port number |
| condition | Condition success/failure |
|
protected |
Handler base-class function for input port comStatusIn.
| portNum | The port number |
| condition | Condition success/failure |
Definition at line 816 of file ComQueueComponentAc.cpp.
|
protectedvirtual |
Pre-message hook for async input port comStatusIn.
| portNum | The port number |
| condition | Condition success/failure |
Definition at line 975 of file ComQueueComponentAc.cpp.
|
protected |
Invoke output port dataOut.
| portNum | The port number |
Definition at line 1017 of file ComQueueComponentAc.cpp.
|
protectedpure virtual |
Handler for input port dataReturnIn.
| portNum | The port number |
|
protected |
Handler base-class function for input port dataReturnIn.
| portNum | The port number |
Definition at line 869 of file ComQueueComponentAc.cpp.
| Fw::InputBufferSendPort * Svc::ComQueueComponentBase::get_bufferQueueIn_InputPort | ( | FwIndexType | portNum | ) |
Get typed input port at index
| portNum | The port number |
Definition at line 335 of file ComQueueComponentAc.cpp.
| Fw::InputComPort * Svc::ComQueueComponentBase::get_comPacketQueueIn_InputPort | ( | FwIndexType | portNum | ) |
Get typed input port at index
| portNum | The port number |
Definition at line 346 of file ComQueueComponentAc.cpp.
| Fw::InputSuccessConditionPort * Svc::ComQueueComponentBase::get_comStatusIn_InputPort | ( | FwIndexType | portNum | ) |
Get typed input port at index
| portNum | The port number |
Definition at line 357 of file ComQueueComponentAc.cpp.
| Svc::InputComDataWithContextPort * Svc::ComQueueComponentBase::get_dataReturnIn_InputPort | ( | FwIndexType | portNum | ) |
Get typed input port at index
| portNum | The port number |
Definition at line 368 of file ComQueueComponentAc.cpp.
| Svc::InputSchedPort * Svc::ComQueueComponentBase::get_run_InputPort | ( | FwIndexType | portNum | ) |
Get typed input port at index
| portNum | The port number |
Definition at line 379 of file ComQueueComponentAc.cpp.
|
inlinestaticprotected |
Get the number of bufferQueueIn input ports
Definition at line 280 of file ComQueueComponentAc.hpp.
|
inlinestaticprotected |
Get the number of bufferReturnOut output ports
Definition at line 359 of file ComQueueComponentAc.hpp.
|
inlinestaticprotected |
Get the number of comPacketQueueIn input ports
Definition at line 287 of file ComQueueComponentAc.hpp.
|
inlinestaticprotected |
Get the number of comStatusIn input ports
Definition at line 294 of file ComQueueComponentAc.hpp.
|
inlinestaticprotected |
Get the number of dataOut output ports
Definition at line 366 of file ComQueueComponentAc.hpp.
|
inlinestaticprotected |
Get the number of dataReturnIn input ports
Definition at line 301 of file ComQueueComponentAc.hpp.
|
inlinestaticprotected |
Get the number of Log output ports
Definition at line 321 of file ComQueueComponentAc.hpp.
|
inlinestaticprotected |
Get the number of run input ports
Definition at line 308 of file ComQueueComponentAc.hpp.
|
inlinestaticprotected |
Get the number of Time output ports
Definition at line 339 of file ComQueueComponentAc.hpp.
|
inlinestaticprotected |
Get the number of Tlm output ports
Definition at line 346 of file ComQueueComponentAc.hpp.
|
protected |
| void Svc::ComQueueComponentBase::init | ( | FwSizeType | queueDepth, |
| FwEnumStoreType | instance = 0 |
||
| ) |
Initialize ComQueueComponentBase object.
| queueDepth | The queue depth |
| instance | The instance number |
Definition at line 75 of file ComQueueComponentAc.cpp.
|
protected |
Check whether port bufferReturnOut is connected
| portNum | The port number |
Definition at line 663 of file ComQueueComponentAc.cpp.
|
protected |
Check whether port dataOut is connected
| portNum | The port number |
Definition at line 674 of file ComQueueComponentAc.cpp.
|
protected |
Check whether port Log is connected
| portNum | The port number |
Definition at line 611 of file ComQueueComponentAc.cpp.
|
protected |
Check whether port Time is connected
| portNum | The port number |
Definition at line 637 of file ComQueueComponentAc.cpp.
|
protected |
Check whether port Tlm is connected
| portNum | The port number |
Definition at line 648 of file ComQueueComponentAc.cpp.
|
protected |
Log event QueueOverflow
Queue overflow event
| queueType | The Queue data type |
| index | index of overflowed queue |
Definition at line 1043 of file ComQueueComponentAc.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 890 of file ComQueueComponentAc.cpp.
|
protectedvirtual |
Pre-message hook for async input port run.
| portNum | The port number |
| context | The call order |
Definition at line 984 of file ComQueueComponentAc.cpp.
| void Svc::ComQueueComponentBase::set_bufferReturnOut_OutputPort | ( | FwIndexType | portNum, |
| Fw::InputBufferSendPort * | port | ||
| ) |
Connect port to bufferReturnOut[portNum].
| portNum | The port number |
| port | The input port |
Definition at line 458 of file ComQueueComponentAc.cpp.
| void Svc::ComQueueComponentBase::set_dataOut_OutputPort | ( | FwIndexType | portNum, |
| Svc::InputComDataWithContextPort * | port | ||
| ) |
Connect port to dataOut[portNum].
| portNum | The port number |
| port | The input port |
Definition at line 472 of file ComQueueComponentAc.cpp.
| void Svc::ComQueueComponentBase::set_Log_OutputPort | ( | FwIndexType | portNum, |
| Fw::InputLogPort * | port | ||
| ) |
Connect port to Log[portNum].
| portNum | The port number |
| port | The input port |
Definition at line 394 of file ComQueueComponentAc.cpp.
| void Svc::ComQueueComponentBase::set_Time_OutputPort | ( | FwIndexType | portNum, |
| Fw::InputTimePort * | port | ||
| ) |
Connect port to Time[portNum].
| portNum | The port number |
| port | The input port |
Definition at line 426 of file ComQueueComponentAc.cpp.
| void Svc::ComQueueComponentBase::set_Tlm_OutputPort | ( | FwIndexType | portNum, |
| Fw::InputTlmPort * | port | ||
| ) |
Connect port to Tlm[portNum].
| portNum | The port number |
| port | The input port |
Definition at line 440 of file ComQueueComponentAc.cpp.
|
protected |
Write telemetry channel buffQueueDepth
Depth of queues of Fw::Buffer type
| arg | The telemetry value |
| _tlmTime | Timestamp. Default: unspecified, request from getTime port |
Definition at line 1185 of file ComQueueComponentAc.cpp.
|
protected |
Write telemetry channel comQueueDepth
Depth of queues of Fw::ComBuffer type
| arg | The telemetry value |
| _tlmTime | Timestamp. Default: unspecified, request from getTime port |
Definition at line 1152 of file ComQueueComponentAc.cpp.
|
friend |
Friend class tester implementation to support white-box testing.
Definition at line 50 of file ComQueueComponentAc.hpp.
|
friend |
Friend class tester to support autocoded test harness.
Definition at line 48 of file ComQueueComponentAc.hpp.