Function esp_idf_svc::sys::i2c_new_slave_device
source ยท pub unsafe extern "C" fn i2c_new_slave_device(
slave_config: *const i2c_slave_config_t,
ret_handle: *mut *mut i2c_slave_dev_t,
) -> i32
Expand description
@brief Initialize an I2C slave device
@param[in] slave_config I2C slave device configurations @param[out] ret_handle Return a generic I2C device handle @return - ESP_OK: I2C slave device initialized successfully - ESP_ERR_INVALID_ARG: I2C device initialization failed because of invalid argument. - ESP_ERR_NO_MEM: Create I2C device failed because of out of memory.