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.
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
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
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
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.
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
HAL_StatusTypeDef HAL_SD_WriteBlocks_DMA
(SD_HandleTypeDef * hsd, uint8_t * pData, uint32_t BlockAdd,