[−][src]Function esp_idf_sys::i2c_master_write
pub unsafe extern "C" fn i2c_master_write(
cmd_handle: i2c_cmd_handle_t,
data: *mut u8,
data_len: usize,
ack_en: bool
) -> esp_err_t
@brief Queue command for I2C master to write buffer to I2C bus @note Only call this function in I2C master mode Call i2c_master_cmd_begin() to send all queued commands
@param cmd_handle I2C cmd link
@param data data to send
@note
If the psram is enabled and intr_flag is ESP_INTR_FLAG_IRAM
, please use the memory allocated from internal RAM.
@param data_len data length
@param ack_en enable ack check for master
@return - ESP_OK Success - ESP_ERR_INVALID_ARG Parameter error