<< Previous | Next >> | |
|
int sdspi_get_scr( sd_device * sd );
Description
- This function executes application specific command 51 to retrieve the SD card's Configuration Register (SCR) and store it in the respective SD driver configuration object. The SCR data is used to identify the SD card's physical interface version and security version. It also contains erase state (all 0's or 1's) and supported bus widths.
PARAMETERs
- sd
- The device structure for the SD card.
Return Value
- 0: Success
-EIO
: I/O error
-EINVAL
: Invalid parameter given
-ENOMEDIUM
: No SD card in socket
-ESHAREDBUSY
: Shared SPI port busyLibrary
- SDFLASH.LIB
Dynamic C Functions | << Previous | Next >> | rabbit.com |