SD_ReadBlock
Default mainpageat91libmemoriessdmmcSD_ReadBlock
Description Source Call Graph
SD_ReadBlock
Read Block of data in a buffer pointed by pData.
 
Syntax / parameters
unsigned char SD_ReadBlock (SdCard *pSd, unsigned int address, unsigned short nbBlocks, unsigned char *pData)

Name Type Default Description
pSd SdCard *
  Pointer to a SD card driver instance.
address unsigned int
  Address of the block to read.
nbBlocks unsigned short
  Number of blocks to be read.
pData unsigned char *
  Data buffer whose size is at least the block size.
 
Return value unsigned char
   
Description
Read Block of data in a buffer pointed by pData.
The buffer size must be at least 512 byte long. This function checks the SD card status register and address the card if required before sending the read command. Returns 0 if successful; otherwise returns an code describing the error.
 
Source
The documentation for this Member was generated from the following files:
  • sdmmc_spi.c