![]() |
F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
|
#include <Fw/Com/ComPortAc.hpp>
Public Types | |
enum | { SERIALIZED_SIZE } |
typedef void(* | CompFuncPtr) (Fw::PassiveComponentBase *callComp, FwIndexType portNum, Fw::ComBuffer &data, U32 context) |
The port callback function type. More... | |
Public Member Functions | |
InputComPort () | |
Constructor. More... | |
void | init () |
Initialization function. More... | |
void | addCallComp (Fw::PassiveComponentBase *callComp, CompFuncPtr funcPtr) |
Register a component. More... | |
void | invoke (Fw::ComBuffer &data, U32 context) |
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 Com port Port for passing communication packet buffers
Definition at line 25 of file ComPortAc.hpp.
typedef void(* Fw::InputComPort::CompFuncPtr) (Fw::PassiveComponentBase *callComp, FwIndexType portNum, Fw::ComBuffer &data, U32 context) |
The port callback function type.
Definition at line 49 of file ComPortAc.hpp.
anonymous enum |
Enumerator | |
---|---|
SERIALIZED_SIZE | The size of the serial representations of the port arguments. |
Definition at line 35 of file ComPortAc.hpp.
Fw::InputComPort::InputComPort | ( | ) |
Constructor.
Definition at line 48 of file ComPortAc.cpp.
void Fw::InputComPort::addCallComp | ( | Fw::PassiveComponentBase * | callComp, |
CompFuncPtr | funcPtr | ||
) |
Register a component.
callComp | The containing component |
funcPtr | The port callback function |
Definition at line 62 of file ComPortAc.cpp.
|
virtual |
Initialization function.
Reimplemented from Fw::PortBase.
Definition at line 56 of file ComPortAc.cpp.
void Fw::InputComPort::invoke | ( | Fw::ComBuffer & | data, |
U32 | context | ||
) |
Invoke a port interface.
data | Buffer containing packet data |
context | Call context value; meaning chosen by user |
Definition at line 76 of file ComPortAc.cpp.