![]() |
F´ Flight Software - C/C++ Documentation
devel
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_BUFFQUEUEIN_INPUT_PORTS = 1 , NUM_COMQUEUEIN_INPUT_PORTS = 2 , NUM_COMSTATUSIN_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_BUFFQUEUESEND_OUTPUT_PORTS = 1 , NUM_COMQUEUESEND_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 Member Functions | |
| ComQueueComponentBase (const char *compName="") | |
| Construct ComQueueComponentBase object. More... | |
| virtual | ~ComQueueComponentBase () |
| Destroy ComQueueComponentBase object. More... | |
| NATIVE_INT_TYPE | getNum_buffQueueIn_InputPorts () const |
| NATIVE_INT_TYPE | getNum_comQueueIn_InputPorts () const |
| NATIVE_INT_TYPE | getNum_comStatusIn_InputPorts () const |
| NATIVE_INT_TYPE | getNum_run_InputPorts () const |
| NATIVE_INT_TYPE | getNum_Log_OutputPorts () const |
| NATIVE_INT_TYPE | getNum_Time_OutputPorts () const |
| NATIVE_INT_TYPE | getNum_Tlm_OutputPorts () const |
| NATIVE_INT_TYPE | getNum_buffQueueSend_OutputPorts () const |
| NATIVE_INT_TYPE | getNum_comQueueSend_OutputPorts () const |
| bool | isConnected_Log_OutputPort (NATIVE_INT_TYPE portNum) |
| bool | isConnected_Time_OutputPort (NATIVE_INT_TYPE portNum) |
| bool | isConnected_Tlm_OutputPort (NATIVE_INT_TYPE portNum) |
| bool | isConnected_buffQueueSend_OutputPort (NATIVE_INT_TYPE portNum) |
| bool | isConnected_comQueueSend_OutputPort (NATIVE_INT_TYPE portNum) |
| virtual void | buffQueueIn_handler (NATIVE_INT_TYPE portNum, Fw::Buffer &fwBuffer)=0 |
| Handler for input port buffQueueIn. More... | |
| virtual void | comQueueIn_handler (NATIVE_INT_TYPE portNum, Fw::ComBuffer &data, U32 context)=0 |
| Handler for input port comQueueIn. More... | |
| virtual void | comStatusIn_handler (NATIVE_INT_TYPE portNum, Fw::Success &condition)=0 |
| Handler for input port comStatusIn. More... | |
| virtual void | run_handler (NATIVE_INT_TYPE portNum, NATIVE_UINT_TYPE context)=0 |
| Handler for input port run. More... | |
| void | buffQueueIn_handlerBase (NATIVE_INT_TYPE portNum, Fw::Buffer &fwBuffer) |
| Handler base-class function for input port buffQueueIn. More... | |
| void | comQueueIn_handlerBase (NATIVE_INT_TYPE portNum, Fw::ComBuffer &data, U32 context) |
| Handler base-class function for input port comQueueIn. More... | |
| void | comStatusIn_handlerBase (NATIVE_INT_TYPE portNum, Fw::Success &condition) |
| Handler base-class function for input port comStatusIn. More... | |
| void | run_handlerBase (NATIVE_INT_TYPE portNum, NATIVE_UINT_TYPE context) |
| Handler base-class function for input port run. More... | |
| virtual void | buffQueueIn_preMsgHook (NATIVE_INT_TYPE portNum, Fw::Buffer &fwBuffer) |
| Pre-message hook for async input port buffQueueIn. More... | |
| virtual void | comQueueIn_preMsgHook (NATIVE_INT_TYPE portNum, Fw::ComBuffer &data, U32 context) |
| Pre-message hook for async input port comQueueIn. More... | |
| virtual void | comStatusIn_preMsgHook (NATIVE_INT_TYPE portNum, Fw::Success &condition) |
| Pre-message hook for async input port comStatusIn. More... | |
| virtual void | run_preMsgHook (NATIVE_INT_TYPE portNum, NATIVE_UINT_TYPE context) |
| Pre-message hook for async input port run. More... | |
| void | buffQueueSend_out (NATIVE_INT_TYPE portNum, Fw::Buffer &fwBuffer) |
| Invoke output port buffQueueSend. More... | |
| void | comQueueSend_out (NATIVE_INT_TYPE portNum, Fw::ComBuffer &data, U32 context) |
| Invoke output port comQueueSend. More... | |
| void | log_WARNING_HI_QueueOverflow (Svc::QueueType queueType, U32 index) |
| void | tlmWrite_comQueueDepth (const Svc::ComQueueDepth &arg, Fw::Time _tlmTime=Fw::Time()) |
| void | tlmWrite_buffQueueDepth (const Svc::BuffQueueDepth &arg, Fw::Time _tlmTime=Fw::Time()) |
| 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... | |
| virtual void | loop () |
| The function that will loop 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::QueueStatus | createQueue (NATIVE_INT_TYPE depth, NATIVE_INT_TYPE 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 | ComQueueComponentBaseFriend |
| 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 ComQueue component.
Component used to queue buffer types
Definition at line 36 of file ComQueueComponentAc.hpp.
|
protected |
Enumerations for numbers of typed input ports.
| Enumerator | |
|---|---|
| NUM_BUFFQUEUEIN_INPUT_PORTS | |
| NUM_COMQUEUEIN_INPUT_PORTS | |
| NUM_COMSTATUSIN_INPUT_PORTS | |
| NUM_RUN_INPUT_PORTS | |
Definition at line 54 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 62 of file ComQueueComponentAc.hpp.
|
protected |
Enumerations for numbers of typed output ports.
| Enumerator | |
|---|---|
| NUM_BUFFQUEUESEND_OUTPUT_PORTS | |
| NUM_COMQUEUESEND_OUTPUT_PORTS | |
Definition at line 70 of file ComQueueComponentAc.hpp.
|
protected |
Event IDs.
| Enumerator | |
|---|---|
| EVENTID_QUEUEOVERFLOW | Queue overflow event. |
Definition at line 76 of file ComQueueComponentAc.hpp.
|
protected |
Channel IDs.
| Enumerator | |
|---|---|
| CHANNELID_COMQUEUEDEPTH | Channel ID for comQueueDepth. |
| CHANNELID_BUFFQUEUEDEPTH | Channel ID for buffQueueDepth. |
Definition at line 81 of file ComQueueComponentAc.hpp.
|
protected |
Construct ComQueueComponentBase object.
| compName | The component name |
Definition at line 637 of file ComQueueComponentAc.cpp.
|
protectedvirtual |
Destroy ComQueueComponentBase object.
Definition at line 644 of file ComQueueComponentAc.cpp.
|
protectedpure virtual |
Handler for input port buffQueueIn.
| portNum | The port number |
| fwBuffer | The buffer |
|
protected |
Handler base-class function for input port buffQueueIn.
| portNum | The port number |
| fwBuffer | The buffer |
Definition at line 810 of file ComQueueComponentAc.cpp.
|
protectedvirtual |
Pre-message hook for async input port buffQueueIn.
| portNum | The port number |
| fwBuffer | The buffer |
Definition at line 1054 of file ComQueueComponentAc.cpp.
|
protected |
Invoke output port buffQueueSend.
| portNum | The port number |
| fwBuffer | The buffer |
Definition at line 1095 of file ComQueueComponentAc.cpp.
|
protectedpure virtual |
Handler for input port comQueueIn.
| 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 comQueueIn.
| portNum | The port number |
| data | Buffer containing packet data |
| context | Call context value; meaning chosen by user |
Definition at line 868 of file ComQueueComponentAc.cpp.
|
protectedvirtual |
Pre-message hook for async input port comQueueIn.
| portNum | The port number |
| data | Buffer containing packet data |
| context | Call context value; meaning chosen by user |
Definition at line 1063 of file ComQueueComponentAc.cpp.
|
protected |
Invoke output port comQueueSend.
| portNum | The port number |
| data | Buffer containing packet data |
| context | Call context value; meaning chosen by user |
Definition at line 1110 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 935 of file ComQueueComponentAc.cpp.
|
protectedvirtual |
Pre-message hook for async input port comStatusIn.
| portNum | The port number |
| condition | Condition success/failure |
Definition at line 1073 of file ComQueueComponentAc.cpp.
| Fw::InputBufferSendPort * Svc::ComQueueComponentBase::get_buffQueueIn_InputPort | ( | NATIVE_INT_TYPE | portNum | ) |
Get typed input port at index
| portNum | The port number |
Definition at line 389 of file ComQueueComponentAc.cpp.
| Fw::InputComPort * Svc::ComQueueComponentBase::get_comQueueIn_InputPort | ( | NATIVE_INT_TYPE | portNum | ) |
Get typed input port at index
| portNum | The port number |
Definition at line 400 of file ComQueueComponentAc.cpp.
| Fw::InputSuccessConditionPort * Svc::ComQueueComponentBase::get_comStatusIn_InputPort | ( | NATIVE_INT_TYPE | portNum | ) |
Get typed input port at index
| portNum | The port number |
Definition at line 411 of file ComQueueComponentAc.cpp.
| Svc::InputSchedPort * Svc::ComQueueComponentBase::get_run_InputPort | ( | NATIVE_INT_TYPE | portNum | ) |
Get typed input port at index
| portNum | The port number |
Definition at line 422 of file ComQueueComponentAc.cpp.
|
protected |
Get the number of buffQueueIn input ports
Definition at line 654 of file ComQueueComponentAc.cpp.
|
protected |
Get the number of buffQueueSend output ports
Definition at line 714 of file ComQueueComponentAc.cpp.
|
protected |
Get the number of comQueueIn input ports
Definition at line 660 of file ComQueueComponentAc.cpp.
|
protected |
Get the number of comQueueSend output ports
Definition at line 720 of file ComQueueComponentAc.cpp.
|
protected |
Get the number of comStatusIn input ports
Definition at line 666 of file ComQueueComponentAc.cpp.
|
protected |
Get the number of Log output ports
Definition at line 682 of file ComQueueComponentAc.cpp.
|
protected |
Get the number of run input ports
Definition at line 672 of file ComQueueComponentAc.cpp.
|
protected |
Get the number of Time output ports
Definition at line 698 of file ComQueueComponentAc.cpp.
|
protected |
Get the number of Tlm output ports
Definition at line 704 of file ComQueueComponentAc.cpp.
|
protected |
| void Svc::ComQueueComponentBase::init | ( | NATIVE_INT_TYPE | queueDepth, |
| NATIVE_INT_TYPE | instance = 0 |
||
| ) |
Initialize ComQueueComponentBase object.
| queueDepth | The queue depth |
| instance | The instance number |
Definition at line 74 of file ComQueueComponentAc.cpp.
|
protected |
Check whether port buffQueueSend is connected
| portNum | The port number |
Definition at line 782 of file ComQueueComponentAc.cpp.
|
protected |
Check whether port comQueueSend is connected
| portNum | The port number |
Definition at line 793 of file ComQueueComponentAc.cpp.
|
protected |
Check whether port Log is connected
| portNum | The port number |
Definition at line 730 of file ComQueueComponentAc.cpp.
|
protected |
Check whether port Time is connected
| portNum | The port number |
Definition at line 756 of file ComQueueComponentAc.cpp.
|
protected |
Check whether port Tlm is connected
| portNum | The port number |
Definition at line 767 of file ComQueueComponentAc.cpp.
|
protected |
Log event QueueOverflow
Queue overflow event
| queueType | The Queue data type |
| index | index of overflowed queue |
Definition at line 1131 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 988 of file ComQueueComponentAc.cpp.
|
protectedvirtual |
Pre-message hook for async input port run.
| portNum | The port number |
| context | The call order |
Definition at line 1082 of file ComQueueComponentAc.cpp.
| void Svc::ComQueueComponentBase::set_buffQueueSend_OutputPort | ( | NATIVE_INT_TYPE | portNum, |
| Fw::InputBufferSendPort * | port | ||
| ) |
Connect port to buffQueueSend[portNum].
| portNum | The port number |
| port | The input port |
Definition at line 501 of file ComQueueComponentAc.cpp.
| void Svc::ComQueueComponentBase::set_comQueueSend_OutputPort | ( | NATIVE_INT_TYPE | portNum, |
| Fw::InputComPort * | port | ||
| ) |
Connect port to comQueueSend[portNum].
| portNum | The port number |
| port | The input port |
Definition at line 515 of file ComQueueComponentAc.cpp.
| void Svc::ComQueueComponentBase::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 437 of file ComQueueComponentAc.cpp.
| void Svc::ComQueueComponentBase::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 469 of file ComQueueComponentAc.cpp.
| void Svc::ComQueueComponentBase::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 483 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 1279 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 1246 of file ComQueueComponentAc.cpp.
|
friend |
Friend class for white-box testing.
Definition at line 45 of file ComQueueComponentAc.hpp.