1.22.24.20 1.32.25.20 SDHCx_BlockCountSet Function

C

/* x = SDHC instance number (x is applicable only on devices with more than one instances of SDHC) */

void SDHCx_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

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

Parameters

Param Description
numBlocks Number of blocks to transfer

Returns

None.

Example

SDHC1_BlockCountSet(1);

Remarks

None.