![]() |
F´ Flight Software - C/C++ Documentation NASA-v1.6.0
A framework for building embedded system applications to NASA flight quality standards.
|
Command Dispatcher component class. More...
#include <Svc/CmdDispatcher/CommandDispatcherImpl.hpp>
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. | |
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.
| 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.
| name | the component instance name |
Definition at line 14 of file CommandDispatcherImpl.cpp.
|
virtual |
Component destructor.
The destructor for this component is empty
Definition at line 24 of file CommandDispatcherImpl.cpp.
| 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.
| queueDepth | the depth of the message queue for the component initialization function |
| queueDepth | The queue depth |
| instance | The instance number |
Definition at line 27 of file CommandDispatcherImpl.cpp.