F´ Flight Software - C/C++ Documentation NASA-v1.6.0
A framework for building embedded system applications to NASA flight quality standards.
Loading...
Searching...
No Matches
Svc::CommandDispatcherImpl Class Reference

Command Dispatcher component class. More...

#include <Svc/CmdDispatcher/CommandDispatcherImpl.hpp>

Inheritance diagram for Svc::CommandDispatcherImpl:

Public Member Functions

 CommandDispatcherImpl (const char *name)
 Command Dispatcher constructor.
 
void init (NATIVE_INT_TYPE queueDepth, NATIVE_INT_TYPE instance)
 Component initialization routine.
 
virtual ~CommandDispatcherImpl ()
 Component destructor.
 

Detailed Description

Command Dispatcher component class.

The command dispatcher takes incoming Fw::Com packets that contain encoded commands. It extracts the opcode and looks it up in a table that is populated by components at registration time. If a component is connected to the seqCmdStatus port with the same number as the port that submitted the command, the command status will be returned.

Definition at line 32 of file CommandDispatcherImpl.hpp.

Constructor & Destructor Documentation

◆ CommandDispatcherImpl()

Svc::CommandDispatcherImpl::CommandDispatcherImpl ( const char *  name)

Command Dispatcher constructor.

The constructor initializes the state of the component. In this component, the opcode dispatch and tracking tables are initialized.

Parameters
namethe component instance name

Definition at line 14 of file CommandDispatcherImpl.cpp.

◆ ~CommandDispatcherImpl()

Svc::CommandDispatcherImpl::~CommandDispatcherImpl ( )
virtual

Component destructor.

The destructor for this component is empty

Definition at line 24 of file CommandDispatcherImpl.cpp.

Member Function Documentation

◆ init()

void Svc::CommandDispatcherImpl::init ( NATIVE_INT_TYPE  queueDepth,
NATIVE_INT_TYPE  instance 
)

Component initialization routine.

The initialization function calls the initialization routine for the base class.

Parameters
queueDepththe depth of the message queue for the component initialization function
Parameters
queueDepthThe queue depth
instanceThe instance number

Definition at line 27 of file CommandDispatcherImpl.cpp.


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