Function esp_idf_sys::sdmmc_host_set_bus_width
source ยท pub unsafe extern "C" fn sdmmc_host_set_bus_width(
slot: c_int,
width: usize,
) -> esp_err_t
Expand description
@brief Select bus width to be used for data transfer
SD/MMC card must be initialized prior to this command, and a command to set bus width has to be sent to the card (e.g. SD_APP_SET_BUS_WIDTH)
@note This function is not thread safe
@param slot slot number (SDMMC_HOST_SLOT_0 or SDMMC_HOST_SLOT_1) @param width bus width (1, 4, or 8 for slot 0; 1 or 4 for slot 1) @return - ESP_OK on success - ESP_ERR_INVALID_ARG if slot number or width is not valid