/* Send SET_BLOCK_SIZE command. 
This function sets the block length in bytes for SDSC cards. For SDHC cards, it does not affect memory read or write commands, always 512 bytes fixed block length is used.  */
static status_t SDSPI_SetBlockSize(sdspi_card_t *card, uint32_t blockSize)
/* Send SET_BLOCK_SIZE command. 
This function sets the block length in bytes for SDSC cards. For SDHC cards, it does not affect memory read or write commands, always 512 bytes fixed block length is used.  */
static status_t SDSPI_SetBlockSize(sdspi_card_t *card, uint32_t blockSize)
{
    assert(card);
    assert(card->host);
    sdspi_command_t command = {0};
    sdspi_host_t *host;
    host = card->host;
    command.index = kSDMMC_SetBlockLength;
    command.argument = blockSize;
    command.responseType = kSDSPI_ResponseTypeR1;
    if (kStatus_Success != SDSPI_SendCommand(host, &command, FSL_SDSPI_TIMEOUT))
    {
        return kStatus_SDSPI_SendCommandFailed;
    }
    return kStatus_Success;
}