uint32_t NumberOfBlocks, uint32_t Timeout)
Reads block(s) from a specified address in a card.
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
This API should be followed by a check on the card state
through HAL_SD_GetCardState().
HAL_SD_WriteBlocks
HAL_StatusTypeDef HAL_SD_WriteBlocks
(SD_HandleTypeDef * hsd, uint8_t * pData, uint32_t BlockAdd,
uint32_t NumberOfBlocks, uint32_t Timeout)
Allows to write 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 SD blocks to write
Timeout: Specify timeout value
This API should be followed by a check on the card state
through HAL_SD_GetCardState().
HAL_SD_Erase
HAL_StatusTypeDef HAL_SD_Erase (SD_HandleTypeDef *
hsd, uint32_t BlockStartAdd, uint32_t BlockEndAdd)
Erases the specified memory area of the given SD card.
hsd: Pointer to SD handle
BlockStartAdd: Start Block address
BlockEndAdd: End Block address
This API should be followed by a check on the card state
through HAL_SD_GetCardState().
HAL_SD_ReadBlocks_IT
HAL_StatusTypeDef HAL_SD_ReadBlocks_IT
(SD_HandleTypeDef * hsd, uint8_t * pData, uint32_t BlockAdd,
uint32_t NumberOfBlocks)
Reads block(s) from a specified address in a card.
hsd: Pointer to SD handle