![]() |
F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
|
#include <Svc/ComQueue/ComQueue.hpp>
Classes | |
struct | QueueConfigurationEntry |
configuration data for each queue More... | |
struct | QueueConfigurationTable |
configuration table for each queue More... | |
Static Public Attributes | |
static const FwIndexType | COM_PORT_COUNT = ComQueueComponentBase::NUM_COMPACKETQUEUEIN_INPUT_PORTS |
< Count of Fw::Com input ports and thus Fw::Com queues More... | |
static const FwIndexType | BUFFER_PORT_COUNT = ComQueueComponentBase::NUM_BUFFERQUEUEIN_INPUT_PORTS |
static const FwIndexType | TOTAL_PORT_COUNT = COM_PORT_COUNT + BUFFER_PORT_COUNT |
Total count of input buffer ports and thus total queues. More... | |
Additional Inherited Members | |
![]() | |
enum | { ACTIVE_COMPONENT_EXIT } |
![]() | |
enum | MsgDispatchStatus { MSG_DISPATCH_OK, MSG_DISPATCH_EMPTY, MSG_DISPATCH_ERROR, MSG_DISPATCH_EXIT } |
![]() | |
enum | { NUM_BUFFERQUEUEIN_INPUT_PORTS = 1, NUM_BUFFERRETURNIN_INPUT_PORTS = 1, NUM_COMPACKETQUEUEIN_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_BUFFERRETURNOUT_OUTPUT_PORTS = 1, NUM_QUEUESEND_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... | |
![]() | |
enum | Lifecycle { CREATED, DISPATCHING, FINALIZING, DONE } |
Tracks the lifecycle of the component. More... | |
![]() | |
ComQueueComponentBase (const char *compName="") | |
Construct ComQueueComponentBase object. More... | |
virtual | ~ComQueueComponentBase () |
Destroy ComQueueComponentBase object. More... | |
FwIndexType | getNum_bufferQueueIn_InputPorts () const |
FwIndexType | getNum_bufferReturnIn_InputPorts () const |
FwIndexType | getNum_comPacketQueueIn_InputPorts () const |
FwIndexType | getNum_comStatusIn_InputPorts () const |
FwIndexType | getNum_run_InputPorts () const |
FwIndexType | getNum_Log_OutputPorts () const |
FwIndexType | getNum_Time_OutputPorts () const |
FwIndexType | getNum_Tlm_OutputPorts () const |
FwIndexType | getNum_bufferReturnOut_OutputPorts () const |
FwIndexType | getNum_queueSend_OutputPorts () const |
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_queueSend_OutputPort (FwIndexType portNum) |
void | bufferQueueIn_handlerBase (FwIndexType portNum, Fw::Buffer &fwBuffer) |
Handler base-class function for input port bufferQueueIn. More... | |
void | bufferReturnIn_handlerBase (FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context) |
Handler base-class function for input port bufferReturnIn. 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 | 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... | |
void | bufferReturnOut_out (FwIndexType portNum, Fw::Buffer &fwBuffer) |
Invoke output port bufferReturnOut. More... | |
void | queueSend_out (FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context) |
Invoke output port queueSend. 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 |
![]() | |
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... | |
![]() | |
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... | |
![]() | |
PassiveComponentBase (const char *name) | |
Named constructor. More... | |
virtual | ~PassiveComponentBase () |
Destructor. More... | |
void | init (FwEnumStoreType instance) |
Initialization function. More... | |
FwEnumStoreType | getInstance () const |
![]() | |
ObjBase (const char *name) | |
ObjBase constructor. More... | |
virtual | ~ObjBase () |
Destructor. More... | |
void | init () |
Object initializer. More... | |
![]() | |
Os::Task | m_task |
task object for active component More... | |
![]() | |
Os::Queue | m_queue |
queue object for active component More... | |
Definition at line 24 of file ComQueue.hpp.
Svc::ComQueue::ComQueue | ( | const char *const | compName | ) |
Construct object ComQueue
compName | The component name |
Definition at line 30 of file ComQueue.cpp.
Svc::ComQueue::~ComQueue | ( | ) |
Destroy object ComQueue
Definition at line 42 of file ComQueue.cpp.
void Svc::ComQueue::cleanup | ( | ) |
Deallocate resources and cleanup ComQueue
Definition at line 44 of file ComQueue.cpp.
void Svc::ComQueue::configure | ( | QueueConfigurationTable | queueConfig, |
FwEnumStoreType | allocationId, | ||
Fw::MemAllocator & | allocator | ||
) |
Configure the queue depths, priorities, and memory allocation for the component
Takes in the queue depth and priority per-port in order from Fw::Com through Fw::Buffer ports. Calculates the queue metadata stored m_prioritizedList
and then sorts that list by priority.
queueConfig | Table of the configuration properties for the component |
allocationId | Identifier used when dealing with the Fw::MemAllocator |
allocator | Fw::MemAllocator used to acquire memory |
Definition at line 51 of file ComQueue.cpp.
|
static |
Definition at line 30 of file ComQueue.hpp.
|
static |
< Count of Fw::Com input ports and thus Fw::Com queues
Count of Fw::Buffer input ports and thus Fw::Buffer queues
Definition at line 27 of file ComQueue.hpp.
|
static |
Total count of input buffer ports and thus total queues.
Definition at line 35 of file ComQueue.hpp.