Nut/OS  5.0.5
API Reference
Card

Basic block device driver for multimedia cards. More...

Collaboration diagram for Card:

Data Structures

struct  _MCIFC
 Local card interface information. More...
struct  _MMCFCB
 Local multimedia card mount information. More...

Typedefs

typedef struct _MCIFC MCIFC
typedef struct _MMCFCB MMCFCB
 Local multimedia card mount information.

Variables

NUTDEVICE devLpcMci0
 Multimedia card device information structure.

Detailed Description

Basic block device driver for multimedia cards.

The driver uses SDIO mode, 4-bit bus


Typedef Documentation

typedef struct _MCIFC MCIFC
typedef struct _MMCFCB MMCFCB

Local multimedia card mount information.


Variable Documentation

Initial value:
 {
    0,                          
    {'M', 'M', 'C', '0', 0, 0, 0, 0, 0}
    ,                           
    0,                          
    0,                          
    0,                          
    &mci0_ifc,                  
    0,                          
    Lpc177x_8x_MmcardInit,                 
    Lpc177x_8x_MmcardIOCtl,                
    Lpc177x_8x_MmcardBlockRead,            
    Lpc177x_8x_MmcardBlockWrite,           
    Lpc177x_8x_MmcardMount,                
    Lpc177x_8x_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).