<< Previous | Next >>

sdspi_get_csd

int sdspi_get_csd( sd_device * sd );

Description

This function is called to execute protocol command 9 to retrieve the SD card's Card Specific Data (CSD) and store it in the respective SD driver configuration object. The CSD data is used to determine the SD card's physical storage and timing attributes.

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 busy

Library

SDFLASH.LIB


Dynamic C Functions << Previous | Next >> rabbit.com