STM32L4xx_HAL_Driver  1.14.0

Modules

 Foreground Configuration Functions
 
 Background Configuration Functions
 

Functions

__STATIC_INLINE void LL_DMA2D_Start (DMA2D_TypeDef *DMA2Dx)
 Start a DMA2D transfer. CR START LL_DMA2D_Start. More...
 
__STATIC_INLINE uint32_t LL_DMA2D_IsTransferOngoing (DMA2D_TypeDef *DMA2Dx)
 Indicate if a DMA2D transfer is ongoing. CR START LL_DMA2D_IsTransferOngoing. More...
 
__STATIC_INLINE void LL_DMA2D_Suspend (DMA2D_TypeDef *DMA2Dx)
 Suspend DMA2D transfer. More...
 
__STATIC_INLINE void LL_DMA2D_Resume (DMA2D_TypeDef *DMA2Dx)
 Resume DMA2D transfer. More...
 
__STATIC_INLINE uint32_t LL_DMA2D_IsSuspended (DMA2D_TypeDef *DMA2Dx)
 Indicate if DMA2D transfer is suspended. More...
 
__STATIC_INLINE void LL_DMA2D_Abort (DMA2D_TypeDef *DMA2Dx)
 Abort DMA2D transfer. More...
 
__STATIC_INLINE uint32_t LL_DMA2D_IsAborted (DMA2D_TypeDef *DMA2Dx)
 Indicate if DMA2D transfer is aborted. More...
 
__STATIC_INLINE void LL_DMA2D_SetMode (DMA2D_TypeDef *DMA2Dx, uint32_t Mode)
 Set DMA2D mode. CR MODE LL_DMA2D_SetMode. More...
 
__STATIC_INLINE uint32_t LL_DMA2D_GetMode (DMA2D_TypeDef *DMA2Dx)
 Return DMA2D mode CR MODE LL_DMA2D_GetMode. More...
 
__STATIC_INLINE void LL_DMA2D_SetOutputColorMode (DMA2D_TypeDef *DMA2Dx, uint32_t ColorMode)
 Set DMA2D output color mode. OPFCCR CM LL_DMA2D_SetOutputColorMode. More...
 
__STATIC_INLINE uint32_t LL_DMA2D_GetOutputColorMode (DMA2D_TypeDef *DMA2Dx)
 Return DMA2D output color mode. OPFCCR CM LL_DMA2D_GetOutputColorMode. More...
 
__STATIC_INLINE void LL_DMA2D_SetOutputRBSwapMode (DMA2D_TypeDef *DMA2Dx, uint32_t RBSwapMode)
 Set DMA2D output Red Blue swap mode. OPFCCR RBS LL_DMA2D_SetOutputRBSwapMode. More...
 
__STATIC_INLINE uint32_t LL_DMA2D_GetOutputRBSwapMode (DMA2D_TypeDef *DMA2Dx)
 Return DMA2D output Red Blue swap mode. OPFCCR RBS LL_DMA2D_GetOutputRBSwapMode. More...
 
__STATIC_INLINE void LL_DMA2D_SetOutputAlphaInvMode (DMA2D_TypeDef *DMA2Dx, uint32_t AlphaInversionMode)
 Set DMA2D output alpha inversion mode. OPFCCR AI LL_DMA2D_SetOutputAlphaInvMode. More...
 
__STATIC_INLINE uint32_t LL_DMA2D_GetOutputAlphaInvMode (DMA2D_TypeDef *DMA2Dx)
 Return DMA2D output alpha inversion mode. OPFCCR AI LL_DMA2D_GetOutputAlphaInvMode. More...
 
__STATIC_INLINE void LL_DMA2D_SetOutputSwapMode (DMA2D_TypeDef *DMA2Dx, uint32_t OutputSwapMode)
 Set DMA2D output swap mode. OPFCCR SB LL_DMA2D_SetOutputSwapMode. More...
 
__STATIC_INLINE uint32_t LL_DMA2D_GetOutputSwapMode (DMA2D_TypeDef *DMA2Dx)
 Return DMA2D output swap mode. OPFCCR SB LL_DMA2D_GetOutputSwapMode. More...
 
__STATIC_INLINE void LL_DMA2D_SetLineOffsetMode (DMA2D_TypeDef *DMA2Dx, uint32_t LineOffsetMode)
 Set DMA2D line offset mode. CR LOM LL_DMA2D_SetLineOffsetMode. More...
 
__STATIC_INLINE uint32_t LL_DMA2D_GetLineOffsetMode (DMA2D_TypeDef *DMA2Dx)
 Return DMA2D line offset mode. CR LOM LL_DMA2D_GetLineOffsetMode. More...
 
__STATIC_INLINE void LL_DMA2D_SetLineOffset (DMA2D_TypeDef *DMA2Dx, uint32_t LineOffset)
 Set DMA2D line offset, expressed on 14 bits ([13:0] bits). OOR LO LL_DMA2D_SetLineOffset. More...
 
