MCI Multimedia Card Interface
[AT91 Support]

Collaboration diagram for MCI Multimedia Card Interface:

Detailed Description

Multimedia card interface registers.

Multimedia Card Interface.

This simple implementation supports reading a single 3.3V MultiMedia Card in slot B only.

 *
 * $Log: at91_mci.c,v $
 * Revision 1.1  2006/09/05 12:34:21  haraldkipp
 * Support for hardware MultiMedia Card interface added.
 * SD Cards are currently not supported.
 *
 *
 * 


Defines

#define MMC_BLOCK_SIZE   512
#define MMC_PINS_A   _BV(PA8_MCCK_A)
#define MMC_PINS_B   _BV(PA1_MCCDB_B) | _BV(PA0_MCDB0_B) | _BV(PA5_MCDB1_B) | _BV(PA4_MCDB2_B) | _BV(PA3_MCDB3_B)

Typedefs

typedef struct _MCIFC MCIFC
typedef struct _MCIFCB MCIFCB

Variables

NUTDEVICE devAt91Mci0
 Multimedia card device information structure.


Define Documentation

#define MMC_BLOCK_SIZE   512

Definition at line 80 of file at91_mci.c.

#define MMC_PINS_A   _BV(PA8_MCCK_A)

Definition at line 84 of file at91_mci.c.

#define MMC_PINS_B   _BV(PA1_MCCDB_B) | _BV(PA0_MCDB0_B) | _BV(PA5_MCDB1_B) | _BV(PA4_MCDB2_B) | _BV(PA3_MCDB3_B)

Definition at line 88 of file at91_mci.c.


Typedef Documentation

typedef struct _MCIFC MCIFC

typedef struct _MCIFCB MCIFCB


Variable Documentation

Initial value:

 {
    0,                          
    {'M', 'C', 'I', '0', 0, 0, 0, 0, 0}
    ,                           
    0,                          
    0,                          
    0,                          
    &mci0_info,                 
    0,                          
    At91MciInit,                
    At91MciIOCtrl,              
    At91MciBlockRead,           
    At91MciBlockWrite,          
    At91MciMount,               
    At91MciUnmount,             
    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("MCI0:", _O_RDWR | _O_BINARY); /endverbatim to mount the first active primary partition with any previously registered file system driver (typically devPhat0).

Definition at line 637 of file at91_mci.c.


© 2000-2007 by egnite Software GmbH - visit http://www.ethernut.de/