i2c_slave_write_buffer() function
Write bytes to internal ringbuffer of the I2C slave data. When the TX fifo empty, the ISR will fill the hardware FIFO with the internal ringbuffer's data.
Arguments
data
Bytes to write into internal buffer
size
Size, in bytes, of `data` buffer
ticks_to_wait
Maximum ticks to wait.
Return value
- ESP_FAIL (-1) Parameter error - Other (>=0) The number of data bytes pushed to the I2C slave buffer.
Notes
This function shall only be called in I2C slave mode.
i2c_slave_write_buffer() calls 9 functions:
![]()
i2c_slave_write_buffer()
i2c_slave_write_buffer() reads 16 variables:
![]()
i2c_slave_write_buffer()