<< Previous | Next >> | |
|
int sdspi_WriteContinue( sd_device * sd );
Description
- This function completes the previously started write command to the SD card when non-blocking mode is enabled. It looks for the end of the busy signal from the card, then strobes the chip select. This function should be called repeatedly until the -EBUSY code is not returned, at which point the SPI port is freed. There is a timeout mechanism for the busy signal. If exceeded, the port is freed and the -EIO error code is returned.
Parameters
- sd
- The device structure for the SD card.
Return Value
- 0: Success
-EIO
: I/O error or timeout
-EBUSY
: SD card is busy with write operation; callsdspi_WriteContinue()
againLibrary
- SDFLASH.LIB
Dynamic C Functions | << Previous | Next >> | rabbit.com |