Searched refs:i2c_handle (Results 1 – 3 of 3) sorted by relevance
28 i2c_handle_t *i2c_handle = (i2c_handle_t *)handle; in i2c_write_data() local32 if (write(i2c_handle->fd, buffer, length+1) == (length+1)) in i2c_write_data()50 i2c_handle_t *i2c_handle = (i2c_handle_t *)handle; in i2c_read_data() local52 if (read(i2c_handle->fd, data, length) == length) in i2c_read_data()70 i2c_handle_t *i2c_handle = (i2c_handle_t *)handle; in i2c_init() local83 if (ioctl(i2c_handle->fd, I2C_SLAVE, i2c_handle->addr) < 0) { in i2c_init()
73 i2c_handle_t i2c_handle; in main() local187 handle = &i2c_handle.handle; in main()188 i2c_handle.fd = fd; in main()189 i2c_handle.addr = addr; in main()
22 typedef struct i2c_handle struct