sdmmc_host_set_bus_width() function
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)
Arguments
slot
slot number (SDMMC_HOST_SLOT_0 or SDMMC_HOST_SLOT_1)
width
bus width (1, 4, or 8 for slot 0; 1 or 4 for slot 1)
Return value
- ESP_OK on success - ESP_ERR_INVALID_ARG if slot number or width is not valid
Notes
This function is not thread safe
![]()
ret = sdmmc_host_set_bus_width(slot, 1);
sdmmc_host_set_bus_width() is called by 1 function and calls 4 functions:
![]()
sdmmc_host_set_bus_width()
sdmmc_host_set_bus_width() reads 20 variables:
![]()
sdmmc_host_set_bus_width()
sdmmc_host_set_bus_width() is implemented by 1 functions:
![]()
sdmmc_host_set_bus_width()