GNU Radio 3.6.5 C++ API

i2c Class Reference

abstract class for controlling i2c bus More...

#include <i2c.h>

Inheritance diagram for i2c:
i2c_bitbang

List of all members.

Public Member Functions

 i2c ()
virtual ~i2c ()
virtual bool write (int addr, const unsigned char *buf, int nbytes)=0
virtual int read (int addr, unsigned char *buf, int max_bytes)=0

Detailed Description

abstract class for controlling i2c bus


Constructor & Destructor Documentation

i2c::i2c ( ) [inline]
virtual i2c::~i2c ( ) [virtual]

Member Function Documentation

virtual int i2c::read ( int  addr,
unsigned char *  buf,
int  max_bytes 
) [pure virtual]
Returns:
number of bytes read or -1 if error

Implemented in i2c_bitbang.

virtual bool i2c::write ( int  addr,
const unsigned char *  buf,
int  nbytes 
) [pure virtual]
Returns:
true iff successful

Implemented in i2c_bitbang.


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