Searched refs:out_csd (Results 1 – 4 of 4) sorted by relevance
/hal_espressif-2.7.6/components/sdmmc/ |
D | sdmmc_mmc.c | 180 esp_err_t sdmmc_mmc_decode_csd(sdmmc_response_t response, sdmmc_csd_t* out_csd) in sdmmc_mmc_decode_csd() argument 182 out_csd->csd_ver = MMC_CSD_CSDVER(response); in sdmmc_mmc_decode_csd() 183 if (out_csd->csd_ver == MMC_CSD_CSDVER_1_0 || in sdmmc_mmc_decode_csd() 184 out_csd->csd_ver == MMC_CSD_CSDVER_2_0 || in sdmmc_mmc_decode_csd() 185 out_csd->csd_ver == MMC_CSD_CSDVER_EXT_CSD) { in sdmmc_mmc_decode_csd() 186 out_csd->mmc_ver = MMC_CSD_MMCVER(response); in sdmmc_mmc_decode_csd() 187 out_csd->capacity = MMC_CSD_CAPACITY(response); in sdmmc_mmc_decode_csd() 188 out_csd->read_block_len = MMC_CSD_READ_BL_LEN(response); in sdmmc_mmc_decode_csd() 190 ESP_LOGE(TAG, "unknown MMC CSD structure version 0x%x\n", out_csd->csd_ver); in sdmmc_mmc_decode_csd() 193 int read_bl_size = 1 << out_csd->read_block_len; in sdmmc_mmc_decode_csd() [all …]
|
D | sdmmc_sd.c | 307 esp_err_t sdmmc_decode_csd(sdmmc_response_t response, sdmmc_csd_t* out_csd) in sdmmc_decode_csd() argument 309 out_csd->csd_ver = SD_CSD_CSDVER(response); in sdmmc_decode_csd() 310 switch (out_csd->csd_ver) { in sdmmc_decode_csd() 312 out_csd->capacity = SD_CSD_V2_CAPACITY(response); in sdmmc_decode_csd() 313 out_csd->read_block_len = SD_CSD_V2_BL_LEN; in sdmmc_decode_csd() 316 out_csd->capacity = SD_CSD_CAPACITY(response); in sdmmc_decode_csd() 317 out_csd->read_block_len = SD_CSD_READ_BL_LEN(response); in sdmmc_decode_csd() 320 ESP_LOGE(TAG, "unknown SD CSD structure version 0x%x", out_csd->csd_ver); in sdmmc_decode_csd() 323 out_csd->card_command_class = SD_CSD_CCC(response); in sdmmc_decode_csd() 324 int read_bl_size = 1 << out_csd->read_block_len; in sdmmc_decode_csd() [all …]
|
D | sdmmc_common.h | 61 esp_err_t sdmmc_send_cmd_send_csd(sdmmc_card_t* card, sdmmc_csd_t* out_csd); 79 esp_err_t sdmmc_decode_csd(sdmmc_response_t response, sdmmc_csd_t* out_csd); 96 esp_err_t sdmmc_mmc_decode_csd(sdmmc_response_t response, sdmmc_csd_t* out_csd);
|
D | sdmmc_cmd.c | 261 esp_err_t sdmmc_send_cmd_send_csd(sdmmc_card_t* card, sdmmc_csd_t* out_csd) in sdmmc_send_cmd_send_csd() argument 286 err = sdmmc_mmc_decode_csd(cmd.response, out_csd); in sdmmc_send_cmd_send_csd() 288 err = sdmmc_decode_csd(ptr, out_csd); in sdmmc_send_cmd_send_csd()
|