SD/SDIO/MMC card host interface (SDMMC) Reference: ST_CortexM7_STM32F769_TRM_Rev4.pdf Chapter 39.
More...
#include <Imt.Base.HAL.STM32F769/Peripherals/SDMMC.h>
|
static CardState::Id | HAL_SD_GetCardState (Handle &hsd) |
| Gets the current sd card data state. More...
|
|
static Status::Id | init (Handle &hsd) |
| Initializes the SD peripheral according to the specified parameters in the Handle and initiate the associated handle. More...
|
|
static Status::Id | configWideBusOperation (Handle &hsd, const BusWidth::Id wideMode) |
| Enables wide bus operation for the requested card if supported by card. More...
|
|
static Status::Id | readBlocks (Handle &hsd, uint8_t *const pData, const uint32_t blockAdd, const uint32_t numberOfBlocks, const uint32_t timeout) |
| Reads block(s) from a specified address in a card. More...
|
|
static Status::Id | writeBlocks (Handle &hsd, const uint8_t *const pData, const uint32_t blockAdd, const uint32_t numberOfBlocks, const uint32_t timeout) |
| Allows to write block(s) to a specified address in a card. More...
|
|
static void | irqHandler (Handle &hsd) |
| HAL Irq handler, must be called from matching IRQ handler.
|
|
static void | rxDmaIrqHandler (Handle &hsd) |
|
static void | txDmaIrqHandler (Handle &hsd) |
|
SD/SDIO/MMC card host interface (SDMMC) Reference: ST_CortexM7_STM32F769_TRM_Rev4.pdf Chapter 39.
◆ configWideBusOperation()
static Status::Id imt::base::hal::stm32f769::peripherals::SDMMC::configWideBusOperation |
( |
Handle & |
hsd, |
|
|
const BusWidth::Id |
wideMode |
|
) |
| |
|
static |
Enables wide bus operation for the requested card if supported by card.
- Parameters
-
hsd | Pointer to SD handle |
wideMode | Specifies the SD card wide bus mode |
- Return values
-
◆ HAL_SD_GetCardState()
static CardState::Id imt::base::hal::stm32f769::peripherals::SDMMC::HAL_SD_GetCardState |
( |
Handle & |
hsd | ) |
|
|
static |
Gets the current sd card data state.
- Parameters
-
- Return values
-
◆ init()
static Status::Id imt::base::hal::stm32f769::peripherals::SDMMC::init |
( |
Handle & |
hsd | ) |
|
|
static |
Initializes the SD peripheral according to the specified parameters in the Handle and initiate the associated handle.
- Parameters
-
hsd | Pointer to the SD handle |
- Return values
-
◆ readBlocks()
static Status::Id imt::base::hal::stm32f769::peripherals::SDMMC::readBlocks |
( |
Handle & |
hsd, |
|
|
uint8_t *const |
pData, |
|
|
const uint32_t |
blockAdd, |
|
|
const uint32_t |
numberOfBlocks, |
|
|
const uint32_t |
timeout |
|
) |
| |
|
static |
Reads block(s) from a specified address in a card.
The Data transfer is managed by polling mode.
- Note
- This API should be followed by a check on the card state through HAL_SD_GetCardState().
- Parameters
-
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 |
- Return values
-
◆ writeBlocks()
static Status::Id imt::base::hal::stm32f769::peripherals::SDMMC::writeBlocks |
( |
Handle & |
hsd, |
|
|
const uint8_t *const |
pData, |
|
|
const uint32_t |
blockAdd, |
|
|
const uint32_t |
numberOfBlocks, |
|
|
const uint32_t |
timeout |
|
) |
| |
|
static |
Allows to write block(s) to a specified address in a card.
The Data transfer is managed by polling mode.
- Note
- This API should be followed by a check on the card state through HAL_SD_GetCardState().
- 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 SD blocks to write |
timeout | Specify timeout value |
- Return values
-
The documentation for this class was generated from the following file:
- D:/_Work/10/s/Imt.Base/Imt.Base.HAL.STM32F769/Peripherals/SDMMC.h