F´ Flight Software - C/C++ Documentation
devel
A framework for building embedded system applications to NASA flight quality standards.
|
#include <Drv/I2cDriverPorts/I2cWriteReadPortAc.hpp>
Public Member Functions | |
OutputI2cWriteReadPort () | |
Constructor. More... | |
void | init () |
Initialization function. More... | |
void | addCallPort (InputI2cWriteReadPort *callPort) |
Register an input port. More... | |
Drv::I2cStatus | invoke (U32 addr, Fw::Buffer &writeBuffer, Fw::Buffer &readBuffer) |
Invoke a port interface. More... | |
Public Member Functions inherited from Fw::PortBase | |
bool | isConnected () |
Additional Inherited Members | |
Protected Member Functions inherited from Fw::OutputPortBase | |
OutputPortBase () | |
virtual | ~OutputPortBase () |
Protected Member Functions inherited from Fw::PortBase | |
PortBase () | |
virtual | ~PortBase () |
Protected Member Functions inherited from Fw::ObjBase | |
ObjBase (const char *name) | |
ObjBase constructor. More... | |
virtual | ~ObjBase () |
Destructor. More... | |
void | init () |
Object initializer. More... | |
Protected Attributes inherited from Fw::PortBase | |
Fw::ObjBase * | m_connObj |
Output I2cWriteRead port Write a set of bytes then read a set of bytes using the repeated start option
Definition at line 105 of file I2cWriteReadPortAc.hpp.
Drv::OutputI2cWriteReadPort::OutputI2cWriteReadPort | ( | ) |
Constructor.
Definition at line 80 of file I2cWriteReadPortAc.cpp.
void Drv::OutputI2cWriteReadPort::addCallPort | ( | InputI2cWriteReadPort * | callPort | ) |
Register an input port.
callPort | The input port |
Definition at line 94 of file I2cWriteReadPortAc.cpp.
|
virtual |
Initialization function.
Reimplemented from Fw::OutputPortBase.
Definition at line 88 of file I2cWriteReadPortAc.cpp.
Drv::I2cStatus Drv::OutputI2cWriteReadPort::invoke | ( | U32 | addr, |
Fw::Buffer & | writeBuffer, | ||
Fw::Buffer & | readBuffer | ||
) |
Invoke a port interface.
addr | I2C slave device address |
writeBuffer | Buffer to write data to the i2c device |
readBuffer | Buffer to read back data from the i2c device, must set size when passing in read buffer |
Definition at line 107 of file I2cWriteReadPortAc.cpp.