Function esp_idf_svc::hal::sys::i2c_master_stop
source · pub unsafe extern "C" fn i2c_master_stop(
cmd_handle: *mut c_void,
) -> i32
Expand description
@brief Queue a “STOP signal” to the given commands list.
This function shall only be called in I2C master mode.
Call i2c_master_cmd_begin()
to send all the queued commands.
@param cmd_handle I2C commands list
@return
- ESP_OK Success
- ESP_ERR_INVALID_ARG Parameter error
- ESP_ERR_NO_MEM The static buffer used to create cmd_handler
is too small
- ESP_FAIL No more memory left on the heap