STM3210E_EVAL BSP User Manual
|
#include "stm32f1xx_hal.h"
Go to the source code of this file.
Defines | |
#define | SD_CardInfo HAL_SD_CardInfoTypedef |
SD Card information structure. | |
#define | MSD_OK 0x00 |
SD status structure definition. | |
#define | MSD_ERROR 0x01 |
#define | SD_DETECT_PIN GPIO_PIN_11 |
#define | SD_DETECT_GPIO_PORT GPIOF |
#define | __SD_DETECT_GPIO_CLK_ENABLE() __HAL_RCC_GPIOF_CLK_ENABLE() |
#define | SD_DETECT_IRQn EXTI15_10_IRQn |
#define | SD_DATATIMEOUT ((uint32_t)100000000) |
#define | SD_PRESENT ((uint8_t)0x01) |
#define | SD_NOT_PRESENT ((uint8_t)0x00) |
#define | __DMAx_TxRx_CLK_ENABLE __HAL_RCC_DMA2_CLK_ENABLE |
#define | SD_DMAx_Tx_INSTANCE DMA2_Channel4 |
#define | SD_DMAx_Rx_INSTANCE DMA2_Channel4 |
#define | SD_DMAx_Tx_IRQn DMA2_Channel4_5_IRQn |
#define | SD_DMAx_Rx_IRQn DMA2_Channel4_5_IRQn |
#define | SD_DMAx_Tx_IRQHandler DMA2_Channel4_5_IRQHandler |
#define | SD_DMAx_Rx_IRQHandler DMA2_Channel4_5_IRQHandler |
Functions | |
uint8_t | BSP_SD_Init (void) |
Initializes the SD card device. | |
uint8_t | BSP_SD_ITConfig (void) |
Configures Interrupt mode for SD detection pin. | |
void | BSP_SD_DetectIT (void) |
SD detect IT treatment. | |
void | BSP_SD_DetectCallback (void) |
SD detect IT detection callback. | |
uint8_t | BSP_SD_ReadBlocks (uint32_t *pData, uint64_t ReadAddr, uint32_t BlockSize, uint32_t NumOfBlocks) |
Reads block(s) from a specified address in an SD card, in polling mode. | |
uint8_t | BSP_SD_WriteBlocks (uint32_t *pData, uint64_t WriteAddr, uint32_t BlockSize, uint32_t NumOfBlocks) |
Writes block(s) to a specified address in an SD card, in polling mode. | |
uint8_t | BSP_SD_ReadBlocks_DMA (uint32_t *pData, uint64_t ReadAddr, uint32_t BlockSize, uint32_t NumOfBlocks) |
Reads block(s) from a specified address in an SD card, in DMA mode. | |
uint8_t | BSP_SD_WriteBlocks_DMA (uint32_t *pData, uint64_t WriteAddr, uint32_t BlockSize, uint32_t NumOfBlocks) |
Writes block(s) to a specified address in an SD card, in DMA mode. | |
uint8_t | BSP_SD_Erase (uint64_t StartAddr, uint64_t EndAddr) |
Erases the specified memory area of the given SD card. | |
void | BSP_SD_IRQHandler (void) |
Handles SD card interrupt request. | |
void | BSP_SD_DMA_Tx_IRQHandler (void) |
Handles SD DMA Tx transfer interrupt request. | |
void | BSP_SD_DMA_Rx_IRQHandler (void) |
Handles SD DMA Rx transfer interrupt request. | |
HAL_SD_TransferStateTypedef | BSP_SD_GetStatus (void) |
Gets the current SD card data status. | |
void | BSP_SD_GetCardInfo (HAL_SD_CardInfoTypedef *CardInfo) |
Get SD information about specific SD card. | |
uint8_t | BSP_SD_IsDetected (void) |
Detects if SD card is correctly plugged in the memory slot or not. |
Generated on Thu Dec 10 2015 17:39:43 for STM3210E_EVAL BSP User Manual by 1.7.6.1