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 #519 background imageLoading...
Page #519 background image
UM1940
HAL SD Generic Driver
DocID028236 Rev 2
519/1371
pData: Pointer to the buffer that will contain the received
data
BlockAdd: Block Address from where data is to be read
NumberOfBlocks: Number of blocks to read.
Return values
HAL: status
Notes
This API should be followed by a check on the card state
through HAL_SD_GetCardState().
You could also check the IT transfer process through the SD
Rx interrupt event.
HAL_SD_WriteBlocks_IT
Function name
HAL_StatusTypeDef HAL_SD_WriteBlocks_IT
(SD_HandleTypeDef * hsd, uint8_t * pData, uint32_t BlockAdd,
uint32_t NumberOfBlocks)
Function description
Writes 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 blocks to write
Return values
HAL: status
Notes
This API should be followed by a check on the card state
through HAL_SD_GetCardState().
You could also check the IT transfer process through the SD
Tx interrupt event.
HAL_SD_ReadBlocks_DMA
Function name
HAL_StatusTypeDef HAL_SD_ReadBlocks_DMA
(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 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 blocks to read.
Return values
HAL: status
Notes
This API should be followed by a check on the card state
through HAL_SD_GetCardState().
You could also check the DMA transfer process through the
SD Rx interrupt event.
HAL_SD_WriteBlocks_DMA
Function name
HAL_StatusTypeDef HAL_SD_WriteBlocks_DMA
(SD_HandleTypeDef * hsd, uint8_t * pData, uint32_t BlockAdd,

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