User manual

Table Of Contents
368
mikoC PRO for PIC32
MikroElektronika
Mmc_Read_Cid
Mmc_Read_Csd
Prototype
unsigned int Mmc_Read_Cid(char *data_cid);
Description The function reads 16-byte CID register.
Parameters - data_cid: buffer of minimum 16 bytes in length for storing CID register content.
Returns - 0 - if CID register was read successfully
- 1 - if there was an error while reading
Requires MMC/SD card must be initialized. See Mmc_Init.
Example
unsigned int error;
char dataBuffer[16];
...
error = Mmc_Read_Cid(dataBuffer);
Notes None.
Prototype
unsigned int Mmc_Read_Csd(char *data_csd);
Description The function reads 16-byte CSD register.
Parameters - data_csd: buffer of minimum 16 bytes in length for storing CSD register content.
Returns - 0 - if CSD register was read successfully
- 1 - if there was an error while reading
Requires MMC/SD card must be initialized. See Mmc_Init.
Example
unsigned int error;
char dataBuffer[16];
...
error = Mmc_Read_Csd(dataBuffer);
Notes None.