[][src]Function esp_idf_sys::i2c_master_read

pub unsafe extern "C" fn i2c_master_read(
    cmd_handle: i2c_cmd_handle_t,
    data: *mut u8,
    data_len: usize,
    ack: i2c_ack_type_t
) -> esp_err_t

@brief Queue command for I2C master to read data from 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 buffer to accept the data from bus @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 read data length @param ack ack value for read command

@return - ESP_OK Success - ESP_ERR_INVALID_ARG Parameter error