Nut/OS  4.10.3
API Reference
NPL Multimedia Card Support

Support routines for MM/SD Cards. More...

Collaboration diagram for NPL Multimedia Card Support:

Variables

NUTDEVICE devNplSpiMmc0
 Multimedia card device information structure.
NUTSPINODE nodeSpiMmc0Npl
 NPL SPI node implementation structure for MMC0.
NUTDEVICE devNplSpiMmc0
 Multimedia card device information structure.

Detailed Description

Support routines for MM/SD Cards.


Variable Documentation

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

Definition at line 234 of file spi_mmc_npl.c.

Initial value:
 {
    NULL,           
    NULL,           
    NPL_MMC_CLOCK,  
    SPI_MODE_0,     
    8,              
    0               
}

NPL SPI node implementation structure for MMC0.

Definition at line 213 of file spi_mmc_npl.c.

Initial value:
 {
    0,                  
    {'M', 'M', 'C', '0', 0, 0, 0, 0, 0}
    ,                   
    0,                  
    0,                  
    0,                  
    &nodeSpiMmc0Npl,    
    &mcsSpiMmc0Npl,     
    SpiMmc0NplInit,     
    SpiMmcIOCtl,        
    SpiMmcBlockRead,    
    SpiMmcBlockWrite,   

    SpiMmcBlockWrite_P, 

    SpiMmcMount,        
    SpiMmcUnmount,      
    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).

Definition at line 234 of file spi_mmc_npl.c.