![]() |
STM32F769IDiscovery
1.00
uDANTE Audio Networking with STM32F7 DISCO board
|
Functions | |
uint8_t | BSP_SD_Init (void) |
Initializes the SD card device. More... | |
uint8_t | BSP_SD_DeInit (void) |
DeInitializes the SD card device. More... | |
uint8_t | BSP_SD_ITConfig (void) |
Configures Interrupt mode for SD detection pin. More... | |
uint8_t | BSP_SD_IsDetected (void) |
Detects if SD card is correctly plugged in the memory slot or not. More... | |
uint8_t | BSP_SD_ReadBlocks (uint32_t *pData, uint64_t ReadAddr, uint32_t BlockSize, uint32_t NumOfBlocks) |
Reads block(s) from a specified address in an SD card, in polling mode. More... | |
uint8_t | BSP_SD_WriteBlocks (uint32_t *pData, uint64_t WriteAddr, uint32_t BlockSize, uint32_t NumOfBlocks) |
Writes block(s) to a specified address in an SD card, in polling mode. More... | |
uint8_t | BSP_SD_ReadBlocks_DMA (uint32_t *pData, uint64_t ReadAddr, uint32_t BlockSize, uint32_t NumOfBlocks) |
Reads block(s) from a specified address in an SD card, in DMA mode. More... | |
uint8_t | BSP_SD_WriteBlocks_DMA (uint32_t *pData, uint64_t WriteAddr, uint32_t BlockSize, uint32_t NumOfBlocks) |
Writes block(s) to a specified address in an SD card, in DMA mode. More... | |
uint8_t | BSP_SD_Erase (uint64_t StartAddr, uint64_t EndAddr) |
Erases the specified memory area of the given SD card. More... | |
__weak void | BSP_SD_MspInit (SD_HandleTypeDef *hsd, void *Params) |
Initializes the SD MSP. More... | |
__weak void | BSP_SD_Detect_MspInit (SD_HandleTypeDef *hsd, void *Params) |
Initializes the SD Detect pin MSP. More... | |
__weak void | BSP_SD_MspDeInit (SD_HandleTypeDef *hsd, void *Params) |
DeInitializes the SD MSP. More... | |
HAL_SD_TransferStateTypedef | BSP_SD_GetStatus (void) |
Gets the current SD card data status. More... | |
void | BSP_SD_GetCardInfo (HAL_SD_CardInfoTypedef *CardInfo) |
Get SD information about specific SD card. More... | |
uint8_t BSP_SD_DeInit | ( | void | ) |
DeInitializes the SD card device.
SD | status |
Definition at line 195 of file stm32f769i_discovery_sd.c.
__weak void BSP_SD_Detect_MspInit | ( | SD_HandleTypeDef * | hsd, |
void * | Params | ||
) |
Initializes the SD Detect pin MSP.
hsd | SD handle |
None |
Definition at line 490 of file stm32f769i_discovery_sd.c.
uint8_t BSP_SD_Erase | ( | uint64_t | StartAddr, |
uint64_t | EndAddr | ||
) |
Erases the specified memory area of the given SD card.
StartAddr | Start byte address |
EndAddr | End byte address |
SD | status |
Definition at line 369 of file stm32f769i_discovery_sd.c.
void BSP_SD_GetCardInfo | ( | HAL_SD_CardInfoTypedef * | CardInfo | ) |
Get SD information about specific SD card.
CardInfo | Pointer to HAL_SD_CardInfoTypedef structure |
Definition at line 556 of file stm32f769i_discovery_sd.c.
HAL_SD_TransferStateTypedef BSP_SD_GetStatus | ( | void | ) |
Gets the current SD card data status.
Data | transfer state. This value can be one of the following values:
|
Definition at line 547 of file stm32f769i_discovery_sd.c.
uint8_t BSP_SD_Init | ( | void | ) |
Initializes the SD card device.
SD | status |
Definition at line 144 of file stm32f769i_discovery_sd.c.
uint8_t BSP_SD_IsDetected | ( | void | ) |
Detects if SD card is correctly plugged in the memory slot or not.
Returns | if SD is detected or not |
Definition at line 240 of file stm32f769i_discovery_sd.c.
uint8_t BSP_SD_ITConfig | ( | void | ) |
Configures Interrupt mode for SD detection pin.
Returns | 0 |
Definition at line 218 of file stm32f769i_discovery_sd.c.
__weak void BSP_SD_MspDeInit | ( | SD_HandleTypeDef * | hsd, |
void * | Params | ||
) |
DeInitializes the SD MSP.
hsd | SD handle |
Params | : pointer on additional configuration parameters, can be NULL. |
Definition at line 509 of file stm32f769i_discovery_sd.c.
__weak void BSP_SD_MspInit | ( | SD_HandleTypeDef * | hsd, |
void * | Params | ||
) |
Initializes the SD MSP.
hsd | SD handle |
Params | : pointer on additional configuration parameters, can be NULL. |
Definition at line 386 of file stm32f769i_discovery_sd.c.
uint8_t BSP_SD_ReadBlocks | ( | uint32_t * | pData, |
uint64_t | ReadAddr, | ||
uint32_t | BlockSize, | ||
uint32_t | NumOfBlocks | ||
) |
Reads block(s) from a specified address in an SD card, in polling mode.
pData | Pointer to the buffer that will contain the data to transmit |
ReadAddr | Address from where data is to be read |
BlockSize | SD card data block size, that should be 512 |
NumOfBlocks | Number of SD blocks to read |
SD | status |
Definition at line 263 of file stm32f769i_discovery_sd.c.
uint8_t BSP_SD_ReadBlocks_DMA | ( | uint32_t * | pData, |
uint64_t | ReadAddr, | ||
uint32_t | BlockSize, | ||
uint32_t | NumOfBlocks | ||
) |
Reads block(s) from a specified address in an SD card, in DMA mode.
pData | Pointer to the buffer that will contain the data to transmit |
ReadAddr | Address from where data is to be read |
BlockSize | SD card data block size, that should be 512 |
NumOfBlocks | Number of SD blocks to read |
SD | status |
Definition at line 303 of file stm32f769i_discovery_sd.c.
uint8_t BSP_SD_WriteBlocks | ( | uint32_t * | pData, |
uint64_t | WriteAddr, | ||
uint32_t | BlockSize, | ||
uint32_t | NumOfBlocks | ||
) |
Writes block(s) to a specified address in an SD card, in polling mode.
pData | Pointer to the buffer that will contain the data to transmit |
WriteAddr | Address from where data is to be written |
BlockSize | SD card data block size, that should be 512 |
NumOfBlocks | Number of SD blocks to write |
SD | status |
Definition at line 283 of file stm32f769i_discovery_sd.c.
uint8_t BSP_SD_WriteBlocks_DMA | ( | uint32_t * | pData, |
uint64_t | WriteAddr, | ||
uint32_t | BlockSize, | ||
uint32_t | NumOfBlocks | ||
) |
Writes block(s) to a specified address in an SD card, in DMA mode.
pData | Pointer to the buffer that will contain the data to transmit |
WriteAddr | Address from where data is to be written |
BlockSize | SD card data block size, that should be 512 |
NumOfBlocks | Number of SD blocks to write |
SD | status |
Definition at line 337 of file stm32f769i_discovery_sd.c.