spi_mmc.c File Reference

Go to the source code of this file.

Defines

#define MMC_MAX_INIT_POLLS   512
 Block size.
#define MMC_MAX_RESET_RETRIES   2
 Card reset timeout.
#define MMC_MAX_WRITE_RETRIES   2
 Card write retries.
#define MMC_MAX_READ_RETRIES   MMC_MAX_WRITE_RETRIES
 Card read retries.
#define MMC_MAX_CMDACK_POLLS   1024
 Command acknowledge timeout.
#define MMC_MAX_READY_POLLS   800
 Card busy timeout.

Functions

int SpiMmcBlockRead (NUTFILE *nfp, void *buffer, int num)
 Read data blocks from a mounted partition.
int SpiMmcBlockWrite (NUTFILE *nfp, CONST void *buffer, int num)
 Write data blocks to a mounted partition.
int SpiMmcBlockWrite_P (NUTFILE *nfp, PGM_P buffer, int num)
 Write data blocks from program space to a mounted partition.
int SpiMmcUnmount (NUTFILE *nfp)
 Unmount a previously mounted partition.
NUTFILE * SpiMmcMount (NUTDEVICE *dev, CONST char *name, int mode, int acc)
 Mount a partition.
int SpiMmcIOCtl (NUTDEVICE *dev, int req, void *conf)
 Perform MMC control functions.
int SpiMmcInit (NUTDEVICE *dev)
 Initialize MMC driver.

© 2000-2010 by contributors - visit http://www.ethernut.de/