2009-11-21 02:37:15 +03:00
|
|
|
#ifndef BITBANG_I2C_H
|
|
|
|
#define BITBANG_I2C_H
|
|
|
|
|
2013-02-04 18:40:22 +04:00
|
|
|
#include "hw/i2c.h"
|
2009-11-21 02:37:15 +03:00
|
|
|
|
|
|
|
typedef struct bitbang_i2c_interface bitbang_i2c_interface;
|
|
|
|
|
|
|
|
#define BITBANG_I2C_SDA 0
|
|
|
|
#define BITBANG_I2C_SCL 1
|
|
|
|
|
|
|
|
bitbang_i2c_interface *bitbang_i2c_init(i2c_bus *bus);
|
|
|
|
int bitbang_i2c_set(bitbang_i2c_interface *i2c, int line, int level);
|
|
|
|
|
|
|
|
#endif
|