![]() |
F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
|
Input I2c port. More...
#include <Drv/Ports/I2cPortAc.hpp>
Public Types | |
enum | { SERIALIZED_SIZE } |
typedef Drv::I2cStatus(* | CompFuncPtr) (Fw::PassiveComponentBase *callComp, FwIndexType portNum, U32 addr, Fw::Buffer &serBuffer) |
The port callback function type. | |
Public Member Functions | |
InputI2cPort () | |
Constructor. | |
void | init () |
Initialization function. | |
void | addCallComp (Fw::PassiveComponentBase *callComp, CompFuncPtr funcPtr) |
Register a component. | |
Drv::I2cStatus | invoke (U32 addr, Fw::Buffer &serBuffer) |
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 I2c port.
Definition at line 24 of file I2cPortAc.hpp.
typedef Drv::I2cStatus(* Drv::InputI2cPort::CompFuncPtr) (Fw::PassiveComponentBase *callComp, FwIndexType portNum, U32 addr, Fw::Buffer &serBuffer) |
The port callback function type.
Definition at line 48 of file I2cPortAc.hpp.
anonymous enum |
Enumerator | |
---|---|
SERIALIZED_SIZE | The size of the serial representations of the port arguments. |
Definition at line 34 of file I2cPortAc.hpp.
Drv::InputI2cPort::InputI2cPort | ( | ) |
Constructor.
Definition at line 17 of file I2cPortAc.cpp.
void Drv::InputI2cPort::addCallComp | ( | Fw::PassiveComponentBase * | callComp, |
CompFuncPtr | funcPtr | ||
) |
Register a component.
callComp | The containing component |
funcPtr | The port callback function |
Definition at line 31 of file I2cPortAc.cpp.
|
virtual |
Initialization function.
Reimplemented from Fw::InputPortBase.
Definition at line 25 of file I2cPortAc.cpp.
Drv::I2cStatus Drv::InputI2cPort::invoke | ( | U32 | addr, |
Fw::Buffer & | serBuffer | ||
) |
Invoke a port interface.
addr | I2C slave device address |
serBuffer | Buffer with data to read/write to/from |
Definition at line 45 of file I2cPortAc.cpp.