Description
Source
Call Graph
SD_WriteBlock
Write Block of data pointed by pData.


Syntax / parameters
unsigned char SD_WriteBlock (SdCard *pSd, unsigned int address, unsigned short nbBlocks, const unsigned char *pData)
|
Name |
Type |
Default |
Description |
pSd |
SdCard *
|
|
Pointer to a SD card driver instance.
|
address |
unsigned int
|
|
Address of block to write.
|
nbBlocks |
unsigned short
|
|
Number of blocks to be read
|
pData |
const unsigned char *
|
|
Pointer to a 512 bytes buffer to be transfered
|
|
Return value |
unsigned char
|
|
|
Description
Write Block of data 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 SD_ERROR code.
Source
The documentation for this Member was generated from the following files:
sdmmc_spi.c