2009-11-21 00:37:15 +01:00
|
|
|
#ifndef BITBANG_I2C_H
|
|
|
|
#define BITBANG_I2C_H
|
|
|
|
|
2013-02-05 17:06:20 +01:00
|
|
|
#include "hw/i2c/i2c.h"
|
2009-11-21 00:37:15 +01:00
|
|
|
|
2019-06-20 12:55:23 +02:00
|
|
|
typedef struct bitbang_i2c_interface bitbang_i2c_interface;
|
|
|
|
|
2009-11-21 00:37:15 +01:00
|
|
|
#define BITBANG_I2C_SDA 0
|
|
|
|
#define BITBANG_I2C_SCL 1
|
|
|
|
|
2013-08-03 00:18:51 +02:00
|
|
|
bitbang_i2c_interface *bitbang_i2c_init(I2CBus *bus);
|
2009-11-21 00:37:15 +01:00
|
|
|
int bitbang_i2c_set(bitbang_i2c_interface *i2c, int line, int level);
|
|
|
|
|
|
|
|
#endif
|