GNU Radio 3.6.5 C++ API

i2c_bitbang Class Reference

class for controlling i2c bus More...

#include <i2c_bitbang.h>

Inheritance diagram for i2c_bitbang:
i2c

List of all members.

Public Member Functions

 ~i2c_bitbang ()
bool write (int addr, const unsigned char *buf, int nbytes)
int read (int addr, unsigned char *buf, int max_bytes)

Friends

GR_CORE_API i2c_sptr make_i2c_bitbang (i2c_bbio_sptr io)

Detailed Description

class for controlling i2c bus


Constructor & Destructor Documentation

i2c_bitbang::~i2c_bitbang ( ) [inline]

Member Function Documentation

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

Implements i2c.

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

Implements i2c.


Friends And Related Function Documentation

GR_CORE_API i2c_sptr make_i2c_bitbang ( i2c_bbio_sptr  io) [friend]

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