MCI Multimedia Card Interface
[AT91 Support]

Collaboration diagram for MCI Multimedia Card Interface:


Detailed Description

Multimedia card interface registers.


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 _MCIFC MCIFC
 Local card interface information.
typedef _MCIFCB MCIFCB
 Local multimedia card mount information.

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

Local card interface information.

typedef struct _MCIFCB MCIFCB

Local multimedia card mount information.


Variable Documentation

NUTDEVICE devAt91Mci0

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/