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