UM1940
Return values
Notes
HAL_SD_WriteBlocks_IT
Function name
Function description
Parameters
Return values
Notes
HAL_SD_ReadBlocks_DMA
Function name
Function description
Parameters
Return values
Notes
HAL_SD_WriteBlocks_DMA
Function name
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.
HAL: status
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_StatusTypeDef HAL_SD_WriteBlocks_IT
(SD_HandleTypeDef * hsd, uint8_t * pData, uint32_t BlockAdd,
uint32_t NumberOfBlocks)
Writes block(s) to a specified address in a card.
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
HAL: status
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_StatusTypeDef HAL_SD_ReadBlocks_DMA
(SD_HandleTypeDef * hsd, uint8_t * pData, uint32_t BlockAdd,
uint32_t NumberOfBlocks)
Reads block(s) from a specified address in a card.
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.
HAL: status
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_StatusTypeDef HAL_SD_WriteBlocks_DMA
(SD_HandleTypeDef * hsd, uint8_t * pData, uint32_t BlockAdd,
DocID028236 Rev 2
HAL SD Generic Driver
519/1371
Need help?
Do you have a question about the STM32F2 and is the answer not in the manual?
Questions and answers