__STATIC_INLINE uint32_t LL_DMA2D_GetLineOffset (DMA2D_TypeDef *DMA2Dx)
 Return DMA2D line offset, expressed on 14 bits ([13:0] bits). OOR LO LL_DMA2D_GetLineOffset. More...
 
__STATIC_INLINE void LL_DMA2D_SetNbrOfPixelsPerLines (DMA2D_TypeDef *DMA2Dx, uint32_t NbrOfPixelsPerLines)
 Set DMA2D number of pixels per lines, expressed on 14 bits ([13:0] bits). NLR PL LL_DMA2D_SetNbrOfPixelsPerLines. More...
 
__STATIC_INLINE uint32_t LL_DMA2D_GetNbrOfPixelsPerLines (DMA2D_TypeDef *DMA2Dx)
 Return DMA2D number of pixels per lines, expressed on 14 bits ([13:0] bits) NLR PL LL_DMA2D_GetNbrOfPixelsPerLines. More...
 
__STATIC_INLINE void LL_DMA2D_SetNbrOfLines (DMA2D_TypeDef *DMA2Dx, uint32_t NbrOfLines)
 Set DMA2D number of lines, expressed on 16 bits ([15:0] bits). NLR NL LL_DMA2D_SetNbrOfLines. More...
 
__STATIC_INLINE uint32_t LL_DMA2D_GetNbrOfLines (DMA2D_TypeDef *DMA2Dx)
 Return DMA2D number of lines, expressed on 16 bits ([15:0] bits). NLR NL LL_DMA2D_GetNbrOfLines. More...
 
__STATIC_INLINE void LL_DMA2D_SetOutputMemAddr (DMA2D_TypeDef *DMA2Dx, uint32_t OutputMemoryAddress)
 Set DMA2D output memory address, expressed on 32 bits ([31:0] bits). OMAR MA LL_DMA2D_SetOutputMemAddr. More...
 
__STATIC_INLINE uint32_t LL_DMA2D_GetOutputMemAddr (DMA2D_TypeDef *DMA2Dx)
 Get DMA2D output memory address, expressed on 32 bits ([31:0] bits). OMAR MA LL_DMA2D_GetOutputMemAddr. More...
 
__STATIC_INLINE void LL_DMA2D_SetOutputColor (DMA2D_TypeDef *DMA2Dx, uint32_t OutputColor)
 Set DMA2D output color, expressed on 32 bits ([31:0] bits). More...
 
__STATIC_INLINE uint32_t LL_DMA2D_GetOutputColor (DMA2D_TypeDef *DMA2Dx)
 Get DMA2D output color, expressed on 32 bits ([31:0] bits). More...
 
__STATIC_INLINE void LL_DMA2D_SetLineWatermark (DMA2D_TypeDef *DMA2Dx, uint32_t LineWatermark)
 Set DMA2D line watermark, expressed on 16 bits ([15:0] bits). LWR LW LL_DMA2D_SetLineWatermark. More...
 
__STATIC_INLINE uint32_t LL_DMA2D_GetLineWatermark (DMA2D_TypeDef *DMA2Dx)
 Return DMA2D line watermark, expressed on 16 bits ([15:0] bits). LWR LW LL_DMA2D_GetLineWatermark. More...
 
__STATIC_INLINE void LL_DMA2D_SetDeadTime (DMA2D_TypeDef *DMA2Dx, uint32_t DeadTime)
 Set DMA2D dead time, expressed on 8 bits ([7:0] bits). AMTCR DT LL_DMA2D_SetDeadTime. More...
 
__STATIC_INLINE uint32_t LL_DMA2D_GetDeadTime (DMA2D_TypeDef *DMA2Dx)
 Return DMA2D dead time, expressed on 8 bits ([7:0] bits). AMTCR DT LL_DMA2D_GetDeadTime. More...
 
__STATIC_INLINE void LL_DMA2D_EnableDeadTime (DMA2D_TypeDef *DMA2Dx)
 Enable DMA2D dead time functionality. AMTCR EN LL_DMA2D_EnableDeadTime. More...
 
__STATIC_INLINE void LL_DMA2D_DisableDeadTime (DMA2D_TypeDef *DMA2Dx)
 Disable DMA2D dead time functionality. AMTCR EN LL_DMA2D_DisableDeadTime. More...
 
__STATIC_INLINE uint32_t LL_DMA2D_IsEnabledDeadTime (DMA2D_TypeDef *DMA2Dx)
 Indicate if DMA2D dead time functionality is enabled. AMTCR EN LL_DMA2D_IsEnabledDeadTime. More...
 

Detailed Description

Function Documentation

◆ LL_DMA2D_Abort()

__STATIC_INLINE void LL_DMA2D_Abort ( DMA2D_TypeDef *  DMA2Dx)

Abort DMA2D transfer.

