mmcReadBlock Function

Reads a data block that starts from (addressHigh<<16)+addressLow location

Syntax

ERRCODE mmcReadBlock( UINT addressHigh, UINT addressLow, UBYTE *pData, UINT length );

Parameters

UINT addressHigh - high word of address
UINT addressLow - low word of address
UBYTE *pData- buffer to read data
UINT length	- length of block (>=512)

Return Value

ERRCODE - SUCCESS or _MMC_ERROR or _MMC_NO_START_BYTE

Remarks

N/A

Requirements

mmc.h

Example

N/A