mmcard.c File Reference

Go to the source code of this file.

Defines

#define MMC_MAX_INIT_POLLS   512
 Block size.
#define MMC_MAX_RESET_POLLS   255
 Card reset timeout.
#define MMC_MAX_WRITE_POLLS   1024
 Card write timeout.
#define MMC_MAX_WRITE_RETRIES   32
 Card write retries.
#define MMC_MAX_READ_RETRIES   8
 Card read retries.
#define MMC_MAX_REG_POLLS   512
 Register read timeout.
#define MMC_MAX_CMDACK_POLLS   1024
 Command acknowledge timeout.
#define MMC_MAX_R1_POLLS   1024
 R1 response timeout.

Functions

int MmCardBlockRead (NUTFILE *nfp, void *buffer, int num)
 Read data blocks from a mounted partition.
int MmCardBlockWrite (NUTFILE *nfp, CONST void *buffer, int num)
 Write data blocks to a mounted partition.
int MmCardBlockWrite_P (NUTFILE *nfp, PGM_P buffer, int num)
 Write data blocks from program space to a mounted partition.
NUTFILE * MmCardMount (NUTDEVICE *dev, CONST char *name, int mode, int acc)
 Mount a partition.
int MmCardUnmount (NUTFILE *nfp)
 Unmount a previously mounted partition.
int MmCardIOCtl (NUTDEVICE *dev, int req, void *conf)
 Perform MMC control functions.
int MmCardDevInit (NUTDEVICE *dev)
 Initialize high level MMC driver.

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