F´ Flight Software - C/C++ Documentation  devel
A framework for building embedded system applications to NASA flight quality standards.
Drv::OutputI2cWriteReadPort Class Reference

#include <Drv/I2cDriverPorts/I2cWriteReadPortAc.hpp>

Inheritance diagram for Drv::OutputI2cWriteReadPort:
Fw::OutputPortBase Fw::PortBase Fw::ObjBase

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::ObjBasem_connObj
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ OutputI2cWriteReadPort()

Drv::OutputI2cWriteReadPort::OutputI2cWriteReadPort ( )

Constructor.

Definition at line 80 of file I2cWriteReadPortAc.cpp.

Member Function Documentation

◆ addCallPort()

void Drv::OutputI2cWriteReadPort::addCallPort ( InputI2cWriteReadPort callPort)

Register an input port.

Parameters
callPortThe input port

Definition at line 94 of file I2cWriteReadPortAc.cpp.

◆ init()

void Drv::OutputI2cWriteReadPort::init ( )
virtual

Initialization function.

Reimplemented from Fw::OutputPortBase.

Definition at line 88 of file I2cWriteReadPortAc.cpp.

◆ invoke()

Drv::I2cStatus Drv::OutputI2cWriteReadPort::invoke ( U32  addr,
Fw::Buffer writeBuffer,
Fw::Buffer readBuffer 
)

Invoke a port interface.

Parameters
addrI2C slave device address
writeBufferBuffer to write data to the i2c device
readBufferBuffer to read back data from the i2c device, must set size when passing in read buffer

Definition at line 107 of file I2cWriteReadPortAc.cpp.


The documentation for this class was generated from the following files: