/* Send STOP_TRANSMISSION command to card to stop ongoing data transferring.  */
static status_t SDSPI_StopTransmission(sdspi_card_t *card)
/* Send STOP_TRANSMISSION command to card to stop ongoing data transferring.  */
static status_t SDSPI_StopTransmission(sdspi_card_t *card)
{
    sdspi_command_t command = {0};
    sdspi_host_t *host;
    host = card->host;
    command.index = kSDMMC_StopTransmission;
    command.responseType = kSDSPI_ResponseTypeR1b;
    if (kStatus_Success != SDSPI_SendCommand(host, &command, FSL_SDSPI_TIMEOUT))
    {
        return kStatus_SDSPI_SendCommandFailed;
    }
    return kStatus_Success;
}