<< Previous | Next >>

sdspi_reset_card

int sdspi_reset_card( sd_device * sd );

Description

Resets the SD card pointed to by sd. Function executes protocol command 0 to force the card to Idle mode. This command is sent multiple times to reset the SD card.

Parameter

sd
Pointer to sd_device structure of 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