Extended features functions.
More...
Extended features functions.
===============================================================================
##### Extended features functions #####
===============================================================================
[..] This section provides functions allowing to:
(+) Configure the DMAMUX Synchronization Block using HAL_DMAEx_ConfigMuxSync function.
(+) Configure the DMAMUX Request Generator Block using HAL_DMAEx_ConfigMuxRequestGenerator function.
Functions HAL_DMAEx_EnableMuxRequestGenerator and HAL_DMAEx_DisableMuxRequestGenerator can then be used
to respectively enable/disable the request generator.
◆ HAL_DMAEx_ConfigMuxRequestGenerator()
Configure the DMAMUX request generator block used by the given DMA channel (instance).
- Parameters
-
| hdma | pointer to a DMA_HandleTypeDef structure that contains the configuration information for the specified DMA channel. |
| pRequestGeneratorConfig | : pointer to HAL_DMA_MuxRequestGeneratorConfigTypeDef : contains the request generator parameters. |
- Return values
-
Definition at line 150 of file stm32l4xx_hal_dma_ex.c.
170 ((pRequestGeneratorConfig->
RequestNumber - 1U) << DMAMUX_RGxCR_GNBREQ_Pos)| \
171 pRequestGeneratorConfig->Polarity;
DMAMUX_RequestGen_TypeDef * DMAmuxRequestGen
DMA_Channel_TypeDef * Instance
__IO HAL_DMA_StateTypeDef State
assert_param(IS_RTC_WAKEUP_CLOCK(WakeUpClock))
◆ HAL_DMAEx_ConfigMuxSync()
Configure the DMAMUX synchronization parameters for a given DMA channel (instance).
- Parameters
-
| hdma | pointer to a DMA_HandleTypeDef structure that contains the configuration information for the specified DMA channel. |
| pSyncConfig | : pointer to HAL_DMA_MuxSyncConfigTypeDef : contains the DMAMUX synchronization parameters |
- Return values
-
Definition at line 104 of file stm32l4xx_hal_dma_ex.c.
111 assert_param(IS_DMAMUX_SYNC_POLARITY(pSyncConfig-> SyncPolarity));
124 (~DMAMUX_CxCR_DMAREQ_ID) , \
125 ((pSyncConfig->
SyncSignalID) << DMAMUX_CxCR_SYNC_ID_Pos) | ((pSyncConfig->
RequestNumber - 1U) << DMAMUX_CxCR_NBREQ_Pos) | \
127 ((uint32_t)pSyncConfig->
EventEnable << DMAMUX_CxCR_EGE_Pos));
FunctionalState SyncEnable
DMA_Channel_TypeDef * Instance
__IO HAL_DMA_StateTypeDef State
DMAMUX_Channel_TypeDef * DMAmuxChannel
FunctionalState EventEnable
MODIFY_REG(hrtc->Instance->CR, RTC_CR_WUCKSEL,(uint32_t) WakeUpClock)
assert_param(IS_RTC_WAKEUP_CLOCK(WakeUpClock))
◆ HAL_DMAEx_DisableMuxRequestGenerator()
Disable the DMAMUX request generator block used by the given DMA channel (instance).
- Parameters
-
| hdma | pointer to a DMA_HandleTypeDef structure that contains the configuration information for the specified DMA channel. |
- Return values
-
Definition at line 217 of file stm32l4xx_hal_dma_ex.c.
DMAMUX_RequestGen_TypeDef * DMAmuxRequestGen
DMA_Channel_TypeDef * Instance
__IO HAL_DMA_StateTypeDef State
assert_param(IS_RTC_WAKEUP_CLOCK(WakeUpClock))
◆ HAL_DMAEx_EnableMuxRequestGenerator()
Enable the DMAMUX request generator block used by the given DMA channel (instance).
- Parameters
-
| hdma | pointer to a DMA_HandleTypeDef structure that contains the configuration information for the specified DMA channel. |
- Return values
-
Definition at line 189 of file stm32l4xx_hal_dma_ex.c.
DMAMUX_RequestGen_TypeDef * DMAmuxRequestGen
DMA_Channel_TypeDef * Instance
__IO HAL_DMA_StateTypeDef State
assert_param(IS_RTC_WAKEUP_CLOCK(WakeUpClock))
◆ HAL_DMAEx_MUX_IRQHandler()
Handles DMAMUX interrupt request.
- Parameters
-
| hdma | pointer to a DMA_HandleTypeDef structure that contains the configuration information for the specified DMA channel. |
- Return values
-
Definition at line 245 of file stm32l4xx_hal_dma_ex.c.
uint32_t DMAmuxChannelStatusMask
DMAMUX_RequestGenStatus_TypeDef * DMAmuxRequestGenStatus
DMAMUX_RequestGen_TypeDef * DMAmuxRequestGen
void(* XferErrorCallback)(struct __DMA_HandleTypeDef *hdma)
DMAMUX_Channel_TypeDef * DMAmuxChannel
uint32_t DMAmuxRequestGenStatusMask
DMAMUX_ChannelStatus_TypeDef * DMAmuxChannelStatus