F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
Svc::ComQueueComponentBase Class Referenceabstract

Auto-generated base for ComQueue component. More...

#include <Svc/ComQueue/ComQueueComponentAc.hpp>

Inheritance diagram for Svc::ComQueueComponentBase:
Fw::ActiveComponentBase Fw::QueuedComponentBase Fw::PassiveComponentBase Fw::ObjBase Svc::ComQueue

Public Member Functions

void init (FwSizeType queueDepth, FwEnumStoreType instance=0)
 Initialize ComQueueComponentBase object. More...
 
Fw::InputCmdPortget_CmdDisp_InputPort (FwIndexType portNum)
 
Fw::InputBufferSendPortget_bufferQueueIn_InputPort (FwIndexType portNum)
 
Fw::InputComPortget_comPacketQueueIn_InputPort (FwIndexType portNum)
 
Fw::InputSuccessConditionPortget_comStatusIn_InputPort (FwIndexType portNum)
 
Svc::InputComDataWithContextPortget_dataReturnIn_InputPort (FwIndexType portNum)
 
Svc::InputSchedPortget_run_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_Tlm_OutputPort (FwIndexType portNum, Fw::InputTlmPort *port)
 Connect port to Tlm[portNum]. More...
 
void set_bufferReturnOut_OutputPort (FwIndexType portNum, Fw::InputBufferSendPort *port)
 Connect port to bufferReturnOut[portNum]. More...
 
void set_dataOut_OutputPort (FwIndexType portNum, Svc::InputComDataWithContextPort *port)
 Connect port to dataOut[portNum]. More...
 
void regCommands ()
 Register commands with the Command Dispatcher. More...
 
