GNU Radio 2.x: i2c_bitbang Class Reference

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

# i2c_bitbang Class Reference

`#include <i2c_bitbang.h>`

Inheritance diagram for i2c_bitbang:

[legend]
Collaboration diagram for i2c_bitbang:

[legend]
List of all members.

## Detailed Description

class for controlling i2c bus

## Public Member Functions
| ~i2c_bitbang ()
bool | write (int addr, const unsigned char *buf, int nbytes)
| true iff successful
int | read (int addr, unsigned char *buf, int max_bytes)
| number of bytes read or -1 if error
## Friends
i2c_sptr | make_i2c_bitbang (i2c_bbio_sptr io)

## Constructor & Destructor Documentation

i2c_bitbang::~i2c_bitbang | ( |  | ) | `[inline]`

## Member Function Documentation

int i2c_bitbang::read | ( | int | addr,
|  | unsigned char * | buf,
|  | int | max_bytes
| ) | `[virtual]`

| number of bytes read or -1 if error Implements i2c.

bool i2c_bitbang::write | ( | int | addr,
|  | const unsigned char * | buf,
|  | int | nbytes
| ) | `[virtual]`

| true iff successful Implements i2c.

## Friends And Related Function Documentation

i2c_sptr make_i2c_bitbang | ( | i2c_bbio_sptr | io | ) | `[friend]`

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

- i2c_bitbang.h
- i2c_bitbang.cc