![]() |
|
| << Previous | Next >> | |
| | |
int sdspi_read_sector( sd_device * sd, unsigned long sector_number, void * data_buffer );
Description
- This function is called to execute protocol command 17 to read a 512 byte block of data from the SD card.
Parameter
- sd
- Pointer to
sd_devicestructure of the SD card.
- sector_number
- The sector number to read.
- data_buffer
- Pointer to a buffer for the 512 bytes read.
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 |