/* Send GET_CID command to get CID from card.  */
static status_t SD_AllSendCid(sd_card_t *card)
/* Send GET_CID command to get CID from card.  */
static status_t SD_AllSendCid(sd_card_t *card)
{
    assert(card);
    HOST_TRANSFER content = {0};
    HOST_COMMAND command = {0};
    command.index = kSDMMC_AllSendCid;
    command.argument = 0U;
    command.responseType = kCARD_ResponseTypeR2;
    content.command = &command;
    content.data = NULL;
    if (kStatus_Success == card->host.transfer(card->host.base, &content))
    {
        memcpy(card->rawCid, command.response, sizeof(card->rawCid));
        SD_DecodeCid(card, command.response);
        return kStatus_Success;
    }
    return kStatus_SDMMC_TransferFailed;
}