Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

CPU_INT32U  FSDev_SD_Card_BSP_GetBlkCntMax (FS_QTY      unit_nbr,

CPU_INT32U blk_size);

File

Called from

Code enabled by

fs_dev_sd_card_bsp.c

FSDev_SD_Card_Refresh()

N/A

Get maximum number of blocks that can be transferred with a multiple read or multiple write command.

Arguments

unit_nbr

Unit number of SD/MMC card.

blk_size

Block size, in octets.

Returned Value

Maximum number of blocks.

Notes/Warnings

  • 1 The DMA region from which data is read or written may be a limited size. The count returned by this function should be the maximum number of blocks of size blk_size that can fit into this region.
  • 2 If the controller is not capable of multiple block reads or writes, 1 should be returned.
  • 3 If the controller has no limit on the number of blocks in a multiple block read or write, DEF_INT_32U_MAX_VAL should be returned.
  • 4 This function should always return the same value. If hardware constraints change at run-time, the device must be closed and re-opened for any changes to be effective.
    • No labels