Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
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

...

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.