![]() |
STM32Cube
Version 2.0
Create Projects for STM32L4 Series with STM32Cube HAL and STM32CubeMX
|
#include "MCI_STM32L4xx.h"#include "stm32L4xx_ll_dma.h"Macros | |
| #define | ARM_MCI_DRV_VERSION ARM_DRIVER_VERSION_MAJOR_MINOR(1,1) /* driver version */ |
| #define | MCI_BUS_MODE_HS 0U |
| #define | MemoryCard_CD_Pin_Active GPIO_PIN_RESET |
| #define | MemoryCard_WP_Pin_Active GPIO_PIN_SET |
Functions | |
| static void | RX_DMA_Complete (struct __DMA_HandleTypeDef *hdma) |
| void | SDMMC1_IRQHandler (void) |
| static ARM_DRIVER_VERSION | GetVersion (void) |
| Get driver version. More... | |
| static ARM_MCI_CAPABILITIES | GetCapabilities (void) |
| static int32_t | Initialize (ARM_MCI_SignalEvent_t cb_event) |
| Initialize the Memory Card Interface. More... | |
| static int32_t | Uninitialize (void) |
| De-initialize Memory Card Interface. More... | |
| static int32_t | PowerControl (ARM_POWER_STATE state) |
| Control Memory Card Interface Power. More... | |
| static int32_t | CardPower (uint32_t voltage) |
| Set Memory Card supply voltage. More... | |
| static int32_t | ReadCD (void) |
| Read Card Detect (CD) state. More... | |
| static int32_t | ReadWP (void) |
| Read Write Protect (WP) state. More... | |
| static int32_t | SendCommand (uint32_t cmd, uint32_t arg, uint32_t flags, uint32_t *response) |
| Send Command to card and get the response. More... | |
| static int32_t | SetupTransfer (uint8_t *data, uint32_t block_count, uint32_t block_size, uint32_t mode) |
| Setup read or write transfer operation. More... | |
| static int32_t | AbortTransfer (void) |
| Abort current read/write data transfer. More... | |
| static int32_t | Control (uint32_t control, uint32_t arg) |
| Control MCI Interface. More... | |
| static ARM_MCI_STATUS | GetStatus (void) |
| Get MCI status. More... | |
Variables | |
| SD_HandleTypeDef | hsd1 |
| DMA_HandleTypeDef | hdma_sdmmc1_rx |
| DMA_HandleTypeDef | hdma_sdmmc1_tx |
| static MCI_INFO | MCI |
| static const ARM_DRIVER_VERSION | DriverVersion |
| static const ARM_MCI_CAPABILITIES | DriverCapabilities |
| ARM_DRIVER_MCI | Driver_MCI0 |
| #define ARM_MCI_DRV_VERSION ARM_DRIVER_VERSION_MAJOR_MINOR(1,1) /* driver version */ |
| #define MCI_BUS_MODE_HS 0U |
| #define MemoryCard_CD_Pin_Active GPIO_PIN_RESET |
| #define MemoryCard_WP_Pin_Active GPIO_PIN_SET |
|
static |
|
static |
| [in] | voltage | Memory Card supply voltage |
|
static |
| [in] | control | Operation |
| [in] | arg | Argument of operation (optional) |
|
static |
|
static |
|
static |
|
static |
| [in] | cb_event | Pointer to ARM_MCI_SignalEvent |
|
static |
| [in] | state | Power state ARM_POWER_STATE |
|
static |
|
static |
|
static |
| void SDMMC1_IRQHandler | ( | void | ) |
|
static |
| [in] | cmd | Memory Card command |
| [in] | arg | Command argument |
| [in] | flags | Command flags |
| [out] | response | Pointer to buffer for response |
|
static |
| [in,out] | data | Pointer to data block(s) to be written or read |
| [in] | block_count | Number of blocks |
| [in] | block_size | Size of a block in bytes |
| [in] | mode | Transfer mode |
|
static |
| ARM_DRIVER_MCI Driver_MCI0 |
|
static |
|
static |
| DMA_HandleTypeDef hdma_sdmmc1_rx |
| DMA_HandleTypeDef hdma_sdmmc1_tx |
| SD_HandleTypeDef hsd1 |
|
static |