<< Previous | Next >>

sdspi_init_card

int sdspi_init_card( sd_device * sd );

Description

Initializes the SD card pointed to by sd. Function executes protocol command "1" which clears HCS bit and activates the card's initialization sequence.

Parameters

sd
Pointer to sd_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