Home
last modified time | relevance | path

Searched refs:i2c_handle (Results 1 – 3 of 3) sorted by relevance

/device/google/contexthub/util/stm32_flash/
Di2c.c28 i2c_handle_t *i2c_handle = (i2c_handle_t *)handle; in i2c_write_data() local
32 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() local
52 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() local
83 if (ioctl(i2c_handle->fd, I2C_SLAVE, i2c_handle->addr) < 0) { in i2c_init()
Dflash.c73 i2c_handle_t i2c_handle; in main() local
187 handle = &i2c_handle.handle; in main()
188 i2c_handle.fd = fd; in main()
189 i2c_handle.addr = addr; in main()
Di2c.h22 typedef struct i2c_handle struct