Unable to render {include} The included page could not be found.
Unable to render {include} The included page could not be found.
FSDev_SD_Card_BSP_GetBlkCntMax()
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
- 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.
- If the controller is not capable of multiple block reads or writes, 1 should be returned.
- 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.
- 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.