Note
This API can be used to abort automatic foreground or background CLUT loading. CR ABORT LL_DMA2D_Abort
Parameters
DMA2DxDMA2D Instance
Return values
None

Definition at line 570 of file stm32l4xx_ll_dma2d.h.

571 {
572  MODIFY_REG(DMA2Dx->CR, DMA2D_CR_ABORT | DMA2D_CR_START, DMA2D_CR_ABORT);
573 }
MODIFY_REG(hrtc->Instance->CR, RTC_CR_WUCKSEL,(uint32_t) WakeUpClock)

◆ LL_DMA2D_DisableDeadTime()

__STATIC_INLINE void LL_DMA2D_DisableDeadTime ( DMA2D_TypeDef *  DMA2Dx)

Disable DMA2D dead time functionality. AMTCR EN LL_DMA2D_DisableDeadTime.

Parameters
DMA2DxDMA2D Instance
Return values
None

Definition at line 974 of file stm32l4xx_ll_dma2d.h.

975 {
976  CLEAR_BIT(DMA2Dx->AMTCR, DMA2D_AMTCR_EN);
977 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)

◆ LL_DMA2D_EnableDeadTime()

__STATIC_INLINE void LL_DMA2D_EnableDeadTime ( DMA2D_TypeDef *  DMA2Dx)

Enable DMA2D dead time functionality. AMTCR EN LL_DMA2D_EnableDeadTime.

Parameters
DMA2DxDMA2D Instance
Return values
None

Definition at line 963 of file stm32l4xx_ll_dma2d.h.

964 {
965  SET_BIT(DMA2Dx->AMTCR, DMA2D_AMTCR_EN);
966 }

◆ LL_DMA2D_GetDeadTime()

__STATIC_INLINE uint32_t LL_DMA2D_GetDeadTime ( DMA2D_TypeDef *  DMA2Dx)

Return DMA2D dead time, expressed on 8 bits ([7:0] bits). AMTCR DT LL_DMA2D_GetDeadTime.

Parameters
DMA2DxDMA2D Instance
Return values
Deadtime value between Min_Data=0 and Max_Data=0xFF

Definition at line 952 of file stm32l4xx_ll_dma2d.h.

953 {
954  return (uint32_t)(READ_BIT(DMA2Dx->AMTCR, DMA2D_AMTCR_DT) >> DMA2D_AMTCR_DT_Pos);
955 }

◆ LL_DMA2D_GetLineOffset()

__STATIC_INLINE uint32_t LL_DMA2D_GetLineOffset ( DMA2D_TypeDef *  DMA2Dx)

Return DMA2D line offset, expressed on 14 bits ([13:0] bits). OOR LO LL_DMA2D_GetLineOffset.

Parameters
DMA2DxDMA2D Instance
Return values
Lineoffset value between Min_Data=0 and Max_Data=0x3FFF

Definition at line 799 of file stm32l4xx_ll_dma2d.h.

800 {
801  return (uint32_t)(READ_BIT(DMA2Dx->OOR, DMA2D_OOR_LO));
802 }

◆ LL_DMA2D_GetLineOffsetMode()

__STATIC_INLINE uint32_t LL_DMA2D_GetLineOffsetMode ( DMA2D_TypeDef *  DMA2Dx)

Return DMA2D line offset mode. CR LOM LL_DMA2D_GetLineOffsetMode.

Parameters
DMA2DxDMA2D Instance
Return values
Returnedvalue can be one of the following values:
  • LL_DMA2D_LINE_OFFSET_PIXELS
  • LL_DMA2D_LINE_OFFSET_BYTES

Definition at line 767 of file stm32l4xx_ll_dma2d.h.

768 {
769  return (uint32_t)(READ_BIT(DMA2Dx->CR, DMA2D_CR_LOM));
770 }

◆ LL_DMA2D_GetLineWatermark()

__STATIC_INLINE uint32_t LL_DMA2D_GetLineWatermark ( DMA2D_TypeDef *  DMA2Dx)

Return DMA2D line watermark, expressed on 16 bits ([15:0] bits). LWR LW LL_DMA2D_GetLineWatermark.

Parameters
DMA2DxDMA2D Instance
Return values
Linewatermark value between Min_Data=0 and Max_Data=0xFFFF

Definition at line 929 of file stm32l4xx_ll_dma2d.h.

930 {
931  return (uint32_t)(READ_BIT(DMA2Dx->LWR, DMA2D_LWR_LW));
932 }

◆ LL_DMA2D_GetMode()

__STATIC_INLINE uint32_t LL_DMA2D_GetMode ( DMA2D_TypeDef *  DMA2Dx)

Return DMA2D mode CR MODE LL_DMA2D_GetMode.

Parameters
DMA2DxDMA2D Instance
Return values
Returnedvalue can be one of the following values:
  • LL_DMA2D_MODE_M2M
  • LL_DMA2D_MODE_M2M_PFC
  • LL_DMA2D_MODE_M2M_BLEND
  • LL_DMA2D_MODE_R2M
  • LL_DMA2D_MODE_M2M_BLEND_FIXED_COLOR_FG (*)
  • LL_DMA2D_MODE_M2M_BLEND_FIXED_COLOR_BG (*)
