ChibiOS/RT Logo ChibiOS/RT

Architecture - Reference Manual - Guides

mmc_spi.c File Reference

MMC over SPI driver code. More...

#include "ch.h"
#include "hal.h"

Go to the source code of this file.

Functions

void tmrfunc (void *p)
 Inserion monitor timer callback function.
void mmcInit (void)
 MMC over SPI driver initialization.
void mmcObjectInit (MMCDriver *mmcp, SPIDriver *spip, const SPIConfig *lscfg, const SPIConfig *hscfg, mmcquery_t is_protected, mmcquery_t is_inserted)
 Initializes an instance.
void mmcStart (MMCDriver *mmcp, const MMCConfig *config)
 Configures and activates the MMC peripheral.
void mmcStop (MMCDriver *mmcp)
 Disables the MMC peripheral.
bool_t mmcConnect (MMCDriver *mmcp)
 Performs the initialization procedure on the inserted card.
bool_t mmcDisconnect (MMCDriver *mmcp)
 Brings the driver in a state safe for card removal.
bool_t mmcStartSequentialRead (MMCDriver *mmcp, uint32_t startblk)
 Starts a sequential read.
bool_t mmcSequentialRead (MMCDriver *mmcp, uint8_t *buffer)
 Reads a block within a sequential read operation.
bool_t mmcStopSequentialRead (MMCDriver *mmcp)
 Stops a sequential read gracefully.
bool_t mmcStartSequentialWrite (MMCDriver *mmcp, uint32_t startblk)
 Starts a sequential write.
bool_t mmcSequentialWrite (MMCDriver *mmcp, const uint8_t *buffer)
 Writes a block within a sequential write operation.
bool_t mmcStopSequentialWrite (MMCDriver *mmcp)
 Stops a sequential write gracefully.

Detailed Description

MMC over SPI driver code.

Definition in file mmc_spi.c.


Generated on Sun Jul 11 13:13:02 2010 for ChibiOS/RT by doxygen 1.6.3