SD Exported Functions
- group SD_Exported_Functions
Functions
-
SdEmmcRes_t SdEmmc_Init(SDHC_TypeDef *SDHCx, const SdEmmcInitParm_t *pParm)
SDCard or EMMC init flow.
- 参数:
SDHCx -- Specifies the SDHC peripheral.
pParm -- Specifies the parameters for CardType, DataWidth, ClkOutFreq_kHz. Please refer to SdEmmcInitParm_t for more details.
- 返回:
SdEmmcRes: Please refer to SdEmmcRes_t for more details.
-
SdEmmcRes_t SdEmmc_Read(SDHC_TypeDef *SDHCx, uint32_t StartBlock, uint32_t BlockCnt, void *pBuf)
SDCard or EMMC read data.
- 参数:
SDHCx -- Specifies the SDHC peripheral.
StartBlock -- Start block.
BlockCnt -- Block count.
pBuf -- Pointer to a read buffer.
- 返回:
SdEmmcRes: Please refer to SdEmmcRes_t for more details.
-
SdEmmcRes_t SdEmmc_Write(SDHC_TypeDef *SDHCx, uint32_t StartBlock, uint32_t BlockCnt, const void *pBuf)
SDCard or EMMC write data.
- 参数:
SDHCx -- Specifies the SDHC peripheral.
StartBlock -- Start block.
BlockCnt -- Block count.
pBuf -- Pointer to a write buffer.
- 返回:
SdEmmcRes: Please refer to SdEmmcRes_t for more details.
-
uint32_t SdEmmc_GetBlockCnt(SDHC_TypeDef *SDHCx)
SDCard or EMMC write data.
- 参数:
SDHCx -- Specifies the SDHC peripheral.
- 返回:
Block count: Block count for transfer .
-
SdEmmcRes_t SdEmmc_Init(SDHC_TypeDef *SDHCx, const SdEmmcInitParm_t *pParm)