(*) value not defined in all devices.

Definition at line 622 of file stm32l4xx_ll_dma2d.h.

623 {
624  return (uint32_t)(READ_BIT(DMA2Dx->CR, DMA2D_CR_MODE));
625 }

◆ LL_DMA2D_GetNbrOfLines()

__STATIC_INLINE uint32_t LL_DMA2D_GetNbrOfLines ( DMA2D_TypeDef *  DMA2Dx)

Return DMA2D number of lines, expressed on 16 bits ([15:0] bits). NLR NL LL_DMA2D_GetNbrOfLines.

Parameters
DMA2DxDMA2D Instance
Return values
Numberof lines value between Min_Data=0 and Max_Data=0xFFFF

Definition at line 845 of file stm32l4xx_ll_dma2d.h.

846 {
847  return (uint32_t)(READ_BIT(DMA2Dx->NLR, DMA2D_NLR_NL));
848 }

◆ LL_DMA2D_GetNbrOfPixelsPerLines()

__STATIC_INLINE uint32_t LL_DMA2D_GetNbrOfPixelsPerLines ( DMA2D_TypeDef *  DMA2Dx)

Return DMA2D number of pixels per lines, expressed on 14 bits ([13:0] bits) NLR PL LL_DMA2D_GetNbrOfPixelsPerLines.

Parameters
DMA2DxDMA2D Instance
Return values
Numberof pixels per lines value between Min_Data=0 and Max_Data=0x3FFF

Definition at line 822 of file stm32l4xx_ll_dma2d.h.

823 {
824  return (uint32_t)(READ_BIT(DMA2Dx->NLR, DMA2D_NLR_PL) >> DMA2D_NLR_PL_Pos);
825 }

◆ LL_DMA2D_GetOutputAlphaInvMode()

__STATIC_INLINE uint32_t LL_DMA2D_GetOutputAlphaInvMode ( DMA2D_TypeDef *  DMA2Dx)

Return DMA2D output alpha inversion mode. OPFCCR AI LL_DMA2D_GetOutputAlphaInvMode.

Parameters
DMA2DxDMA2D Instance
Return values
Returnedvalue can be one of the following values:
  • LL_DMA2D_ALPHA_REGULAR
  • LL_DMA2D_ALPHA_INVERTED

Definition at line 709 of file stm32l4xx_ll_dma2d.h.

710 {
711  return (uint32_t)(READ_BIT(DMA2Dx->OPFCCR, DMA2D_OPFCCR_AI));
712 }

◆ LL_DMA2D_GetOutputColor()

__STATIC_INLINE uint32_t LL_DMA2D_GetOutputColor ( DMA2D_TypeDef *  DMA2Dx)

Get DMA2D output color, expressed on 32 bits ([31:0] bits).

Note
Alpha channel and red, green, blue color values must be retrieved from the returned value based on the output color mode (ARGB8888, RGB888, RGB565, ARGB1555 or ARGB4444) as set by LL_DMA2D_SetOutputColorMode. OCOLR BLUE LL_DMA2D_GetOutputColor
OCOLR GREEN LL_DMA2D_GetOutputColor
OCOLR RED LL_DMA2D_GetOutputColor
OCOLR ALPHA LL_DMA2D_GetOutputColor
Parameters
DMA2DxDMA2D Instance
Return values
Outputcolor value between Min_Data=0 and Max_Data=0xFFFFFFFF

Definition at line 905 of file stm32l4xx_ll_dma2d.h.

906 {
907  return (uint32_t)(READ_BIT(DMA2Dx->OCOLR, \
908  (DMA2D_OCOLR_BLUE_1 | DMA2D_OCOLR_GREEN_1 | DMA2D_OCOLR_RED_1 | DMA2D_OCOLR_ALPHA_1)));
909 }

◆ LL_DMA2D_GetOutputColorMode()

__STATIC_INLINE uint32_t LL_DMA2D_GetOutputColorMode ( DMA2D_TypeDef *  DMA2Dx)

Return DMA2D output color mode. OPFCCR CM LL_DMA2D_GetOutputColorMode.

Parameters
DMA2DxDMA2D Instance
Return values
Returnedvalue can be one of the following values:
  • LL_DMA2D_OUTPUT_MODE_ARGB8888
  • LL_DMA2D_OUTPUT_MODE_RGB888
  • LL_DMA2D_OUTPUT_MODE_RGB565
  • LL_DMA2D_OUTPUT_MODE_ARGB1555
  • LL_DMA2D_OUTPUT_MODE_ARGB4444

Definition at line 655 of file stm32l4xx_ll_dma2d.h.

656 {
657  return (uint32_t)(READ_BIT(DMA2Dx->OPFCCR, DMA2D_OPFCCR_CM));
658 }

