Home
last modified time | relevance | path

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

/hal_espressif-3.6.0/components/driver/
Di2c.c261 i2c_obj_t *p_i2c = p_i2c_obj[i2c_num]; in i2c_driver_install() local
262 p_i2c->i2c_num = i2c_num; in i2c_driver_install()
263 p_i2c->mode = mode; in i2c_driver_install()
264 p_i2c->cmd_idx = 0; in i2c_driver_install()
265 p_i2c->rx_cnt = 0; in i2c_driver_install()
266 p_i2c->status = I2C_STATUS_IDLE; in i2c_driver_install()
269 p_i2c->intr_alloc_flags = intr_alloc_flags; in i2c_driver_install()
275 p_i2c->rx_ring_buf = xRingbufferCreate(slv_rx_buf_len, RINGBUF_TYPE_BYTEBUF); in i2c_driver_install()
276 if (p_i2c->rx_ring_buf == NULL) { in i2c_driver_install()
280 p_i2c->rx_buf_length = slv_rx_buf_len; in i2c_driver_install()
[all …]