F´ Flight Software - C/C++ Documentation
NASA-v1.6.0
A framework for building embedded system applications to NASA flight quality standards.
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Functions
a
b
c
d
e
f
g
h
i
j
l
m
o
p
r
s
t
u
v
w
Variables
b
c
f
g
k
l
m
o
p
r
s
t
u
w
z
Typedefs
a
b
c
d
e
f
g
h
i
l
n
o
p
r
s
t
u
v
w
Enumerations
Enumerator
a
b
f
h
i
k
n
o
p
s
v
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
~
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
~
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Typedefs
a
b
c
e
f
i
m
r
s
t
w
Enumerations
b
c
d
f
g
h
m
o
q
r
s
t
u
w
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Related Symbols
:
a
b
c
d
f
g
h
l
p
q
r
s
t
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
Functions
f
g
i
m
p
r
s
t
u
Variables
_
b
c
f
g
i
l
p
r
s
w
Typedefs
a
b
c
e
f
i
n
p
s
t
u
Enumerations
Enumerator
a
b
c
f
g
h
p
r
s
t
Macros
_
a
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
CommandDispatcherImpl.hpp
Go to the documentation of this file.
1
14
#ifndef COMMANDDISPATCHERIMPL_HPP_
15
#define COMMANDDISPATCHERIMPL_HPP_
16
17
#include <
Svc/CmdDispatcher/CommandDispatcherComponentAc.hpp
>
18
#include <
Os/Mutex.hpp
>
19
#include <
CommandDispatcherImplCfg.hpp
>
20
21
namespace
Svc
{
22
31
32
class
CommandDispatcherImpl
:
public
CommandDispatcherComponentBase
{
33
public
:
41
CommandDispatcherImpl
(
const
char
* name);
48
void
init
(
49
NATIVE_INT_TYPE
queueDepth,
50
NATIVE_INT_TYPE
instance
51
);
55
virtual
~CommandDispatcherImpl
();
56
PROTECTED:
57
PRIVATE:
67
void
compCmdStat_handler(
NATIVE_INT_TYPE
portNum,
FwOpcodeType
opCode, U32 cmdSeq,
const
Fw::CmdResponse
&response);
76
void
seqCmdBuff_handler(
NATIVE_INT_TYPE
portNum,
Fw::ComBuffer
&data, U32 context);
85
void
compCmdReg_handler(
NATIVE_INT_TYPE
portNum,
FwOpcodeType
opCode);
94
void
pingIn_handler(
NATIVE_INT_TYPE
portNum, U32 key);
101
void
CMD_NO_OP_cmdHandler(
FwOpcodeType
opCode, U32 cmdSeq);
110
void
CMD_NO_OP_STRING_cmdHandler(
FwOpcodeType
opCode, U32 cmdSeq,
const
Fw::CmdStringArg
& arg1);
120
void
CMD_TEST_CMD_1_cmdHandler(
FwOpcodeType
opCode, U32 cmdSeq, I32 arg1,
F32
arg2,
U8
arg3);
130
void
CMD_CLEAR_TRACKING_cmdHandler(
FwOpcodeType
opCode, U32 cmdSeq);
131
142
143
struct
DispatchEntry {
144
bool
used;
145
U32 opcode;
146
NATIVE_INT_TYPE
port;
147
} m_entryTable[
CMD_DISPATCHER_DISPATCH_TABLE_SIZE
];
148
161
162
struct
SequenceTracker {
163
bool
used;
164
U32 seq;
165
FwOpcodeType
opCode;
166
U32 context;
167
NATIVE_INT_TYPE
callerPort;
168
} m_sequenceTracker[
CMD_DISPATCHER_SEQUENCER_TABLE_SIZE
];
169
170
I32 m_seq;
171
172
U32 m_numCmdsDispatched;
173
U32 m_numCmdErrors;
174
175
};
32
class
CommandDispatcherImpl
:
public
CommandDispatcherComponentBase
{
…
};
176
}
177
178
#endif
/* COMMANDDISPATCHERIMPL_HPP_ */
NATIVE_INT_TYPE
PlatformIntType NATIVE_INT_TYPE
Definition
BasicTypes.h:51
F32
float F32
32-bit floating point
Definition
BasicTypes.h:45
U8
uint8_t U8
8-bit unsigned integer
Definition
BasicTypes.h:26
CommandDispatcherComponentAc.hpp
CommandDispatcherImplCfg.hpp
CMD_DISPATCHER_SEQUENCER_TABLE_SIZE
@ CMD_DISPATCHER_SEQUENCER_TABLE_SIZE
Definition
CommandDispatcherImplCfg.hpp:15
CMD_DISPATCHER_DISPATCH_TABLE_SIZE
@ CMD_DISPATCHER_DISPATCH_TABLE_SIZE
Definition
CommandDispatcherImplCfg.hpp:14
FwOpcodeType
U32 FwOpcodeType
Definition
FpConfig.h:56
Mutex.hpp
Fw::CmdResponse
Enum representing a command response.
Definition
CmdResponseEnumAc.hpp:19
Fw::CmdStringArg
Definition
CmdString.hpp:10
Fw::ComBuffer
Definition
ComBuffer.hpp:20
Fw::ObjBase::init
void init()
Object initializer.
Definition
ObjBase.cpp:27
Svc::CommandDispatcherComponentBase
Auto-generated base for CommandDispatcher component.
Definition
CommandDispatcherComponentAc.hpp:40
Svc::CommandDispatcherImpl
Command Dispatcher component class.
Definition
CommandDispatcherImpl.hpp:32
Svc::CommandDispatcherImpl::CommandDispatcherImpl
CommandDispatcherImpl(const char *name)
Command Dispatcher constructor.
Definition
CommandDispatcherImpl.cpp:14
Svc::CommandDispatcherImpl::~CommandDispatcherImpl
virtual ~CommandDispatcherImpl()
Component destructor.
Definition
CommandDispatcherImpl.cpp:24
Svc
Definition
ActiveRateGroupCfg.hpp:18
Svc
CmdDispatcher
CommandDispatcherImpl.hpp
Generated by
1.10.0