◆ LL_DMA2D_GetOutputMemAddr()

__STATIC_INLINE uint32_t LL_DMA2D_GetOutputMemAddr ( DMA2D_TypeDef *  DMA2Dx)

Get DMA2D output memory address, expressed on 32 bits ([31:0] bits). OMAR MA LL_DMA2D_GetOutputMemAddr.

Parameters
DMA2DxDMA2D Instance
Return values
Outputmemory address value between Min_Data=0 and Max_Data=0xFFFFFFFF

Definition at line 868 of file stm32l4xx_ll_dma2d.h.

869 {
870  return (uint32_t)(LL_DMA2D_ReadReg(DMA2Dx, OMAR));
871 }

◆ LL_DMA2D_GetOutputRBSwapMode()

__STATIC_INLINE uint32_t LL_DMA2D_GetOutputRBSwapMode ( DMA2D_TypeDef *  DMA2Dx)

Return DMA2D output Red Blue swap mode. OPFCCR RBS LL_DMA2D_GetOutputRBSwapMode.

Parameters
DMA2DxDMA2D Instance
Return values
Returnedvalue can be one of the following values:
  • LL_DMA2D_RB_MODE_REGULAR
  • LL_DMA2D_RB_MODE_SWAP

Definition at line 682 of file stm32l4xx_ll_dma2d.h.

683 {
684  return (uint32_t)(READ_BIT(DMA2Dx->OPFCCR, DMA2D_OPFCCR_RBS));
685 }

◆ LL_DMA2D_GetOutputSwapMode()

__STATIC_INLINE uint32_t LL_DMA2D_GetOutputSwapMode ( DMA2D_TypeDef *  DMA2Dx)

Return DMA2D output swap mode. OPFCCR SB LL_DMA2D_GetOutputSwapMode.

Parameters
DMA2DxDMA2D Instance
Return values
Returnedvalue can be one of the following values:
  • LL_DMA2D_SWAP_MODE_REGULAR
  • LL_DMA2D_SWAP_MODE_TWO_BY_TWO

Definition at line 738 of file stm32l4xx_ll_dma2d.h.

739 {
740  return (uint32_t)(READ_BIT(DMA2Dx->OPFCCR, DMA2D_OPFCCR_SB));
741 }

◆ LL_DMA2D_IsAborted()

__STATIC_INLINE uint32_t LL_DMA2D_IsAborted ( DMA2D_TypeDef *  DMA2Dx)

Indicate if DMA2D transfer is aborted.

Note
This API can be used to indicate whether or not automatic foreground or background CLUT loading is aborted. CR ABORT LL_DMA2D_IsAborted
Parameters
DMA2DxDMA2D Instance
Return values
Stateof bit (1 or 0).

Definition at line 583 of file stm32l4xx_ll_dma2d.h.

584 {
585  return ((READ_BIT(DMA2Dx->CR, DMA2D_CR_ABORT) == (DMA2D_CR_ABORT)) ? 1UL : 0UL);
586 }

◆ LL_DMA2D_IsEnabledDeadTime()

__STATIC_INLINE uint32_t LL_DMA2D_IsEnabledDeadTime ( DMA2D_TypeDef *  DMA2Dx)

Indicate if DMA2D dead time functionality is enabled. AMTCR EN LL_DMA2D_IsEnabledDeadTime.

Parameters
DMA2DxDMA2D Instance
Return values
Stateof bit (1 or 0).

Definition at line 985 of file stm32l4xx_ll_dma2d.h.

986 {
987  return ((READ_BIT(DMA2Dx->AMTCR, DMA2D_AMTCR_EN) == (DMA2D_AMTCR_EN)) ? 1UL : 0UL);
988 }

◆ LL_DMA2D_IsSuspended()

__STATIC_INLINE uint32_t LL_DMA2D_IsSuspended ( DMA2D_TypeDef *  DMA2Dx)

Indicate if DMA2D transfer is suspended.

Note
This API can be used to indicate whether or not automatic foreground or background CLUT loading is suspended. CR SUSP LL_DMA2D_IsSuspended
Parameters
DMA2DxDMA2D Instance
Return values
Stateof bit (1 or 0).

Definition at line 558 of file stm32l4xx_ll_dma2d.h.

559 {
560  return ((READ_BIT(DMA2Dx->CR, DMA2D_CR_SUSP) == (DMA2D_CR_SUSP)) ? 1UL : 0UL);
561 }

◆ LL_DMA2D_IsTransferOngoing()

__STATIC_INLINE uint32_t LL_DMA2D_IsTransferOngoing ( DMA2D_TypeDef *  DMA2Dx)

Indicate if a DMA2D transfer is ongoing. CR START LL_DMA2D_IsTransferOngoing.

Parameters
DMA2DxDMA2D Instance
Return values
Stateof bit (1 or 0).

Definition at line 521 of file stm32l4xx_ll_dma2d.h.

