![]() |
F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
|
#include <Svc/Ports/VersionPorts/VersionPortAc.hpp>
Public Types | |
enum | { SERIALIZED_SIZE } |
typedef void(* | CompFuncPtr) (Fw::PassiveComponentBase *callComp, FwIndexType portNum, const Svc::VersionCfg::VersionEnum &version_id, Fw::StringBase &version_string, Svc::VersionStatus &status) |
The port callback function type. More... | |
Public Member Functions | |
InputVersionPort () | |
Constructor. More... | |
void | init () |
Initialization function. More... | |
void | addCallComp (Fw::PassiveComponentBase *callComp, CompFuncPtr funcPtr) |
Register a component. More... | |
void | invoke (const Svc::VersionCfg::VersionEnum &version_id, Fw::StringBase &version_string, Svc::VersionStatus &status) |
Invoke a port interface. More... | |
![]() | |
void | setPortNum (NATIVE_INT_TYPE 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 |
NATIVE_INT_TYPE | m_portNum |
![]() | |
Fw::ObjBase * | m_connObj |
Input Version port Port for setting and getting Versions
Definition at line 26 of file VersionPortAc.hpp.
typedef void(* Svc::InputVersionPort::CompFuncPtr) (Fw::PassiveComponentBase *callComp, FwIndexType portNum, const Svc::VersionCfg::VersionEnum &version_id, Fw::StringBase &version_string, Svc::VersionStatus &status) |
The port callback function type.
Definition at line 51 of file VersionPortAc.hpp.
anonymous enum |
Enumerator | |
---|---|
SERIALIZED_SIZE | The size of the serial representations of the port arguments. |
Definition at line 36 of file VersionPortAc.hpp.
Svc::InputVersionPort::InputVersionPort | ( | ) |
Constructor.
Definition at line 48 of file VersionPortAc.cpp.
void Svc::InputVersionPort::addCallComp | ( | Fw::PassiveComponentBase * | callComp, |
CompFuncPtr | funcPtr | ||
) |
Register a component.
callComp | The containing component |
funcPtr | The port callback function |
Definition at line 62 of file VersionPortAc.cpp.
|
virtual |
Initialization function.
Reimplemented from Fw::PortBase.
Definition at line 56 of file VersionPortAc.cpp.
void Svc::InputVersionPort::invoke | ( | const Svc::VersionCfg::VersionEnum & | version_id, |
Fw::StringBase & | version_string, | ||
Svc::VersionStatus & | status | ||
) |
Invoke a port interface.
version_id | The entry to access |
version_string | The value to be passed |
status | The command response argument |
Definition at line 76 of file VersionPortAc.cpp.