Mikroelektronika MIKROE-742 데이터 시트

다운로드
페이지 532
Mmc_Read_Cid
Mmc_Read_Csd
275
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroPASCAL PRO for AVR
CHAPTER 6
Prototype
function Mmc_Read_Cid(var data_cid: array[16] of byte): byte;
Returns
0
- if CID register was read successfully 
1
- if there was an error while reading 
Description
The function reads 16-byte CID register.
Parameters:
data_cid
: buffer of minimum 16 bytes in length for storing CID register content. 
Requires
MMC/SD card must be initialized. See Mmc_Init.
Example
var error : byte;
dataBuffer : 
array[16] of byte;
...
error := Mmc_Read_Cid(dataBuffer);
Prototype
function Mmc_Read_Csd(var data_for_registers:  array[16]  of
byte): byte;
Returns
0
- if CSD register was read successfully 
1
- if there was an error while reading 
Description
The function reads 16-byte CSD register.
Parameters:
data_for_registers
: buffer of minimum 16 bytes in length for storing CSD 
register content. 
Requires
MMC/SD card must be initialized. See Mmc_Init.
Example
var error : word;
data_for_registers : 
array[16] of byte;
...
error := Mmc_Read_Csd(data_for_registers);