Function esp_idf_sys::i2c_slave_read_ram

source ยท
pub unsafe extern "C" fn i2c_slave_read_ram(
    i2c_slave: i2c_slave_dev_handle_t,
    ram_address: u8,
    data: *mut u8,
    receive_size: usize,
) -> esp_err_t
Expand description

@brief Read bytes from I2C internal ram. This can be only used when access_ram_en in configuration structure set to true.

@param[in] i2c_slave I2C slave device handle that created by i2c_new_slave_device. @param[in] ram_address The offset of RAM (Cannot larger than I2C RAM memory) @param[out] data Buffer to store data read from I2C ram. @param[in] receive_size Received size from RAM. @return - ESP_OK: I2C slave transmit success. - ESP_ERR_INVALID_ARG: I2C slave transmit parameter invalid. - ESP_ERR_NOT_SUPPORTED: This function should be work in non-fifo mode, but I2C_SLAVE_FIFO mode is configured