522 {
523  return ((READ_BIT(DMA2Dx->CR, DMA2D_CR_START) == (DMA2D_CR_START)) ? 1UL : 0UL);
524 }

◆ LL_DMA2D_Resume()

__STATIC_INLINE void LL_DMA2D_Resume ( DMA2D_TypeDef *  DMA2Dx)

Resume DMA2D transfer.

Note
This API can be used to resume automatic foreground or background CLUT loading. CR SUSP LL_DMA2D_Resume
Parameters
DMA2DxDMA2D Instance
Return values
None

Definition at line 545 of file stm32l4xx_ll_dma2d.h.

546 {
547  CLEAR_BIT(DMA2Dx->CR, DMA2D_CR_SUSP | DMA2D_CR_START);
548 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)

◆ LL_DMA2D_SetDeadTime()

__STATIC_INLINE void LL_DMA2D_SetDeadTime ( DMA2D_TypeDef *  DMA2Dx,
uint32_t  DeadTime 
)

Set DMA2D dead time, expressed on 8 bits ([7:0] bits). AMTCR DT LL_DMA2D_SetDeadTime.

Parameters
DMA2DxDMA2D Instance
DeadTimeValue between Min_Data=0 and Max_Data=0xFF
Return values
None

Definition at line 941 of file stm32l4xx_ll_dma2d.h.

942 {
943  MODIFY_REG(DMA2Dx->AMTCR, DMA2D_AMTCR_DT, (DeadTime << DMA2D_AMTCR_DT_Pos));
944 }
MODIFY_REG(hrtc->Instance->CR, RTC_CR_WUCKSEL,(uint32_t) WakeUpClock)

◆ LL_DMA2D_SetLineOffset()

__STATIC_INLINE void LL_DMA2D_SetLineOffset ( DMA2D_TypeDef *  DMA2Dx,
uint32_t  LineOffset 
)

Set DMA2D line offset, expressed on 14 bits ([13:0] bits). OOR LO LL_DMA2D_SetLineOffset.

Parameters
DMA2DxDMA2D Instance
LineOffsetValue between Min_Data=0 and Max_Data=0x3FFF
Return values
None

Definition at line 784 of file stm32l4xx_ll_dma2d.h.

785 {
786  MODIFY_REG(DMA2Dx->OOR, DMA2D_OOR_LO, LineOffset);
787 }
MODIFY_REG(hrtc->Instance->CR, RTC_CR_WUCKSEL,(uint32_t) WakeUpClock)

◆ LL_DMA2D_SetLineOffsetMode()

__STATIC_INLINE void LL_DMA2D_SetLineOffsetMode ( DMA2D_TypeDef *  DMA2Dx,
uint32_t  LineOffsetMode 
)

Set DMA2D line offset mode. CR LOM LL_DMA2D_SetLineOffsetMode.

Parameters
DMA2DxDMA2D Instance
LineOffsetModeThis parameter can be one of the following values:
  • LL_DMA2D_LINE_OFFSET_PIXELS
  • LL_DMA2D_LINE_OFFSET_BYTES
Return values
None

Definition at line 754 of file stm32l4xx_ll_dma2d.h.

755 {
756  MODIFY_REG(DMA2Dx->CR, DMA2D_CR_LOM, LineOffsetMode);
757 }
MODIFY_REG(hrtc->Instance->CR, RTC_CR_WUCKSEL,(uint32_t) WakeUpClock)

◆ LL_DMA2D_SetLineWatermark()

__STATIC_INLINE void LL_DMA2D_SetLineWatermark ( DMA2D_TypeDef *  DMA2Dx,
uint32_t  LineWatermark 
)

Set DMA2D line watermark, expressed on 16 bits ([15:0] bits). LWR LW LL_DMA2D_SetLineWatermark.

Parameters
DMA2DxDMA2D Instance
LineWatermarkValue between Min_Data=0 and Max_Data=0xFFFF
Return values
None

Definition at line 918 of file stm32l4xx_ll_dma2d.h.

919 {
920  MODIFY_REG(DMA2Dx->LWR, DMA2D_LWR_LW, LineWatermark);
921 }
MODIFY_REG(hrtc->Instance->CR, RTC_CR_WUCKSEL,(uint32_t) WakeUpClock)

◆ LL_DMA2D_SetMode()

__STATIC_INLINE void LL_DMA2D_SetMode ( DMA2D_TypeDef *  DMA2Dx,
uint32_t  Mode 
)

Set DMA2D mode. CR MODE LL_DMA2D_SetMode.

Parameters
DMA2DxDMA2D Instance
ModeThis parameter can be one of the following values:
  • LL_DMA2D_MODE_M2M
  • LL_DMA2D_MODE_M2M_PFC
  • LL_DMA2D_MODE_M2M_BLEND
  • LL_DMA2D_MODE_R2M
  • LL_DMA2D_MODE_M2M_BLEND_FIXED_COLOR_FG (*)
  • LL_DMA2D_MODE_M2M_BLEND_FIXED_COLOR_BG (*)
