User manual

mikroPascal PRO for dsPIC30/33 and PIC24
MikroElektronika
391
Mmc_Read_Cid
Mmc_Read_Csd
Prototype
function Mmc_Read_Cid(var data_cid: array[16] of byte): word;
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
var error : word;
dataBuffer : array[16] of byte;
...
error := Mmc_Read_Cid(dataBuffer);
Notes None.
Prototype
function Mmc_Read_Csd(var data_for_registers: array[16] of byte): word;
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
var error : word;
dataBuffer : array[16] of byte;
...
error := Mmc_Read_Csd(dataBuffer);
Notes None.