16 #ifndef included_vlib_i2c_h 17 #define included_vlib_i2c_h 22 #define I2C_MSG_FLAG_WRITE 0 23 #define I2C_MSG_FLAG_READ 1 51 u16 length,
u8 * data);
void vlib_i2c_init(i2c_bus_t *bus)
struct i2c_bus_t i2c_bus_t
void(* get_bits)(struct i2c_bus_t *b, int *scl, int *sda)
void(* put_bits)(struct i2c_bus_t *b, int scl, int sda)
void vlib_i2c_xfer(i2c_bus_t *bus, i2c_msg_t *msgs)
static int vlib_i2c_bus_timed_out(i2c_bus_t *bus)
void vlib_i2c_read_eeprom(i2c_bus_t *bus, u8 i2c_addr, u16 start_addr, u16 length, u8 *data)