![]() |
F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
|
#include <Svc/PolyIf/PolyPortAc.hpp>
Public Types | |
enum | { SERIALIZED_SIZE } |
typedef void(* | CompFuncPtr) (Fw::PassiveComponentBase *callComp, FwIndexType portNum, const Svc::PolyDbCfg::PolyDbEntry &entry, Svc::MeasurementStatus &status, Fw::Time &time, Fw::PolyType &val) |
The port callback function type. | |
Public Member Functions | |
InputPolyPort () | |
Constructor. | |
void | init () |
Initialization function. | |
void | addCallComp (Fw::PassiveComponentBase *callComp, CompFuncPtr funcPtr) |
Register a component. | |
void | invoke (const Svc::PolyDbCfg::PolyDbEntry &entry, Svc::MeasurementStatus &status, Fw::Time &time, Fw::PolyType &val) |
Invoke a port interface. | |
![]() | |
void | setPortNum (NATIVE_INT_TYPE portNum) |
![]() | |
bool | isConnected () const |
Additional Inherited Members | |
![]() | |
InputPortBase () | |
virtual | ~InputPortBase () |
![]() | |
PortBase () | |
virtual | ~PortBase () |
![]() | |
ObjBase (const char *name) | |
ObjBase constructor. | |
virtual | ~ObjBase () |
Destructor. | |
void | init () |
Object initializer. | |
![]() | |
PassiveComponentBase * | m_comp |
NATIVE_INT_TYPE | m_portNum |
![]() | |
Fw::ObjBase * | m_connObj |
Input Poly port Port for setting and getting PolyType values
Definition at line 28 of file PolyPortAc.hpp.
typedef void(* Svc::InputPolyPort::CompFuncPtr) (Fw::PassiveComponentBase *callComp, FwIndexType portNum, const Svc::PolyDbCfg::PolyDbEntry &entry, Svc::MeasurementStatus &status, Fw::Time &time, Fw::PolyType &val) |
The port callback function type.
Definition at line 54 of file PolyPortAc.hpp.
anonymous enum |
Enumerator | |
---|---|
SERIALIZED_SIZE | The size of the serial representations of the port arguments. |
Definition at line 38 of file PolyPortAc.hpp.
Svc::InputPolyPort::InputPolyPort | ( | ) |
Constructor.
Definition at line 47 of file PolyPortAc.cpp.
void Svc::InputPolyPort::addCallComp | ( | Fw::PassiveComponentBase * | callComp, |
CompFuncPtr | funcPtr | ||
) |
Register a component.
callComp | The containing component |
funcPtr | The port callback function |
Definition at line 61 of file PolyPortAc.cpp.
|
virtual |
Initialization function.
Reimplemented from Fw::InputPortBase.
Definition at line 55 of file PolyPortAc.cpp.
void Svc::InputPolyPort::invoke | ( | const Svc::PolyDbCfg::PolyDbEntry & | entry, |
Svc::MeasurementStatus & | status, | ||
Fw::Time & | time, | ||
Fw::PolyType & | val | ||
) |
Invoke a port interface.
entry | The entry to access |
status | The command response argument |
time | The time of the measurement |
val | The value to be passed |
Definition at line 75 of file PolyPortAc.cpp.