|
ChibiOS/HAL
6.1.0
|
MMC over SPI driver header. More...
Go to the source code of this file.
Data Structures | |
| struct | MMCConfig |
| MMC/SD over SPI driver configuration structure. More... | |
| struct | MMCDriverVMT |
MMCDriver virtual methods table. More... | |
| struct | MMCDriver |
| Structure representing a MMC/SD over SPI driver. More... | |
Macros | |
| #define | _mmc_driver_methods _mmcsd_block_device_methods |
MMCDriver specific methods. More... | |
MMC_SPI configuration options | |
| #define | MMC_NICE_WAITING TRUE |
| Delays insertions. More... | |
Macro Functions | |
| #define | mmcIsCardInserted(mmcp) mmc_lld_is_card_inserted(mmcp) |
| Returns the card insertion status. More... | |
| #define | mmcIsWriteProtected(mmcp) mmc_lld_is_write_protected(mmcp) |
| Returns the write protect status. More... | |
Functions | |
| void | mmcInit (void) |
| MMC over SPI driver initialization. More... | |
| void | mmcObjectInit (MMCDriver *mmcp) |
| Initializes an instance. More... | |
| void | mmcStart (MMCDriver *mmcp, const MMCConfig *config) |
| Configures and activates the MMC peripheral. More... | |
| void | mmcStop (MMCDriver *mmcp) |
| Disables the MMC peripheral. More... | |
| bool | mmcConnect (MMCDriver *mmcp) |
| Performs the initialization procedure on the inserted card. More... | |
| bool | mmcDisconnect (MMCDriver *mmcp) |
| Brings the driver in a state safe for card removal. More... | |
| bool | mmcStartSequentialRead (MMCDriver *mmcp, uint32_t startblk) |
| Starts a sequential read. More... | |
| bool | mmcSequentialRead (MMCDriver *mmcp, uint8_t *buffer) |
| Reads a block within a sequential read operation. More... | |
| bool | mmcStopSequentialRead (MMCDriver *mmcp) |
| Stops a sequential read gracefully. More... | |
| bool | mmcStartSequentialWrite (MMCDriver *mmcp, uint32_t startblk) |
| Starts a sequential write. More... | |
| bool | mmcSequentialWrite (MMCDriver *mmcp, const uint8_t *buffer) |
| Writes a block within a sequential write operation. More... | |
| bool | mmcStopSequentialWrite (MMCDriver *mmcp) |
| Stops a sequential write gracefully. More... | |
| bool | mmcSync (MMCDriver *mmcp) |
| Waits for card idle condition. More... | |
| bool | mmcGetInfo (MMCDriver *mmcp, BlockDeviceInfo *bdip) |
| Returns the media info. More... | |
| bool | mmcErase (MMCDriver *mmcp, uint32_t startblk, uint32_t endblk) |
| Erases blocks. More... | |
MMC over SPI driver header.
Definition in file hal_mmc_spi.h.