libDaisy
Hardware Library for Daisy
Loading...
Searching...
No Matches
bsp_sd_diskio.h File Reference
#include <stdint.h>

Go to the source code of this file.

Classes

struct  DSY_SD_CardInfoTypeDef
 

Macros

#define DSY_BSP_SD_DISKIO_H
 
#define BSP_SD_CardInfo   DSY_SD_CardInfoTypeDef
 
#define MSD_OK   ((uint8_t)0x00)
 
#define MSD_ERROR   ((uint8_t)0x01)
 
#define MSD_ERROR_SD_NOT_PRESENT   ((uint8_t)0x02)
 
#define SD_TRANSFER_OK   ((uint8_t)0x00)
 
#define SD_TRANSFER_BUSY   ((uint8_t)0x01)
 
#define SD_PRESENT   ((uint8_t)0x01)
 
#define SD_NOT_PRESENT   ((uint8_t)0x00)
 
#define SD_DATATIMEOUT   ((uint32_t)100000000)
 

Functions

uint8_t BSP_SD_Init (void)
 
uint8_t BSP_SD_ITConfig (void)
 
uint8_t BSP_SD_ReadBlocks (uint32_t *pData, uint32_t ReadAddr, uint32_t NumOfBlocks, uint32_t Timeout)
 
uint8_t BSP_SD_WriteBlocks (uint32_t *pData, uint32_t WriteAddr, uint32_t NumOfBlocks, uint32_t Timeout)
 
uint8_t BSP_SD_ReadBlocks_DMA (uint32_t *pData, uint32_t ReadAddr, uint32_t NumOfBlocks)
 
uint8_t BSP_SD_WriteBlocks_DMA (uint32_t *pData, uint32_t WriteAddr, uint32_t NumOfBlocks)
 
uint8_t BSP_SD_Erase (uint32_t StartAddr, uint32_t EndAddr)
 
uint8_t BSP_SD_GetCardState (void)
 
void BSP_SD_GetCardInfo (DSY_SD_CardInfoTypeDef *CardInfo)
 
uint8_t BSP_SD_IsDetected (void)
 
void BSP_SD_AbortCallback (void)
 
void BSP_SD_WriteCpltCallback (void)
 
void BSP_SD_ReadCpltCallback (void)
 

Macro Definition Documentation

◆ DSY_BSP_SD_DISKIO_H

#define DSY_BSP_SD_DISKIO_H

&