Block device driver for MM/SD Cards. More...
![]() |
Data Structures | |
struct | _MMCDCB |
Private data of NPL card interface. More... | |
Defines | |
#define | MMC_DEV_NAME {'M', 'M', 'C', '0', 0, 0, 0, 0, 0} |
#define | MMC_DEV_NAME {'M', 'M', 'C', '1', 0, 0, 0, 0, 0} |
#define | MMC_DEV_NAME {'M', 'M', 'C', '2', 0, 0, 0, 0, 0} |
#define | MMC_DEV_NAME {'M', 'M', 'C', '3', 0, 0, 0, 0, 0} |
#define | MMC_CLK_LO() |
#define | MMC_CLK_HI() |
#define | MMC_CLK_EN() |
#define | MMC_CLK_SO() |
#define | MMC_MOSI_LO() |
#define | MMC_MOSI_HI() |
#define | MMC_MOSI_EN() |
#define | MMC_MOSI_SO() |
#define | MMC_MISO_TEST() (1) |
#define | MMC_MISO_EN() |
#define | MMC_MISO_SI() |
#define | MMC_CS_LO() |
#define | MMC_CS_HI() |
#define | MMC_CS_IS() (1) |
#define | MMC_CS_EN() |
#define | MMC_CS_SO() |
Typedefs | |
typedef struct _MMCDCB | MMCDCB |
Private data of NPL card interface. | |
Variables | |
NUTDEVICE | devSbi0MmCard0 |
NUTDEVICE | devSbi0MmCard1 |
NUTDEVICE | devSbi1MmCard0 |
NUTDEVICE | devSbi1MmCard1 |
NUTDEVICE | devSbiMmCard |
Multimedia card device information structure. |
Block device driver for MM/SD Cards.
Low Level Multimedia Card Access.
Low level MMC hardware routines for SPI emulation by software (bit banging).
These routines support SPI mode only and are required by the basic MMC driver.
* $Id: sbi0mmc0.c 2349 2008-10-23 08:52:20Z haraldkipp $ *
Low level MMC hardware routines for SPI emulation by software (bit banging).
These routines support SPI mode only and are required by the basic MMC driver.
* $Id: sbi0mmc1.c 2349 2008-10-23 08:52:20Z haraldkipp $ *
Low level MMC hardware routines for SPI emulation by software (bit banging).
These routines support SPI mode only and are required by the basic MMC driver.
* $Id: sbi1mmc0.c 2349 2008-10-23 08:52:20Z haraldkipp $ *
Low level MMC hardware routines for SPI emulation by software (bit banging).
These routines support SPI mode only and are required by the basic MMC driver.
* $Id: sbi1mmc1.c 2349 2008-10-23 08:52:20Z haraldkipp $ *
Low level MMC hardware routines for SPI emulation by software (bit banging).
These routines support SPI mode only and are required by the basic MMC driver.
* $Id: sbi_mmc.c 2467 2009-02-17 09:30:02Z haraldkipp $ *
#define MMC_DEV_NAME {'M', 'M', 'C', '0', 0, 0, 0, 0, 0} |
Definition at line 111 of file sbi0mmc0.c.
#define MMC_DEV_NAME {'M', 'M', 'C', '1', 0, 0, 0, 0, 0} |
Definition at line 111 of file sbi0mmc1.c.
#define MMC_DEV_NAME {'M', 'M', 'C', '2', 0, 0, 0, 0, 0} |
Definition at line 111 of file sbi1mmc0.c.
#define MMC_DEV_NAME {'M', 'M', 'C', '3', 0, 0, 0, 0, 0} |
Definition at line 111 of file sbi1mmc1.c.
{ 0, MMC_DEV_NAME, 0, 0, 0, &mmc_ifc, &mmc_dcb, SbiMmcIfcInit, MmCardIOCtl, MmCardBlockRead, MmCardBlockWrite, MmCardBlockWrite_P, MmCardMount, MmCardUnmount, 0 }
Multimedia card device information structure.
A pointer to this structure must be passed to NutRegisterDevice() to bind this driver to the Nut/OS kernel. An application may then call /verbatim _open("MMC0:", _O_RDWR | _O_BINARY); /endverbatim to mount the first active primary partition with any previously registered file system driver (typically devPhat0).