#include <cfg/mmci.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#include <memdebug.h>
#include <sys/heap.h>
#include <sys/timer.h>
#include <sys/event.h>
#include <fs/dospart.h>
#include <fs/fs.h>
#include <dev/blockdev.h>
#include <dev/mmcard.h>
Go to the source code of this file.
Data Structures | |
struct | _MMCFCB |
Local multimedia card mount information. More... | |
Defines | |
#define | MMC_BLOCK_SIZE 512 |
Block size. | |
#define | MMC_MAX_INIT_POLLS 512 |
Card init timeout. | |
#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. | |
Typedefs | |
typedef struct _MMCFCB | MMCFCB |
Local multimedia card mount information. | |
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. |