EasyManuals Logo

ST STM32F2 User Manual

ST STM32F2
1371 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #518 background imageLoading...
Page #518 background image
HAL SD Generic Driver
UM1940
518/1371
DocID028236 Rev 2
uint32_t NumberOfBlocks, uint32_t Timeout)
Function description
Reads block(s) from a specified address in a card.
Parameters
hsd: Pointer to SD handle
pData: pointer to the buffer that will contain the received data
BlockAdd: Block Address from where data is to be read
NumberOfBlocks: Number of SD blocks to read
Timeout: Specify timeout value
Return values
HAL: status
Notes
This API should be followed by a check on the card state
through HAL_SD_GetCardState().
HAL_SD_WriteBlocks
Function name
HAL_StatusTypeDef HAL_SD_WriteBlocks
(SD_HandleTypeDef * hsd, uint8_t * pData, uint32_t BlockAdd,
uint32_t NumberOfBlocks, uint32_t Timeout)
Function description
Allows to write block(s) to a specified address in a card.
Parameters
hsd: Pointer to SD handle
pData: pointer to the buffer that will contain the data to
transmit
BlockAdd: Block Address where data will be written
NumberOfBlocks: Number of SD blocks to write
Timeout: Specify timeout value
Return values
HAL: status
Notes
This API should be followed by a check on the card state
through HAL_SD_GetCardState().
HAL_SD_Erase
Function name
HAL_StatusTypeDef HAL_SD_Erase (SD_HandleTypeDef *
hsd, uint32_t BlockStartAdd, uint32_t BlockEndAdd)
Function description
Erases the specified memory area of the given SD card.
Parameters
hsd: Pointer to SD handle
BlockStartAdd: Start Block address
BlockEndAdd: End Block address
Return values
HAL: status
Notes
This API should be followed by a check on the card state
through HAL_SD_GetCardState().
HAL_SD_ReadBlocks_IT
Function name
HAL_StatusTypeDef HAL_SD_ReadBlocks_IT
(SD_HandleTypeDef * hsd, uint8_t * pData, uint32_t BlockAdd,
uint32_t NumberOfBlocks)
Function description
Reads block(s) from a specified address in a card.
Parameters
hsd: Pointer to SD handle

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ST STM32F2 and is the answer not in the manual?

ST STM32F2 Specifications

General IconGeneral
BrandST
ModelSTM32F2
CategoryMicrocontrollers
LanguageEnglish

Related product manuals