Function esp_idf_svc::hal::sys::i2c_new_master_bus
source ยท pub unsafe extern "C" fn i2c_new_master_bus(
bus_config: *const i2c_master_bus_config_t,
ret_bus_handle: *mut *mut i2c_master_bus_t,
) -> i32
Expand description
@brief Allocate an I2C master bus
@param[in] bus_config I2C master bus configuration. @param[out] ret_bus_handle I2C bus handle @return - ESP_OK: I2C master bus initialized 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. - ESP_ERR_NOT_FOUND: No more free bus.