/* Send GET_RCA command to get card relative address.  */
static status_t SD_SendRca(sd_card_t *card)
/* Send GET_RCA command to get card relative address.  */
static status_t SD_SendRca(sd_card_t *card)
{
    assert(card);
    HOST_TRANSFER content = {0};
    HOST_COMMAND command = {0};
    command.index = kSD_SendRelativeAddress;
    command.argument = 0U;
    command.responseType = kCARD_ResponseTypeR6;
    content.command = &command;
    content.data = NULL;
    if (kStatus_Success == card->host.transfer(card->host.base, &content))
    {
        card->relativeAddress = (command.response[0U] >> 16U);
        return kStatus_Success;
    }
    return kStatus_SDMMC_TransferFailed;
}