Dataflow Runtime API  2.7.4.0
Classes | Static Public Member Functions | List of all members
imt::base::hal::stm32f769::peripherals::SDMMC Class Reference

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>

Classes

struct  BusWidth
 
struct  CardCSD
 Card Specific Data: CSD Register. More...
 
struct  CardState
 SD Card State enumeration structure. More...
 
struct  ClockDiv
 Collection of useful clock SDMMC inerface dividers. More...
 
union  Context
 SD context enumeration. More...
 
struct  Handle
 
struct  Instance
 Peripheral Handle. More...
 
struct  PeriphClockConfig
 SDMMC Clock Configuration Structure
More...
 
struct  SdCardInfo
 SD Card Information Structure definition. More...
 
struct  State
 SD State enumeration structure. More...
 
struct  SupportedCard
 SD Supported Memory Cards. More...
 
struct  SupportedVersion
 SD Supported Version. More...
 

Static Public Member Functions

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)
 

Detailed Description

SD/SDIO/MMC card host interface (SDMMC) Reference: ST_CortexM7_STM32F769_TRM_Rev4.pdf Chapter 39.

Member Function Documentation

◆ 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
hsdPointer to SD handle
wideModeSpecifies the SD card wide bus mode
Return values
HALstatus

◆ 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
hsdpointer to SD handle
Return values
Cardstate

◆ 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
hsdPointer to the SD handle
Return values
HALstatus

◆ 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
hsdPointer to SD handle
pDatapointer to the buffer that will contain the received data
blockAddBlock Address from where data is to be read
numberOfBlocksNumber of SD blocks to read
timeoutSpecify timeout value
Return values
HALstatus

◆ 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
hsdPointer to SD handle
pDatapointer to the buffer that will contain the data to transmit
blockAddBlock Address where data will be written
numberOfBlocksNumber of SD blocks to write
timeoutSpecify timeout value
Return values
HALstatus

The documentation for this class was generated from the following file: