Routines for using the SPI interface of the Ethernut CPLD. More...
![]() |
Data Structures | |
struct | _MMCDCB |
Private data of NPL card interface. More... | |
Defines | |
#define | I2C_SLA_PLL 0x69 |
Typedefs | |
typedef struct _MMCDCB | MMCDCB |
Private data of NPL card interface. | |
Functions | |
int | NplMmCard0Avail (void) |
Check if card is available. | |
int | NplMmCard0WrProt (void) |
Check if card is write protected. | |
Variables | |
NUTDEVICE | devNplMmc0 |
Multimedia card device information structure. | |
NUTDEVICE | devSbiMmc0 |
Multimedia card device information structure. | |
NUTDEVICE | devNplMmc0 |
Multimedia card device information structure. |
Routines for using the SPI interface of the Ethernut CPLD.
int NplMmCard0Avail | ( | void | ) |
Check if card is available.
Definition at line 193 of file nplmmc.c.
References _MMCDCB::dcb_avail, and _MMCDCB::dcb_changed.
int NplMmCard0WrProt | ( | void | ) |
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).
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).
{ 0, {'M', 'M', 'C', '0', 0, 0, 0, 0, 0} , 0, 0, 0, &mmc0_ifc, &mmc0_dcb, NplMmcIfcInit, MmCardIOCtl, MmCardBlockRead, MmCardBlockWrite, MmCardBlockWrite_P, MmCardMount, MmCardUnmount, 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).