4 #include "hw/i2c/i2c.h"
6 typedef struct bitbang_i2c_interface bitbang_i2c_interface;
8 #define BITBANG_I2C_SDA 0
9 #define BITBANG_I2C_SCL 1
11 typedef enum bitbang_i2c_state {
34 struct bitbang_i2c_interface {
36 bitbang_i2c_state state;
45 * bitbang_i2c_init: in-place initialize the bitbang_i2c_interface struct
47 void bitbang_i2c_init(bitbang_i2c_interface *s, I2CBus *bus);
48 int bitbang_i2c_set(bitbang_i2c_interface *i2c, int line, int level);