1.2.20.20 SDMMCx_BlockCountSet Function

C

/* x = SDMMC instance number */

void SDMMCx_BlockCountSet( uint16_t numBlocks )

Summary

Sets the number of blocks to transfer.

Description

Sets the number of blocks to transfer for a multi-block transfer. For example, the block count must be set to the appropriate value before issuing the multi-block read (CMD 18) or write (CMD 25) commands. For single blcok read (CMD 17) or write (CMD24) commands, the block count must be set to 1.

Precondition

SDMMCx_Initialize() must have been called first for the associated instance.

Parameters

Param Description
numBlocks Number of blocks to transfer

Returns

None.

Example

SDMMC1_BlockCountSet(1);

Remarks

None.