Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

i2c Class Reference

#include <i2c.h>

Inheritance diagram for i2c:

Inheritance graph
[legend]
List of all members.

Detailed Description

abstract class for controlling i2c bus


Public Member Functions

 i2c ()
virtual ~i2c ()
virtual bool write (int addr, const unsigned char *buf, int nbytes)=0
 true iff successful
virtual int read (int addr, unsigned char *buf, int max_bytes)=0
 number of bytes read or -1 if error


Constructor & Destructor Documentation

i2c::i2c  )  [inline]
 

i2c::~i2c  )  [virtual]
 


Member Function Documentation

virtual int i2c::read int  addr,
unsigned char *  buf,
int  max_bytes
[pure virtual]
 

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]
 

true iff successful

Implemented in i2c_bitbang.


The documentation for this class was generated from the following files:
Generated on Sat Jul 8 17:14:57 2006 for GNU Radio 2.x by  doxygen 1.4.1