![]() |
F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
|
#include <Fw/Cmd/CmdPortAc.hpp>
Public Types | |
enum | { SERIALIZED_SIZE } |
typedef void(* | CompFuncPtr) (Fw::PassiveComponentBase *callComp, FwIndexType portNum, FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args) |
The port callback function type. More... | |
Public Member Functions | |
InputCmdPort () | |
Constructor. More... | |
void | init () |
Initialization function. More... | |
void | addCallComp (Fw::PassiveComponentBase *callComp, CompFuncPtr funcPtr) |
Register a component. More... | |
void | invoke (FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args) |
Invoke a port interface. More... | |
![]() | |
void | setPortNum (FwIndexType portNum) |
![]() | |
bool | isConnected () const |
Additional Inherited Members | |
![]() | |
InputPortBase () | |
virtual | ~InputPortBase () |
void | init () override |
![]() | |
PortBase () | |
virtual | ~PortBase () |
![]() | |
ObjBase (const char *name) | |
ObjBase constructor. More... | |
virtual | ~ObjBase () |
Destructor. More... | |
void | init () |
Object initializer. More... | |
![]() | |
PassiveComponentBase * | m_comp |
FwIndexType | m_portNum |
![]() | |
Fw::ObjBase * | m_connObj |
Input Cmd port Port for sending commands
Definition at line 25 of file CmdPortAc.hpp.
typedef void(* Fw::InputCmdPort::CompFuncPtr) (Fw::PassiveComponentBase *callComp, FwIndexType portNum, FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args) |
The port callback function type.
Definition at line 50 of file CmdPortAc.hpp.
anonymous enum |
Enumerator | |
---|---|
SERIALIZED_SIZE | The size of the serial representations of the port arguments. |
Definition at line 35 of file CmdPortAc.hpp.
Fw::InputCmdPort::InputCmdPort | ( | ) |
Constructor.
Definition at line 48 of file CmdPortAc.cpp.
void Fw::InputCmdPort::addCallComp | ( | Fw::PassiveComponentBase * | callComp, |
CompFuncPtr | funcPtr | ||
) |
Register a component.
callComp | The containing component |
funcPtr | The port callback function |
Definition at line 62 of file CmdPortAc.cpp.
|
virtual |
Initialization function.
Reimplemented from Fw::PortBase.
Definition at line 56 of file CmdPortAc.cpp.
void Fw::InputCmdPort::invoke | ( | FwOpcodeType | opCode, |
U32 | cmdSeq, | ||
Fw::CmdArgBuffer & | args | ||
) |
Invoke a port interface.
opCode | Command Op Code |
cmdSeq | Command Sequence |
args | Buffer containing arguments |
Definition at line 76 of file CmdPortAc.cpp.