(*) value not defined in all devices.
Return values
None

Definition at line 603 of file stm32l4xx_ll_dma2d.h.

604 {
605  MODIFY_REG(DMA2Dx->CR, DMA2D_CR_MODE, Mode);
606 }
MODIFY_REG(hrtc->Instance->CR, RTC_CR_WUCKSEL,(uint32_t) WakeUpClock)

◆ LL_DMA2D_SetNbrOfLines()

__STATIC_INLINE void LL_DMA2D_SetNbrOfLines ( DMA2D_TypeDef *  DMA2Dx,
uint32_t  NbrOfLines 
)

Set DMA2D number of lines, expressed on 16 bits ([15:0] bits). NLR NL LL_DMA2D_SetNbrOfLines.

Parameters
DMA2DxDMA2D Instance
NbrOfLinesValue between Min_Data=0 and Max_Data=0xFFFF
Return values
None

Definition at line 834 of file stm32l4xx_ll_dma2d.h.

835 {
836  MODIFY_REG(DMA2Dx->NLR, DMA2D_NLR_NL, NbrOfLines);
837 }
MODIFY_REG(hrtc->Instance->CR, RTC_CR_WUCKSEL,(uint32_t) WakeUpClock)

◆ LL_DMA2D_SetNbrOfPixelsPerLines()

__STATIC_INLINE void LL_DMA2D_SetNbrOfPixelsPerLines ( DMA2D_TypeDef *  DMA2Dx,
uint32_t  NbrOfPixelsPerLines 
)

Set DMA2D number of pixels per lines, expressed on 14 bits ([13:0] bits). NLR PL LL_DMA2D_SetNbrOfPixelsPerLines.

Parameters
DMA2DxDMA2D Instance
NbrOfPixelsPerLinesValue between Min_Data=0 and Max_Data=0x3FFF
Return values
None

Definition at line 811 of file stm32l4xx_ll_dma2d.h.

812 {
813  MODIFY_REG(DMA2Dx->NLR, DMA2D_NLR_PL, (NbrOfPixelsPerLines << DMA2D_NLR_PL_Pos));
814 }
MODIFY_REG(hrtc->Instance->CR, RTC_CR_WUCKSEL,(uint32_t) WakeUpClock)

◆ LL_DMA2D_SetOutputAlphaInvMode()

__STATIC_INLINE void LL_DMA2D_SetOutputAlphaInvMode ( DMA2D_TypeDef *  DMA2Dx,
uint32_t  AlphaInversionMode 
)

Set DMA2D output alpha inversion mode. OPFCCR AI LL_DMA2D_SetOutputAlphaInvMode.

Parameters
DMA2DxDMA2D Instance
AlphaInversionModeThis parameter can be one of the following values:
  • LL_DMA2D_ALPHA_REGULAR
  • LL_DMA2D_ALPHA_INVERTED
Return values
None

Definition at line 696 of file stm32l4xx_ll_dma2d.h.

697 {
698  MODIFY_REG(DMA2Dx->OPFCCR, DMA2D_OPFCCR_AI, AlphaInversionMode);
699 }
MODIFY_REG(hrtc->Instance->CR, RTC_CR_WUCKSEL,(uint32_t) WakeUpClock)

◆ LL_DMA2D_SetOutputColor()

__STATIC_INLINE void LL_DMA2D_SetOutputColor ( DMA2D_TypeDef *  DMA2Dx,
uint32_t  OutputColor 
)

Set DMA2D output color, expressed on 32 bits ([31:0] bits).

Note
Output color format depends on output color mode, ARGB8888, RGB888, RGB565, ARGB1555 or ARGB4444.
LL_DMA2D_ConfigOutputColor() API may be used instead if colors values formatting with respect to color mode is not done by the user code. OCOLR BLUE LL_DMA2D_SetOutputColor
OCOLR GREEN LL_DMA2D_SetOutputColor
OCOLR RED LL_DMA2D_SetOutputColor
OCOLR ALPHA LL_DMA2D_SetOutputColor
Parameters
DMA2DxDMA2D Instance
OutputColorValue between Min_Data=0 and Max_Data=0xFFFFFFFF
Return values
None

Definition at line 887 of file stm32l4xx_ll_dma2d.h.

888 {
889  MODIFY_REG(DMA2Dx->OCOLR, (DMA2D_OCOLR_BLUE_1 | DMA2D_OCOLR_GREEN_1 | DMA2D_OCOLR_RED_1 | DMA2D_OCOLR_ALPHA_1), \
890  OutputColor);
891 }
MODIFY_REG(hrtc->Instance->CR, RTC_CR_WUCKSEL,(uint32_t) WakeUpClock)

◆ LL_DMA2D_SetOutputColorMode()

