Mikroelektronika MIKROE-724 データシート
mikroBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
393
Mmc_Read_Cid
Mmc_Read_Csd
Prototype
sub function Mmc_Read_Cid(dim byref data_cid as byte[16]) as byte
Description The function reads 16-byte CID register.
Parameters -
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
dim error as word
dataBuffer as byte[512]
...
error = Mmc_Read_Cid(dataBuffer)
Notes
None.
Prototype
sub function Mmc_Read_Csd(dim byref data_csd as byte[16]) as word
Description The function reads 16-byte CSD register.
Parameters -
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
dim error as word
dataBuffer as byte[512]
...
error = Mmc_Read_Csd(dataBuffer)
Notes
None.