i2c_bitbang Class Reference
#include <i2c_bitbang.h>
List of all members.
Detailed Description
class for controlling
i2c bus
Constructor & Destructor Documentation
| i2c_bitbang::~i2c_bitbang |
( |
|
) |
[inline] |
Member Function Documentation
| bool i2c_bitbang::write |
( |
int |
addr, |
|
|
const unsigned char * |
buf, |
|
|
int |
nbytes | |
|
) |
| | [virtual] |
- Returns:
- true iff successful
Implements i2c.
| int i2c_bitbang::read |
( |
int |
addr, |
|
|
unsigned char * |
buf, |
|
|
int |
max_bytes | |
|
) |
| | [virtual] |
- Returns:
- number of bytes read or -1 if error
Implements i2c.
Friends And Related Function Documentation
The documentation for this class was generated from the following files: