[−][src]Function esp_idf_sys::i2c_slave_write_buffer
pub unsafe extern "C" fn i2c_slave_write_buffer(
i2c_num: i2c_port_t,
data: *mut u8,
size: c_int,
ticks_to_wait: TickType_t
) -> c_int
@brief I2C slave write data to internal ringbuffer, when tx fifo empty, isr will fill the hardware fifo from the internal ringbuffer @note Only call this function in I2C slave mode
@param i2c_num I2C port number @param data data pointer to write into internal buffer @param size data size @param ticks_to_wait Maximum waiting ticks
@return - ESP_FAIL(-1) Parameter error - Others(>=0) The number of data bytes that pushed to the I2C slave buffer.