- Public Member Functions inherited from Fw::ActiveComponentBase
void start (FwTaskPriorityType priority=Os::Task::TASK_PRIORITY_DEFAULT, FwSizeType stackSize=Os::Task::TASK_DEFAULT, FwSizeType cpuAffinity=Os::Task::TASK_DEFAULT, FwTaskIdType identifier=static_cast< FwTaskIdType >(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 FwIdType)
 Set the ID base. More...
 
FwIdType getIdBase () const
 

Protected Types

enum  { NUM_CMDDISP_INPUT_PORTS = 1 }
 Enumerations for numbers of special input ports. More...
 
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_CMDREG_OUTPUT_PORTS = 1, NUM_CMDSTATUS_OUTPUT_PORTS = 1, 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  { OPCODE_FLUSH_QUEUE = 0x0, OPCODE_FLUSH_ALL_QUEUES = 0x1 }
 Command opcodes. 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_CmdReg_OutputPort (FwIndexType portNum)
 
bool isConnected_CmdStatus_OutputPort (FwIndexType portNum)
 
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 cmdResponse_out (FwOpcodeType opCode, U32 cmdSeq, Fw::CmdResponse response)
 Emit command response. More...
 
virtual void FLUSH_QUEUE_cmdHandler (FwOpcodeType opCode, U32 cmdSeq, Svc::QueueType queueType, FwIndexType indexType)=0
 
virtual void FLUSH_ALL_QUEUES_cmdHandler (FwOpcodeType opCode, U32 cmdSeq)=0
 
void FLUSH_QUEUE_cmdHandlerBase (FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
 
void FLUSH_ALL_QUEUES_cmdHandlerBase (FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
 
virtual void FLUSH_QUEUE_preMsgHook (FwOpcodeType opCode, U32 cmdSeq)
 Pre-message hook for command FLUSH_QUEUE. More...
 
virtual void FLUSH_ALL_QUEUES_preMsgHook (FwOpcodeType opCode, U32 cmdSeq)
 Pre-message hook for command FLUSH_ALL_QUEUES. 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...
 
void deinit ()
 Allows de-initialization on teardown. 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_CmdDisp_InputPorts ()
 
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_CmdReg_OutputPorts ()
 
static constexpr FwIndexType getNum_CmdStatus_OutputPorts ()
 
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...
 

Detailed Description

Auto-generated base for ComQueue component.

Component used to queue buffer types

Definition at line 44 of file ComQueueComponentAc.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protected

Enumerations for numbers of special input ports.

Enumerator
NUM_CMDDISP_INPUT_PORTS 

Definition at line 64 of file ComQueueComponentAc.hpp.

◆ anonymous enum

anonymous enum
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 69 of file ComQueueComponentAc.hpp.

◆ anonymous enum

anonymous enum
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 78 of file ComQueueComponentAc.hpp.

◆ anonymous enum

anonymous enum
protected

Enumerations for numbers of typed output ports.

Enumerator
NUM_BUFFERRETURNOUT_OUTPUT_PORTS 
NUM_DATAOUT_OUTPUT_PORTS 

Definition at line 88 of file ComQueueComponentAc.hpp.

◆ anonymous enum

anonymous enum
protected

Command opcodes.

Enumerator
OPCODE_FLUSH_QUEUE 

Flush a specific queue. This will discard all queued data in the specified queue removing it from eventual downlink. Buffers requiring ownership return will be returned via the bufferReturnOut port.

OPCODE_FLUSH_ALL_QUEUES 

Flush all queues. This will discard all queued data removing it from eventual downlink. Buffers requiring ownership return will be returned via the bufferReturnOut port.

Definition at line 94 of file ComQueueComponentAc.hpp.

◆ anonymous enum

anonymous enum
protected

Event IDs.

Enumerator
EVENTID_QUEUEOVERFLOW 

Queue overflow event.

Definition at line 102 of file ComQueueComponentAc.hpp.

◆ anonymous enum

anonymous enum
protected

Channel IDs.

Enumerator
CHANNELID_COMQUEUEDEPTH 

Channel ID for comQueueDepth.

CHANNELID_BUFFQUEUEDEPTH 

Channel ID for buffQueueDepth.

Definition at line 107 of file ComQueueComponentAc.hpp.

Constructor & Destructor Documentation

◆ ComQueueComponentBase()

Svc::ComQueueComponentBase::ComQueueComponentBase ( const char *  compName = "")
protected

Construct ComQueueComponentBase object.

Parameters
compNameThe component name

Definition at line 748 of file ComQueueComponentAc.cpp.

◆ ~ComQueueComponentBase()

Svc::ComQueueComponentBase::~ComQueueComponentBase ( )
protectedvirtual

Destroy ComQueueComponentBase object.

Definition at line 755 of file ComQueueComponentAc.cpp.

Member Function Documentation

◆ bufferQueueIn_handler()

virtual void Svc::ComQueueComponentBase::bufferQueueIn_handler ( FwIndexType  portNum,
Fw::Buffer fwBuffer 
)
protectedpure virtual

Handler for input port bufferQueueIn.

Parameters
portNumThe port number
fwBufferThe buffer

◆ bufferQueueIn_handlerBase()

void Svc::ComQueueComponentBase::bufferQueueIn_handlerBase ( FwIndexType  portNum,
Fw::Buffer fwBuffer 
)
protected

Handler base-class function for input port bufferQueueIn.

Parameters
portNumThe port number
fwBufferThe buffer

Definition at line 867 of file ComQueueComponentAc.cpp.

◆ bufferQueueIn_overflowHook()

virtual void Svc::ComQueueComponentBase::bufferQueueIn_overflowHook ( FwIndexType  portNum,
Fw::Buffer fwBuffer 
)
protectedpure virtual

Overflow hook for async input port bufferQueueIn.

Parameters
portNumThe port number
fwBufferThe buffer

◆ bufferQueueIn_preMsgHook()

void Svc::ComQueueComponentBase::bufferQueueIn_preMsgHook ( FwIndexType  portNum,
Fw::Buffer fwBuffer 
)
protectedvirtual

Pre-message hook for async input port bufferQueueIn.

Parameters
portNumThe port number
fwBufferThe buffer

Definition at line 1132 of file ComQueueComponentAc.cpp.

◆ bufferReturnOut_out()

void Svc::ComQueueComponentBase::bufferReturnOut_out ( FwIndexType  portNum,
Fw::Buffer fwBuffer 
)
protected

Invoke output port bufferReturnOut.

Parameters
portNumThe port number
fwBufferThe buffer

Definition at line 1173 of file ComQueueComponentAc.cpp.

◆ cmdResponse_out()

void Svc::ComQueueComponentBase::cmdResponse_out ( FwOpcodeType  opCode,
U32  cmdSeq,
Fw::CmdResponse  response 
)
protected

Emit command response.

Parameters
opCodeThe opcode
cmdSeqThe command sequence number
responseThe command response

Definition at line 1219 of file ComQueueComponentAc.cpp.

◆ comPacketQueueIn_handler()

virtual void Svc::ComQueueComponentBase::comPacketQueueIn_handler ( FwIndexType  portNum,
Fw::ComBuffer data,
U32  context 
)
protectedpure virtual

Handler for input port comPacketQueueIn.

Parameters
portNumThe port number
dataBuffer containing packet data
contextCall context value; meaning chosen by user

◆ comPacketQueueIn_handlerBase()

void Svc::ComQueueComponentBase::comPacketQueueIn_handlerBase ( FwIndexType  portNum,
Fw::ComBuffer data,
U32  context 
)
protected

Handler base-class function for input port comPacketQueueIn.

Parameters
portNumThe port number
dataBuffer containing packet data
contextCall context value; meaning chosen by user

Definition at line 925 of file ComQueueComponentAc.cpp.

◆ comPacketQueueIn_preMsgHook()

void Svc::ComQueueComponentBase::comPacketQueueIn_preMsgHook ( FwIndexType  portNum,
Fw::ComBuffer data,
U32  context 
)
protectedvirtual

Pre-message hook for async input port comPacketQueueIn.

Parameters
portNumThe port number
dataBuffer containing packet data
contextCall context value; meaning chosen by user

Definition at line 1141 of file ComQueueComponentAc.cpp.

◆ comStatusIn_handler()

virtual void Svc::ComQueueComponentBase::comStatusIn_handler ( FwIndexType  portNum,
Fw::Success condition 
)
protectedpure virtual

Handler for input port comStatusIn.

Parameters
portNumThe port number
conditionCondition success/failure

◆ comStatusIn_handlerBase()

void Svc::ComQueueComponentBase::comStatusIn_handlerBase ( FwIndexType  portNum,
Fw::Success condition 
)
protected

Handler base-class function for input port comStatusIn.

Parameters
portNumThe port number
conditionCondition success/failure

Definition at line 992 of file ComQueueComponentAc.cpp.

◆ comStatusIn_preMsgHook()

void Svc::ComQueueComponentBase::comStatusIn_preMsgHook ( FwIndexType  portNum,
Fw::Success condition 
)
protectedvirtual

Pre-message hook for async input port comStatusIn.

Parameters
portNumThe port number
conditionCondition success/failure

Definition at line 1151 of file ComQueueComponentAc.cpp.

◆ dataOut_out()

void Svc::ComQueueComponentBase::dataOut_out ( FwIndexType  portNum,
Fw::Buffer data,
const ComCfg::FrameContext context 
)
protected

Invoke output port dataOut.

Parameters
portNumThe port number

Definition at line 1193 of file ComQueueComponentAc.cpp.

◆ dataReturnIn_handler()

virtual void Svc::ComQueueComponentBase::dataReturnIn_handler ( FwIndexType  portNum,
Fw::Buffer data,
const ComCfg::FrameContext context 
)
protectedpure virtual

Handler for input port dataReturnIn.

Parameters
portNumThe port number

◆ dataReturnIn_handlerBase()

void Svc::ComQueueComponentBase::dataReturnIn_handlerBase ( FwIndexType  portNum,
Fw::Buffer data,
const ComCfg::FrameContext context 
)
protected

Handler base-class function for input port dataReturnIn.

Parameters
portNumThe port number

Definition at line 1045 of file ComQueueComponentAc.cpp.

◆ FLUSH_ALL_QUEUES_cmdHandler()

virtual void Svc::ComQueueComponentBase::FLUSH_ALL_QUEUES_cmdHandler ( FwOpcodeType  opCode,
U32  cmdSeq 
)
protectedpure virtual

Handler for command FLUSH_ALL_QUEUES

Flush all queues. This will discard all queued data removing it from eventual downlink. Buffers requiring ownership return will be returned via the bufferReturnOut port.

Parameters
opCodeThe opcode
cmdSeqThe command sequence number

◆ FLUSH_ALL_QUEUES_cmdHandlerBase()

void Svc::ComQueueComponentBase::FLUSH_ALL_QUEUES_cmdHandlerBase ( FwOpcodeType  opCode,
U32  cmdSeq,
Fw::CmdArgBuffer args 
)
protected

Base-class handler function for command FLUSH_ALL_QUEUES

Flush all queues. This will discard all queued data removing it from eventual downlink. Buffers requiring ownership return will be returned via the bufferReturnOut port.

Parameters
opCodeThe opcode
cmdSeqThe command sequence number
argsThe command argument buffer

Definition at line 1295 of file ComQueueComponentAc.cpp.

◆ FLUSH_ALL_QUEUES_preMsgHook()

void Svc::ComQueueComponentBase::FLUSH_ALL_QUEUES_preMsgHook ( FwOpcodeType  opCode,
U32  cmdSeq 
)
protectedvirtual

Pre-message hook for command FLUSH_ALL_QUEUES.

Parameters
opCodeThe opcode
cmdSeqThe command sequence number

Definition at line 1373 of file ComQueueComponentAc.cpp.

◆ FLUSH_QUEUE_cmdHandler()

virtual void Svc::ComQueueComponentBase::FLUSH_QUEUE_cmdHandler ( FwOpcodeType  opCode,
U32  cmdSeq,
Svc::QueueType  queueType,
FwIndexType  indexType 
)
protectedpure virtual

Handler for command FLUSH_QUEUE

Flush a specific queue. This will discard all queued data in the specified queue removing it from eventual downlink. Buffers requiring ownership return will be returned via the bufferReturnOut port.

Parameters
opCodeThe opcode
cmdSeqThe command sequence number
queueTypeThe Queue data type
indexTypeThe index of the queue (within the supplied type) to flush

◆ FLUSH_QUEUE_cmdHandlerBase()

void Svc::ComQueueComponentBase::FLUSH_QUEUE_cmdHandlerBase ( FwOpcodeType  opCode,
U32  cmdSeq,
Fw::CmdArgBuffer args 
)
protected

Base-class handler function for command FLUSH_QUEUE

Flush a specific queue. This will discard all queued data in the specified queue removing it from eventual downlink. Buffers requiring ownership return will be returned via the bufferReturnOut port.

Parameters
opCodeThe opcode
cmdSeqThe command sequence number
argsThe command argument buffer

Definition at line 1236 of file ComQueueComponentAc.cpp.

◆ FLUSH_QUEUE_preMsgHook()

void Svc::ComQueueComponentBase::FLUSH_QUEUE_preMsgHook ( FwOpcodeType  opCode,
U32  cmdSeq 
)
protectedvirtual

Pre-message hook for command FLUSH_QUEUE.

Parameters
opCodeThe opcode
cmdSeqThe command sequence number

Definition at line 1362 of file ComQueueComponentAc.cpp.

◆ get_bufferQueueIn_InputPort()

Fw::InputBufferSendPort * Svc::ComQueueComponentBase::get_bufferQueueIn_InputPort ( FwIndexType  portNum)

Get typed input port at index

Returns
bufferQueueIn[portNum]
Parameters
portNumThe port number

Definition at line 415 of file ComQueueComponentAc.cpp.

◆ get_CmdDisp_InputPort()

Fw::InputCmdPort * Svc::ComQueueComponentBase::get_CmdDisp_InputPort ( FwIndexType  portNum)

Get special input port at index

Returns
CmdDisp[portNum]
Parameters
portNumThe port number

Definition at line 400 of file ComQueueComponentAc.cpp.

◆ get_comPacketQueueIn_InputPort()

Fw::InputComPort * Svc::ComQueueComponentBase::get_comPacketQueueIn_InputPort ( FwIndexType  portNum)

Get typed input port at index

Returns
comPacketQueueIn[portNum]
Parameters
portNumThe port number

Definition at line 426 of file ComQueueComponentAc.cpp.

◆ get_comStatusIn_InputPort()

Fw::InputSuccessConditionPort * Svc::ComQueueComponentBase::get_comStatusIn_InputPort ( FwIndexType  portNum)

Get typed input port at index

Returns
comStatusIn[portNum]
Parameters
portNumThe port number

Definition at line 437 of file ComQueueComponentAc.cpp.

◆ get_dataReturnIn_InputPort()

Svc::InputComDataWithContextPort * Svc::ComQueueComponentBase::get_dataReturnIn_InputPort ( FwIndexType  portNum)

Get typed input port at index

Returns
dataReturnIn[portNum]
Parameters
portNumThe port number

Definition at line 448 of file ComQueueComponentAc.cpp.

◆ get_run_InputPort()

Svc::InputSchedPort * Svc::ComQueueComponentBase::get_run_InputPort ( FwIndexType  portNum)

Get typed input port at index

Returns
run[portNum]
Parameters
portNumThe port number

Definition at line 459 of file ComQueueComponentAc.cpp.

◆ getNum_bufferQueueIn_InputPorts()

static constexpr FwIndexType Svc::ComQueueComponentBase::getNum_bufferQueueIn_InputPorts ( )
inlinestaticprotected

Get the number of bufferQueueIn input ports

Returns
The number of bufferQueueIn input ports

Definition at line 361 of file ComQueueComponentAc.hpp.

◆ getNum_bufferReturnOut_OutputPorts()

static constexpr FwIndexType Svc::ComQueueComponentBase::getNum_bufferReturnOut_OutputPorts ( )
inlinestaticprotected

Get the number of bufferReturnOut output ports

Returns
The number of bufferReturnOut output ports

Definition at line 454 of file ComQueueComponentAc.hpp.

◆ getNum_CmdDisp_InputPorts()

static constexpr FwIndexType Svc::ComQueueComponentBase::getNum_CmdDisp_InputPorts ( )
inlinestaticprotected

Get the number of CmdDisp input ports

Returns
The number of CmdDisp input ports

Definition at line 348 of file ComQueueComponentAc.hpp.

◆ getNum_CmdReg_OutputPorts()

static constexpr FwIndexType Svc::ComQueueComponentBase::getNum_CmdReg_OutputPorts ( )
inlinestaticprotected

Get the number of CmdReg output ports

Returns
The number of CmdReg output ports

Definition at line 402 of file ComQueueComponentAc.hpp.

◆ getNum_CmdStatus_OutputPorts()

static constexpr FwIndexType Svc::ComQueueComponentBase::getNum_CmdStatus_OutputPorts ( )
inlinestaticprotected

Get the number of CmdStatus output ports

Returns
The number of CmdStatus output ports

Definition at line 409 of file ComQueueComponentAc.hpp.

◆ getNum_comPacketQueueIn_InputPorts()

static constexpr FwIndexType Svc::ComQueueComponentBase::getNum_comPacketQueueIn_InputPorts ( )
inlinestaticprotected

Get the number of comPacketQueueIn input ports

Returns
The number of comPacketQueueIn input ports

Definition at line 368 of file ComQueueComponentAc.hpp.

◆ getNum_comStatusIn_InputPorts()

static constexpr FwIndexType Svc::ComQueueComponentBase::getNum_comStatusIn_InputPorts ( )
inlinestaticprotected

Get the number of comStatusIn input ports

Returns
The number of comStatusIn input ports

Definition at line 375 of file ComQueueComponentAc.hpp.

◆ getNum_dataOut_OutputPorts()

static constexpr FwIndexType Svc::ComQueueComponentBase::getNum_dataOut_OutputPorts ( )
inlinestaticprotected

Get the number of dataOut output ports

Returns
The number of dataOut output ports

Definition at line 461 of file ComQueueComponentAc.hpp.

◆ getNum_dataReturnIn_InputPorts()

static constexpr FwIndexType Svc::ComQueueComponentBase::getNum_dataReturnIn_InputPorts ( )
inlinestaticprotected

Get the number of dataReturnIn input ports

Returns
The number of dataReturnIn input ports

Definition at line 382 of file ComQueueComponentAc.hpp.

◆ getNum_Log_OutputPorts()

static constexpr FwIndexType Svc::ComQueueComponentBase::getNum_Log_OutputPorts ( )
inlinestaticprotected

Get the number of Log output ports

Returns
The number of Log output ports

Definition at line 416 of file ComQueueComponentAc.hpp.

◆ getNum_run_InputPorts()

static constexpr FwIndexType Svc::ComQueueComponentBase::getNum_run_InputPorts ( )
inlinestaticprotected

Get the number of run input ports

Returns
The number of run input ports

Definition at line 389 of file ComQueueComponentAc.hpp.

◆ getNum_Time_OutputPorts()

static constexpr FwIndexType Svc::ComQueueComponentBase::getNum_Time_OutputPorts ( )
inlinestaticprotected

Get the number of Time output ports

Returns
The number of Time output ports

Definition at line 434 of file ComQueueComponentAc.hpp.

◆ getNum_Tlm_OutputPorts()

static constexpr FwIndexType Svc::ComQueueComponentBase::getNum_Tlm_OutputPorts ( )
inlinestaticprotected

Get the number of Tlm output ports

Returns
The number of Tlm output ports

Definition at line 441 of file ComQueueComponentAc.hpp.

◆ getTime()

Fw::Time Svc::ComQueueComponentBase::getTime ( ) const
protected

Get the time

\return The current time

Definition at line 1567 of file ComQueueComponentAc.cpp.

◆ init()

void Svc::ComQueueComponentBase::init ( FwSizeType  queueDepth,
FwEnumStoreType  instance = 0 
)

Initialize ComQueueComponentBase object.

Parameters
queueDepthThe queue depth
instanceThe instance number

Definition at line 78 of file ComQueueComponentAc.cpp.

◆ isConnected_bufferReturnOut_OutputPort()

bool Svc::ComQueueComponentBase::isConnected_bufferReturnOut_OutputPort ( FwIndexType  portNum)
protected

Check whether port bufferReturnOut is connected

Returns
Whether port bufferReturnOut is connected
Parameters
portNumThe port number

Definition at line 839 of file ComQueueComponentAc.cpp.

◆ isConnected_CmdReg_OutputPort()

bool Svc::ComQueueComponentBase::isConnected_CmdReg_OutputPort ( FwIndexType  portNum)
protected

Check whether port CmdReg is connected

Returns
Whether port CmdReg is connected
Parameters
portNumThe port number

Definition at line 765 of file ComQueueComponentAc.cpp.

◆ isConnected_CmdStatus_OutputPort()

bool Svc::ComQueueComponentBase::isConnected_CmdStatus_OutputPort ( FwIndexType  portNum)
protected

Check whether port CmdStatus is connected

Returns
Whether port CmdStatus is connected
Parameters
portNumThe port number

Definition at line 776 of file ComQueueComponentAc.cpp.

◆ isConnected_dataOut_OutputPort()

bool Svc::ComQueueComponentBase::isConnected_dataOut_OutputPort ( FwIndexType  portNum)
protected

Check whether port dataOut is connected

Returns
Whether port dataOut is connected
Parameters
portNumThe port number

Definition at line 850 of file ComQueueComponentAc.cpp.

◆ isConnected_Log_OutputPort()

bool Svc::ComQueueComponentBase::isConnected_Log_OutputPort ( FwIndexType  portNum)
protected

Check whether port Log is connected

Returns
Whether port Log is connected
Parameters
portNumThe port number

Definition at line 787 of file ComQueueComponentAc.cpp.

◆ isConnected_Time_OutputPort()

bool Svc::ComQueueComponentBase::isConnected_Time_OutputPort ( FwIndexType  portNum)
protected

Check whether port Time is connected

Returns
Whether port Time is connected
Parameters
portNumThe port number

Definition at line 813 of file ComQueueComponentAc.cpp.

◆ isConnected_Tlm_OutputPort()

bool Svc::ComQueueComponentBase::isConnected_Tlm_OutputPort ( FwIndexType  portNum)
protected

Check whether port Tlm is connected

Returns
Whether port Tlm is connected
Parameters
portNumThe port number

Definition at line 824 of file ComQueueComponentAc.cpp.

◆ log_WARNING_HI_QueueOverflow()

void Svc::ComQueueComponentBase::log_WARNING_HI_QueueOverflow ( Svc::QueueType  queueType,
U32  index 
) const
protected

Log event QueueOverflow

Queue overflow event

Parameters
queueTypeThe Queue data type
indexindex of overflowed queue

Definition at line 1388 of file ComQueueComponentAc.cpp.

◆ regCommands()

void Svc::ComQueueComponentBase::regCommands ( )

Register commands with the Command Dispatcher.

Connect the dispatcher first

Definition at line 730 of file ComQueueComponentAc.cpp.

◆ run_handler()

virtual void Svc::ComQueueComponentBase::run_handler ( FwIndexType  portNum,
U32  context 
)
protectedpure virtual

Handler for input port run.

Parameters
portNumThe port number
contextThe call order

◆ run_handlerBase()

void Svc::ComQueueComponentBase::run_handlerBase ( FwIndexType  portNum,
U32  context 
)
protected

Handler base-class function for input port run.

Parameters
portNumThe port number
contextThe call order

Definition at line 1066 of file ComQueueComponentAc.cpp.

◆ run_preMsgHook()

void Svc::ComQueueComponentBase::run_preMsgHook ( FwIndexType  portNum,
U32  context 
)
protectedvirtual

Pre-message hook for async input port run.

Parameters
portNumThe port number
contextThe call order

Definition at line 1160 of file ComQueueComponentAc.cpp.

◆ set_bufferReturnOut_OutputPort()

void Svc::ComQueueComponentBase::set_bufferReturnOut_OutputPort ( FwIndexType  portNum,
Fw::InputBufferSendPort port 
)

Connect port to bufferReturnOut[portNum].

Parameters
portNumThe port number
portThe input port

Definition at line 566 of file ComQueueComponentAc.cpp.

◆ set_CmdReg_OutputPort()

void Svc::ComQueueComponentBase::set_CmdReg_OutputPort ( FwIndexType  portNum,
Fw::InputCmdRegPort port 
)

Connect port to CmdReg[portNum].

Parameters
portNumThe port number
portThe input port

Definition at line 474 of file ComQueueComponentAc.cpp.

◆ set_CmdStatus_OutputPort()

void Svc::ComQueueComponentBase::set_CmdStatus_OutputPort ( FwIndexType  portNum,
Fw::InputCmdResponsePort port 
)

Connect port to CmdStatus[portNum].

Parameters
portNumThe port number
portThe input port

Definition at line 488 of file ComQueueComponentAc.cpp.

◆ set_dataOut_OutputPort()

void Svc::ComQueueComponentBase::set_dataOut_OutputPort ( FwIndexType  portNum,
Svc::InputComDataWithContextPort port 
)

Connect port to dataOut[portNum].

Parameters
portNumThe port number
portThe input port

Definition at line 580 of file ComQueueComponentAc.cpp.

◆ set_Log_OutputPort()

void Svc::ComQueueComponentBase::set_Log_OutputPort ( FwIndexType  portNum,
Fw::InputLogPort port 
)

Connect port to Log[portNum].

Parameters
portNumThe port number
portThe input port

Definition at line 502 of file ComQueueComponentAc.cpp.

◆ set_Time_OutputPort()

void Svc::ComQueueComponentBase::set_Time_OutputPort ( FwIndexType  portNum,
Fw::InputTimePort port 
)

Connect port to Time[portNum].

Parameters
portNumThe port number
portThe input port

Definition at line 534 of file ComQueueComponentAc.cpp.

◆ set_Tlm_OutputPort()

void Svc::ComQueueComponentBase::set_Tlm_OutputPort ( FwIndexType  portNum,
Fw::InputTlmPort port 
)

Connect port to Tlm[portNum].

Parameters
portNumThe port number
portThe input port

Definition at line 548 of file ComQueueComponentAc.cpp.

◆ tlmWrite_buffQueueDepth()

void Svc::ComQueueComponentBase::tlmWrite_buffQueueDepth ( const Svc::BuffQueueDepth arg,
Fw::Time  _tlmTime = Fw::Time() 
) const
protected

Write telemetry channel buffQueueDepth

Depth of queues of Fw::Buffer type

Parameters
argThe telemetry value
_tlmTimeTimestamp. Default: unspecified, request from getTime port

Definition at line 1530 of file ComQueueComponentAc.cpp.

◆ tlmWrite_comQueueDepth()

void Svc::ComQueueComponentBase::tlmWrite_comQueueDepth ( const Svc::ComQueueDepth arg,
Fw::Time  _tlmTime = Fw::Time() 
) const
protected

Write telemetry channel comQueueDepth

Depth of queues of Fw::ComBuffer type

Parameters
argThe telemetry value
_tlmTimeTimestamp. Default: unspecified, request from getTime port

Definition at line 1497 of file ComQueueComponentAc.cpp.

Friends And Related Function Documentation

◆ ComQueueTester

friend class ComQueueTester
friend

Friend class tester implementation to support white-box testing.

Definition at line 55 of file ComQueueComponentAc.hpp.

◆ ComQueueTesterBase

friend class ComQueueTesterBase
friend

Friend class tester to support autocoded test harness.

Definition at line 53 of file ComQueueComponentAc.hpp.


The documentation for this class was generated from the following files: