/* Send the Send CSD command and check the response.  */
int32_t SDMMC_CMD9_SendCSD(CM_SDIOC_TypeDef *SDIOCx, uint32_t u32RCA, uint32_t *pu32ErrStatus)
/* Send the Send CSD command and check the response.  */
int32_t SDMMC_CMD9_SendCSD(CM_SDIOC_TypeDef *SDIOCx, uint32_t u32RCA, uint32_t *pu32ErrStatus)
{
    int32_t i32Ret;
    stc_sdioc_cmd_config_t stcCmdConfig;
    if (NULL == pu32ErrStatus) {
        i32Ret = LL_ERR_INVD_PARAM;
    } else {
        stcCmdConfig.u32Argument        = u32RCA;
        stcCmdConfig.u16CmdIndex        = SDIOC_CMD9_SEND_CSD;
        stcCmdConfig.u16CmdType         = SDIOC_CMD_TYPE_NORMAL;
        stcCmdConfig.u16DataLine        = SDIOC_DATA_LINE_DISABLE;
        stcCmdConfig.u16ResponseType    = SDIOC_RESP_TYPE_R2;
        i32Ret = SDIOC_SendCommand(SDIOCx, &stcCmdConfig);
        if (LL_OK == i32Ret) {
            i32Ret = SDMMC_GetCmdResp2(SDIOCx, pu32ErrStatus);
        }
    }
    return i32Ret;
}