__STATIC_INLINE void LL_DMA2D_SetOutputColorMode ( DMA2D_TypeDef *  DMA2Dx,
uint32_t  ColorMode 
)

Set DMA2D output color mode. OPFCCR CM LL_DMA2D_SetOutputColorMode.

Parameters
DMA2DxDMA2D Instance
ColorModeThis parameter can be one of the following values:
  • LL_DMA2D_OUTPUT_MODE_ARGB8888
  • LL_DMA2D_OUTPUT_MODE_RGB888
  • LL_DMA2D_OUTPUT_MODE_RGB565
  • LL_DMA2D_OUTPUT_MODE_ARGB1555
  • LL_DMA2D_OUTPUT_MODE_ARGB4444
Return values
None

Definition at line 639 of file stm32l4xx_ll_dma2d.h.

640 {
641  MODIFY_REG(DMA2Dx->OPFCCR, DMA2D_OPFCCR_CM, ColorMode);
642 }
MODIFY_REG(hrtc->Instance->CR, RTC_CR_WUCKSEL,(uint32_t) WakeUpClock)

◆ LL_DMA2D_SetOutputMemAddr()

__STATIC_INLINE void LL_DMA2D_SetOutputMemAddr ( DMA2D_TypeDef *  DMA2Dx,
uint32_t  OutputMemoryAddress 
)

Set DMA2D output memory address, expressed on 32 bits ([31:0] bits). OMAR MA LL_DMA2D_SetOutputMemAddr.

Parameters
DMA2DxDMA2D Instance
OutputMemoryAddressValue between Min_Data=0 and Max_Data=0xFFFFFFFF
Return values
None

Definition at line 857 of file stm32l4xx_ll_dma2d.h.

858 {
859  LL_DMA2D_WriteReg(DMA2Dx, OMAR, OutputMemoryAddress);
860 }

◆ LL_DMA2D_SetOutputRBSwapMode()

__STATIC_INLINE void LL_DMA2D_SetOutputRBSwapMode ( DMA2D_TypeDef *  DMA2Dx,
uint32_t  RBSwapMode 
)

Set DMA2D output Red Blue swap mode. OPFCCR RBS LL_DMA2D_SetOutputRBSwapMode.

Parameters
DMA2DxDMA2D Instance
RBSwapModeThis parameter can be one of the following values:
  • LL_DMA2D_RB_MODE_REGULAR
  • LL_DMA2D_RB_MODE_SWAP
Return values
None

Definition at line 669 of file stm32l4xx_ll_dma2d.h.

670 {
671  MODIFY_REG(DMA2Dx->OPFCCR, DMA2D_OPFCCR_RBS, RBSwapMode);
672 }
MODIFY_REG(hrtc->Instance->CR, RTC_CR_WUCKSEL,(uint32_t) WakeUpClock)

◆ LL_DMA2D_SetOutputSwapMode()

__STATIC_INLINE void LL_DMA2D_SetOutputSwapMode ( DMA2D_TypeDef *  DMA2Dx,
uint32_t  OutputSwapMode 
)

Set DMA2D output swap mode. OPFCCR SB LL_DMA2D_SetOutputSwapMode.

Parameters
DMA2DxDMA2D Instance
OutputSwapModeThis parameter can be one of the following values:
  • LL_DMA2D_SWAP_MODE_REGULAR
  • LL_DMA2D_SWAP_MODE_TWO_BY_TWO
Return values
None

Definition at line 725 of file stm32l4xx_ll_dma2d.h.

726 {
727  MODIFY_REG(DMA2Dx->OPFCCR, DMA2D_OPFCCR_SB, OutputSwapMode);
728 }
MODIFY_REG(hrtc->Instance->CR, RTC_CR_WUCKSEL,(uint32_t) WakeUpClock)

◆ LL_DMA2D_Start()

__STATIC_INLINE void LL_DMA2D_Start ( DMA2D_TypeDef *  DMA2Dx)

Start a DMA2D transfer. CR START LL_DMA2D_Start.

Parameters
DMA2DxDMA2D Instance
Return values
None

Definition at line 510 of file stm32l4xx_ll_dma2d.h.

511 {
512  SET_BIT(DMA2Dx->CR, DMA2D_CR_START);
513 }

◆ LL_DMA2D_Suspend()

__STATIC_INLINE void LL_DMA2D_Suspend ( DMA2D_TypeDef *  DMA2Dx)

Suspend DMA2D transfer.

Note
This API can be used to suspend automatic foreground or background CLUT loading. CR SUSP LL_DMA2D_Suspend
Parameters
DMA2DxDMA2D Instance
Return values
None

Definition at line 533 of file stm32l4xx_ll_dma2d.h.

534 {
535  MODIFY_REG(DMA2Dx->CR, DMA2D_CR_SUSP | DMA2D_CR_START, DMA2D_CR_SUSP);
536 }
MODIFY_REG(hrtc->Instance->CR, RTC_CR_WUCKSEL,(uint32_t) WakeUpClock)