My Project  v0.0.16
Public Member Functions | Protected Member Functions | Private Attributes | Friends | List of all members
I2CSlave Class Reference

Class to provide OpenCode I2C interface to a ipbus node. More...

#include <I2CMasterNode.hpp>

Inheritance diagram for I2CSlave:
Inheritance graph
[legend]
Collaboration diagram for I2CSlave:
Collaboration graph
[legend]

Public Member Functions

Protected Member Functions

Private Attributes

Friends

Detailed Description

Class to provide OpenCode I2C interface to a ipbus node.

The class is non copyable on purpose as the inheriting object must properly set the node pointer in the copy i2c access through an IPbus interface

Author
Kristian Harder, Alessandro Thea
Date
August 2013

Constructor & Destructor Documentation

◆ I2CSlave()

I2CSlave ( const I2CBaseNode*  aMaster,
uint8_t  aSlaveAddress 
)
protected

◆ ~I2CSlave()

~I2CSlave ( )
virtual

Member Function Documentation

◆ getI2CAddress()

uint8_t getI2CAddress ( ) const
inline

◆ readI2C()

uint8_t readI2C ( uint32_t  i2cAddress) const

comodity functions

◆ writeI2C()

void writeI2C ( uint32_t  i2cAddress,
uint32_t  data 
) const

Friends And Related Function Documentation

◆ I2CMasterNode

friend class I2CMasterNode
friend

Member Data Documentation

◆ mAddress

uint8_t mAddress
private

◆ mMaster

const I2CBaseNode* mMaster
private

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