Function esp_idf_sys::i2c_master_bus_add_device
source ยท pub unsafe extern "C" fn i2c_master_bus_add_device(
bus_handle: i2c_master_bus_handle_t,
dev_config: *const i2c_device_config_t,
ret_handle: *mut i2c_master_dev_handle_t,
) -> esp_err_t
Expand description
@brief Add I2C master BUS device.
@param[in] bus_handle I2C bus handle. @param[in] dev_config device config. @param[out] ret_handle device handle. @return - ESP_OK: Create I2C master device successfully. - ESP_ERR_INVALID_ARG: I2C bus initialization failed because of invalid argument. - ESP_ERR_NO_MEM: Create I2C bus failed because of out of memory.