[][src]Function esp_idf_sys::i2c_master_read_byte

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

@brief Queue command for I2C master to read one byte 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 pointer accept the data byte @note If the psram is enabled and intr_flag is ESP_INTR_FLAG_IRAM, please use the memory allocated from internal RAM. @param ack ack value for read command

@return - ESP_OK Success - ESP_ERR_INVALID_ARG Parameter error