Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages | Examples

XgAt91SpiMmc


Detailed Description

Low Level Multimedia Card Access.


Functions

int At91SpiMmCard0Avail (void)
 Check if card is available in slot 0.
int At91SpiMmCard0WrProt (void)
 Check if card in slot 0 is write protected.

Variables

*NUTDEVICE devAt91SpiMmc0
 Multimedia card device information structure.
NUTDEVICE devAt91SpiMmc0
 Multimedia card device information structure.


Function Documentation

int At91SpiMmCard0Avail void   ) 
 

Check if card is available in slot 0.

Todo:
Card change should verify the card identifier. Right now any detection of removing and re-inserting a card counts as a card change.
Returns:
0 if no card is detected, 1 if a card is available or 2 if a card change had been detected after the last mount.

int At91SpiMmCard0WrProt void   ) 
 

Check if card in slot 0 is write protected.

Todo:
Not implemented.
Returns:
Always 0.


Variable Documentation

NUTDEVICE devAt91SpiMmc0
 

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).

* NUTDEVICE devAt91SpiMmc0
 

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).


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