Nut/OS  4.10.3
API Reference
XgSPIBusMmcSupport

Variables

NUTDEVICE devSpiMmcGpio
 Multimedia card device information structure.
NUTSPINODE nodeSpiMmcGpio
 NPL SPI node implementation structure for MMC.
NUTDEVICE devSpiMmcGpio
 Multimedia card device information structure.

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 269 of file spi_mmc_gpio.c.

Initial value:
 {
    NULL,           
    NULL,           
    SPI_MMC_CLK,    
    SPI_MODE_0,     
    8,              
    SPI_MMC_CS      
}

NPL SPI node implementation structure for MMC.

Definition at line 248 of file spi_mmc_gpio.c.

Initial value:
 {
    0,                  
    {'M', 'M', 'C', '0', 0, 0, 0, 0, 0}
    ,                   
    0,                  
    0,                  
    0,                  
    &nodeSpiMmcGpio,    
    &mcsSpiMmcGpio,     
    SpiMmcGpioInit,     
    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 269 of file spi_mmc_gpio.c.