HAL DMA2D Functions

Initialization and de-initialization functions

group DMA2D_Exported_Functions_Group1

This subsection provides a set of functions allowing to initialize and deinitialize the DMA2D peripheral:

  • HAL_DMA2D_Init() to initialize the selected HAL DMA2D handle and associate an DMA2D peripheral instance

  • HAL_DMA2D_DeInit() to de-initialize the given HAL DMA2D instance by aborting any ongoing process and resetting the state machine

Functions

hal_status_t HAL_DMA2D_Init ( hal_dma2d_handle_t * hdma2d , hal_dma2d_t instance )

Initialize the selected HAL DMA2D handle and associate a DMA2D peripheral instance.

Parameters :
Return values :
  • HAL_INVALID_PARAM – Invalid parameter when hdma2d pointer is NULL

  • HAL_OK – DMA2D instance has been correctly Initialized

void HAL_DMA2D_DeInit ( hal_dma2d_handle_t * hdma2d )

De-initialize the given HAL DMA2D instance by aborting any ongoing process, and resetting the state machine.

Parameters :

hdma2d – Pointer to a hal_dma2d_handle_t structure

Configuration functions

group DMA2D_Exported_Functions_Group2

This subsection provides a set of global configuration APIs allowing to configure the DMA2D peripheral transfer mode.

Functions

hal_status_t HAL_DMA2D_SetConfigMemCopy ( hal_dma2d_handle_t * hdma2d , const hal_dma2d_mem_copy_config_t * p_config )

Configure the DMA2D in memory-to-memory transfer mode according to the user parameters.

Parameters :
Return values :
  • HAL_INVALID_PARAM – Invalid parameter when p_config pointer is NULL

  • HAL_OK – DMA2D instance has been correctly configured

hal_status_t HAL_DMA2D_SetConfigMemCopyPFC ( hal_dma2d_handle_t * hdma2d , const hal_dma2d_mem_copy_config_t * p_config )

Configure the DMA2D in memory-to-memory with pixel format conversion transfer mode according to the user parameters.

Parameters :
Return values :
  • HAL_INVALID_PARAM – Invalid parameter when p_config pointer is NULL

  • HAL_OK – DMA2D instance has been correctly configured

hal_status_t HAL_DMA2D_SetConfigMemFill ( hal_dma2d_handle_t * hdma2d , const hal_dma2d_mem_fill_config_t * p_config )

Configure the DMA2D in register-to-memory transfer mode according to the user parameters.

Parameters :
Return values :
  • HAL_INVALID_PARAM – Invalid parameter when p_config pointer is NULL

  • HAL_OK – DMA2D instance has been correctly configured

hal_status_t HAL_DMA2D_SetConfigBlending ( hal_dma2d_handle_t * hdma2d , const hal_dma2d_blending_config_t * p_config )

Configure the DMA2D in transfer with blending mode according to the user parameters.

Parameters :
Return values :
  • HAL_INVALID_PARAM – Invalid parameter when p_config pointer is NULL

  • HAL_OK – DMA2D instance has been correctly configured

hal_status_t HAL_DMA2D_SetConfigBlendingFixFGColor ( hal_dma2d_handle_t * hdma2d , const hal_dma2d_blending_fixed_color_config_t * p_config )

Configure the DMA2D in transfer with blending with fixed foreground color mode according to the user parameters.

Parameters :
Return values :
  • HAL_INVALID_PARAM – Invalid parameter when p_config pointer is NULL

  • HAL_OK – DMA2D instance has been correctly configured

hal_status_t HAL_DMA2D_SetConfigBlendingFixBGColor ( hal_dma2d_handle_t * hdma2d , const hal_dma2d_blending_fixed_color_config_t * p_config )

Configure the DMA2D in transfer with blending with fixed background color mode according to the user parameters.

Parameters :
Return values :
  • HAL_INVALID_PARAM – Invalid parameter when p_config pointer is NULL

  • HAL_OK – DMA2D instance has been correctly configured

Process management functions

group DMA2D_Exported_Functions_Group3

This subsection provides a set of process management APIs allowing to start, stop, suspend, resume and abort a DMA2D transfer or CLUT Loading

Functions

hal_status_t HAL_DMA2D_Start ( hal_dma2d_handle_t * hdma2d )

Start the DMA2D transfer.

Parameters :

hdma2d – Pointer to a hal_dma2d_handle_t structure that contains the configuration information for the DMA2D

Return values :

HAL_OK – DMA2D data transfer is successfully started

hal_status_t HAL_DMA2D_Start_IT ( hal_dma2d_handle_t * hdma2d )

Start the DMA2D transfer with interrupt enabled.

Parameters :

hdma2d – Pointer to a hal_dma2d_handle_t structure that contains the configuration information for the DMA2D

Return values :

HAL_OK – DMA2D data transfer is successfully started

hal_status_t HAL_DMA2D_Suspend ( hal_dma2d_handle_t * hdma2d )

Suspend the ongoing DMA2D transfer.

Parameters :

hdma2d – Pointer to a hal_dma2d_handle_t structure that contains the configuration information for the DMA2D

Return values :
  • HAL_OK – DMA2D transfer is successfully suspended

  • HAL_ERROR – DMA2D transfer could not suspend or transfer already completed

hal_status_t HAL_DMA2D_Resume ( hal_dma2d_handle_t * hdma2d )

Resume instantantly any suspended DMA2D transfer or CLUT loading.

Parameters :

hdma2d – Pointer to a hal_dma2d_handle_t structure that contains the configuration information for the DMA2D

Return values :
  • HAL_OK – DMA2D transfer is successfully resumed

  • HAL_ERROR – DMA2D transfer not resumed

hal_status_t HAL_DMA2D_Abort ( hal_dma2d_handle_t * hdma2d )

Abort an ongoing DMA2D transfer.

Parameters :

hdma2d – Pointer to a hal_dma2d_handle_t structure that contains the configuration information for the DMA2D

Return values :
  • HAL_ERROR – DMA2D not aborted

  • HAL_OK – DMA2D data transfer is successfully aborted

hal_status_t HAL_DMA2D_PollForTransfer ( hal_dma2d_handle_t * hdma2d , uint32_t timeout_msec )

Polling for DMA2D transfer complete.

Parameters :
  • hdma2d – Pointer to a hal_dma2d_handle_t structure that contains the configuration information for the DMA2D

  • timeout_msec – Specifies the user timeout in milli-second, or set to HAL_MAX_DELAY if you would like to repeat until transfer complete or, transfer error or configuration error

Return values :
  • HAL_TIMEOUT – User timeout

  • HAL_ERROR – DMA2D error

  • HAL_OK – Polling for transfer is successfully executed

hal_status_t HAL_DMA2D_StartCLUTLoad ( hal_dma2d_handle_t * hdma2d , const hal_dma2d_clut_config_t * p_clut_config , hal_dma2d_input_t input )

Start the DMA2D CLUT loading.

Parameters :
  • hdma2d – Pointer to a hal_dma2d_handle_t structure that contains the configuration information for the DMA2D

  • p_clut_config – Pointer to a hal_dma2d_clut_config_t structure that contains the configuration information for the color look up table

  • input – Input source. This parameter can be one of the following values: HAL_DMA2D_INPUT_BG or HAL_DMA2D_INPUT_FG

Return values :

HAL_OK – DMA2D CLUT loading is successfully started

hal_status_t HAL_DMA2D_StartCLUTLoad_IT ( hal_dma2d_handle_t * hdma2d , const hal_dma2d_clut_config_t * p_clut_config , hal_dma2d_input_t input )

Start the DMA2D CLUT loading with interrupt enabled.

Parameters :
  • hdma2d – Pointer to a hal_dma2d_handle_t structure that contains the configuration information for the DMA2D

  • p_clut_config – Pointer to a hal_dma2d_clut_config_t structure that contains the configuration information for the color look up table

  • input – Input source. This parameter can be one of the following values: HAL_DMA2D_INPUT_BG or HAL_DMA2D_INPUT_FG

Return values :

HAL_OK – DMA2D CLUT loading is successfully started

hal_status_t HAL_DMA2D_SuspendCLUTLoad ( hal_dma2d_handle_t * hdma2d , hal_dma2d_input_t input )

Suspend an ongoing DMA2D CLUT loading.

Parameters :
  • hdma2d – Pointer to a hal_dma2d_handle_t structure that contains the configuration information for the DMA2D

  • input – Input source. This parameter can be one of the following values: HAL_DMA2D_INPUT_BG or HAL_DMA2D_INPUT_FG

Return values :
  • HAL_OK – DMA2D CLUT loading is successfully suspended

  • HAL_ERROR – DMA2D CLUT Loading could not suspended

hal_status_t HAL_DMA2D_ResumeCLUTLoad ( hal_dma2d_handle_t * hdma2d , hal_dma2d_input_t input )

Resume a suspended DMA2D CLUT loading.

Parameters :
  • hdma2d – Pointer to a hal_dma2d_handle_t structure that contains the configuration information for the DMA2D

  • input – Input source. This parameter can be one of the following values: HAL_DMA2D_INPUT_BG or HAL_DMA2D_INPUT_FG

Return values :
  • HAL_OK – DMA2D CLUT loading is successfully resumed

  • HAL_ERROR – DMA2D CLUT loading is could not resume

hal_status_t HAL_DMA2D_AbortCLUTLoad ( hal_dma2d_handle_t * hdma2d , hal_dma2d_input_t input )

Abort an ongoing DMA2D CLUT loading.

Parameters :
  • hdma2d – Pointer to a hal_dma2d_handle_t structure that contains the configuration information for the DMA2D

  • input – Input source. This parameter can be one of the following values: HAL_DMA2D_INPUT_BG or HAL_DMA2D_INPUT_FG

Return values :
  • HAL_ERROR – DMA2D not aborted

  • HAL_BUSY – DMA2D state is abort when calling this API

  • HAL_OK – DMA2D CLUT loading is successfully aborted

hal_status_t HAL_DMA2D_PollForCLUTLoad ( hal_dma2d_handle_t * hdma2d , hal_dma2d_input_t input , uint32_t timeout_msec )

Polling for DMA2D CLUT loading complete.

Parameters :
  • hdma2d – Pointer to a hal_dma2d_handle_t structure that contains the configuration information for the DMA2D

  • input – Input source. This parameter can be one of the following values: HAL_DMA2D_INPUT_BG or HAL_DMA2D_INPUT_FG

  • timeout_msec – Specifies the user timeout in milli-second, or set to HAL_MAX_DELAY if you would like to repeat until transfer complete or, transfer error or configuration error

Return values :
  • HAL_TIMEOUT – User timeout

  • HAL_ERROR – DMA2D error

  • HAL_OK – Polling for the CLUT loading is successfully executed

IRQ Handlers

group DMA2D_Exported_Functions_Group4

This subsection provides the IRQ handler API allowing to handle DMA2D transfer or CLUT Loading interruptions

Note : User can set the USE_HAL_DMA2D_CLUT_IRQ define in the hal_conf.h to handle all interrupts, or set the USE_HAL_DMA2D_CLUT_IRQ define to 0 when user needs to handle only the transfer interrupts (no CLUT usage within the application).

Functions

void HAL_DMA2D_IRQHandler ( hal_dma2d_handle_t * hdma2d )

Handle the DMA2D interrupt request.

Parameters :

hdma2d – Pointer to a hal_dma2d_handle_t structure

Enable/Disable and Set/Get API - Optional features functions

group DMA2D_Exported_Functions_Group5

This subsection provides a set of optional feature management APIs.

Functions

hal_status_t HAL_DMA2D_EnableOutputAlphaInversion ( hal_dma2d_handle_t * hdma2d )

Enable the output alpha inversion.

Parameters :

hdma2d – Pointer to a hal_dma2d_handle_t structure

Return values :

HAL_OK – Output alpha inversion successfully enabled

hal_status_t HAL_DMA2D_DisableOutputAlphaInversion ( hal_dma2d_handle_t * hdma2d )

Disable the output alpha inversion.

Parameters :

hdma2d – Pointer to a hal_dma2d_handle_t structure

Return values :

HAL_OK – Output alpha inversion successfully disable

hal_dma2d_alpha_inversion_status_t HAL_DMA2D_IsEnabledOutputAlphaInversion ( const hal_dma2d_handle_t * hdma2d )

Check if the output alpha inversion is enabled or disabled.

Parameters :

hdma2d – Pointer to a hal_dma2d_handle_t structure

Return values :
  • HAL_DMA2D_ALPHA_INVERSION_DISABLED – Output alpha inversion is disabled

  • HAL_DMA2D_ALPHA_INVERSION_ENABLED – Output alpha inversion is enabled

hal_status_t HAL_DMA2D_EnableInputAlphaInversion ( hal_dma2d_handle_t * hdma2d , hal_dma2d_input_t input )

Enable the input alpha inversion.

Parameters :
  • hdma2d – Pointer to a hal_dma2d_handle_t structure

  • input – Input source. This parameter can be one of the following values: HAL_DMA2D_INPUT_BG or HAL_DMA2D_INPUT_FG

Return values :

HAL_OK – Iuput alpha inversion successfully enabled

hal_status_t HAL_DMA2D_DisableInputAlphaInversion ( hal_dma2d_handle_t * hdma2d , hal_dma2d_input_t input )

Disable the input alpha inversion.

Parameters :
  • hdma2d – Pointer to a hal_dma2d_handle_t structure

  • input – Input source. This parameter can be one of the following values: HAL_DMA2D_INPUT_BG or HAL_DMA2D_INPUT_FG

Return values :

HAL_OK – Input alpha inversion successfully disable

hal_dma2d_alpha_inversion_status_t HAL_DMA2D_IsEnabledInputAlphaInversion ( const hal_dma2d_handle_t * hdma2d , hal_dma2d_input_t input )

Check if the input alpha inversion is enabled or disabled.

Parameters :
  • hdma2d – Pointer to a hal_dma2d_handle_t structure

  • input – Input source. This parameter can be one of the following values: HAL_DMA2D_INPUT_BG or HAL_DMA2D_INPUT_FG

Return values :
  • HAL_DMA2D_ALPHA_INVERSION_DISABLED – Input alpha inversion is disabled

  • HAL_DMA2D_ALPHA_INVERSION_ENABLED – Input alpha inversion is enabled

hal_status_t HAL_DMA2D_SetLineOffsetMode ( hal_dma2d_handle_t * hdma2d , hal_dma2d_line_offset_mode_t line_offset_mode )

Set the line offset mode.

Parameters :
Return values :

HAL_OK – Line offset mode has been correctly configured

hal_dma2d_line_offset_mode_t HAL_DMA2D_GetLineOffsetMode ( const hal_dma2d_handle_t * hdma2d )

Get the line offset mode.

Parameters :

hdma2d – Pointer to a hal_dma2d_handle_t structure

Return values :
  • HAL_DMA2D_LINE_OFFSET_PIXELS – Line offsets expressed in pixels

  • HAL_DMA2D_LINE_OFFSET_BYTES – Line offsets expressed in bytes

hal_status_t HAL_DMA2D_EnableOutputByteSwap ( hal_dma2d_handle_t * hdma2d )

Enable the output byte swap.

Parameters :

hdma2d – Pointer to a hal_dma2d_handle_t structure

Return values :

HAL_OK – output byte swap successfully enabled

hal_status_t HAL_DMA2D_DisableOutputByteSwap ( hal_dma2d_handle_t * hdma2d )

Disable the output byte swap.

Parameters :

hdma2d – Pointer to a hal_dma2d_handle_t structure

Return values :

HAL_OK – output byte swap successfully disable

hal_dma2d_byte_swap_status_t HAL_DMA2D_IsEnabledOutputByteSwap ( const hal_dma2d_handle_t * hdma2d )

Check if the output byte swap is enabled or disabled.

Parameters :

hdma2d – Pointer to a hal_dma2d_handle_t structure

Return values :
  • HAL_DMA2D_BYTE_SWAP_DISABLED – Bytes in regular order in output FIFO

  • HAL_DMA2D_BYTE_SWAP_ENABLED – Bytes are swapped two by two in output FIFO

hal_status_t HAL_DMA2D_EnableWaterMark ( hal_dma2d_handle_t * hdma2d , uint32_t line )

Enable and configure the line watermark interrupt.

Parameters :
  • hdma2d – Pointer to a hal_dma2d_handle_t structure

  • line – Line watermark value between Min_Data=0 and Max_Data=0xFFFF

Return values :

HAL_OK – Line watermark interrupt successfully enabled and configured

hal_status_t HAL_DMA2D_DisableWaterMark ( hal_dma2d_handle_t * hdma2d )

Disable line watermark interrupt.

Parameters :

hdma2d – Pointer to a hal_dma2d_handle_t structure

Return values :

HAL_OK – Line watermark interrupt successfully disable

hal_dma2d_watermark_status_t HAL_DMA2D_IsEnabledWaterMark ( const hal_dma2d_handle_t * hdma2d )

Check if the line watermark interrupt is enabled or disabled.

Parameters :

hdma2d – Pointer to a hal_dma2d_handle_t structure

Return values :
  • HAL_DMA2D_WATER_MARK_DISABLED – Transfer watermark interrupt is Disabled

  • HAL_DMA2D_WATER_MARK_ENABLED – Transfer watermark interrupt is Enabled

uint32_t HAL_DMA2D_GetWaterMarkLine ( const hal_dma2d_handle_t * hdma2d )

Get the line watermark interrupt, expressed on 16 bits ([15:0] bits)

Parameters :

hdma2d – Pointer to a hal_dma2d_handle_t structure

Return values :

uint32_t – Line watermark value between Min_Data=0 and Max_Data=0xFFFF

hal_status_t HAL_DMA2D_EnableDeadTime ( hal_dma2d_handle_t * hdma2d )

Enable the dead time.

Parameters :

hdma2d – Pointer to a hal_dma2d_handle_t structure

Return values :

HAL_OK – Dead Time successfully enabled

hal_status_t HAL_DMA2D_DisableDeadTime ( hal_dma2d_handle_t * hdma2d )

Disable the dead time.

Parameters :

hdma2d – Pointer to a hal_dma2d_handle_t structure

Return values :

HAL_OK – Dead Time successfully disable

hal_dma2d_dead_time_status_t HAL_DMA2D_IsEnabledDeadTime ( const hal_dma2d_handle_t * hdma2d )

Check if the dead time is enabled or disabled.

Parameters :

hdma2d – Pointer to a hal_dma2d_handle_t structure

Return values :
  • HAL_DMA2D_DEAD_TIME_DISABLED – The dead time between two consecutive accesses on the AHB master port is disabled

  • HAL_DMA2D_DEAD_TIME_ENABLED – The dead time between two consecutive accesses on the AHB master port is enabled

hal_status_t HAL_DMA2D_SetConfigDeadTime ( hal_dma2d_handle_t * hdma2d , uint8_t dead_time_cycle )

Set the minimum clock cycle dead time value between two consecutive accesses on the AHB master port.

Parameters :
  • hdma2d – Pointer to a hal_dma2d_handle_t structure

  • dead_time_cycle – Clock cycle dead time value between two consecutive accesses on the AHB master port

Return values :

HAL_OK – Dead time has been correctly configured

uint8_t HAL_DMA2D_GetConfigDeadTime ( const hal_dma2d_handle_t * hdma2d )

Get the clock cycle dead time value.

Parameters :

hdma2d – Pointer to a hal_dma2d_handle_t structure

Return values :

uint8_t – Clock cycle dead time value

hal_status_t HAL_DMA2D_SetCLUTColorIndex ( hal_dma2d_handle_t * hdma2d , hal_dma2d_input_t input , uint32_t color_index , uint32_t color )

Manually program a CLUT memory index, it can be RGB888 or ARGB8888 format.

Warning

This API is intended to update one color of th CLUT. The given color value must respect the given CLUT color format RGB888 or ARGB8888 provided by the API HAL_DMA2D_StartCLUTLoad or HAL_DMA2D_StartCLUTLoad_IT

Parameters :
  • hdma2d – Pointer to a hal_dma2d_handle_t structure that contains the configuration information for the DMA2D

  • input – Input source. This parameter can be one of the following values: HAL_DMA2D_INPUT_BG or HAL_DMA2D_INPUT_FG

  • color_index – Index to be loaded

  • color – color to be loaded

Return values :

HAL_OK – CLUT value manually loaded successfully

uint32_t HAL_DMA2D_GetCLUTColorIndex ( const hal_dma2d_handle_t * hdma2d , hal_dma2d_input_t input , uint32_t color_index )

Read a CLUT memory index. It can be a 24 or 32 bits format.

Note

The return color follows the given CLUT color format RGB888 or ARGB8888 provided by the API HAL_DMA2D_StartCLUTLoad or HAL_DMA2D_StartCLUTLoad_IT

Parameters :
  • hdma2d – Pointer to a hal_dma2d_handle_t structure that contains the configuration information for the DMA2D

  • input – Input source. This parameter can be one of the following values: HAL_DMA2D_INPUT_BG or HAL_DMA2D_INPUT_FG

  • color_index – Index of the color to read

Return values :

uint32_t – This function returns the color corresponding to the CLUT given color index

Callback functions

group DMA2D_Exported_Functions_Group6

This subsection provides a set of functions allowing to register the DMA2D process and error callbacks:

The following are the default process and errors weak callbacks:

Functions

hal_status_t HAL_DMA2D_RegisterXferCpltCallback ( hal_dma2d_handle_t * hdma2d , hal_dma2d_cb_t p_callback )

Register the DMA2D transfer complete callback.

Parameters :
  • hdma2d – Pointer to DMA2D handle

  • p_callback – Specifies the transfer complete callback

Return values :
  • HAL_INVALID_PARAM – Invalid parameter return when p_callback pointer is NULL

  • HAL_OK – DMA2D transfer complete callback is successfully registered

hal_status_t HAL_DMA2D_RegisterErrorCallback ( hal_dma2d_handle_t * hdma2d , hal_dma2d_cb_t p_callback )

Register the DMA2D error callback.

Parameters :
  • hdma2d – Pointer to DMA2D handle

  • p_callback – Specifies the error callback

Return values :
  • HAL_INVALID_PARAM – Invalid parameter return when p_callback pointer is NULL

  • HAL_OK – DMA2D error callback is successfully registered

hal_status_t HAL_DMA2D_RegisterWaterMarkCallback ( hal_dma2d_handle_t * hdma2d , hal_dma2d_cb_t p_callback )

Register the DMA2D line watermark transfer complete callback.

Parameters :
  • hdma2d – Pointer to DMA2D handle

  • p_callback – Specifies the line watermarked transfer complete callback

Return values :
  • HAL_INVALID_PARAM – Invalid parameter return when p_callback pointer is NULL

  • HAL_OK – DMA2D the line watermarked transfer callback is successfully registered

hal_status_t HAL_DMA2D_RegisterCLUTLoadingCpltCallback ( hal_dma2d_handle_t * hdma2d , hal_dma2d_cb_t p_callback )

Register the DMA2D CLUT loading complete callback.

Parameters :
  • hdma2d – Pointer to DMA2D handle

  • p_callback – Specifies the CLUT loading complete callback

Return values :
  • HAL_INVALID_PARAM – Invalid parameter return when p_callback pointer is NULL

  • HAL_OK – DMA2D CLUT loading complete callback is successfully registered

void HAL_DMA2D_XferCpltCallback ( hal_dma2d_handle_t * hdma2d )

DMA2D transfer complete default callback.

Parameters :

hdma2d – Pointer to DMA2D handle

void HAL_DMA2D_ErrorCallback ( hal_dma2d_handle_t * hdma2d )

DMA2D error default callback.

Parameters :

hdma2d – Pointer to DMA2D handle

void HAL_DMA2D_WaterMarkCallback ( hal_dma2d_handle_t * hdma2d )

DMA2D line watermark default callback.

Parameters :

hdma2d – Pointer to DMA2D handle

void HAL_DMA2D_CLUTLoadingCpltCallback ( hal_dma2d_handle_t * hdma2d )

DMA2D CLUT loading complete default callback.

Parameters :

hdma2d – Pointer to DMA2D handle

Peripheral State and Error functions

group DMA2D_Exported_Functions_Group7

This subsection provides a set of functions allowing to retrieve peripheral state and last process errors.

Functions

hal_dma2d_state_t HAL_DMA2D_GetState ( const hal_dma2d_handle_t * hdma2d )

Get the DMA2D current state.

Parameters :

hdma2d – Pointer to DMA2D handle

Return values :

DMA2D – state, can be one of hal_dma2d_state_t enumeration values

uint32_t HAL_DMA2D_GetLastErrorCodes ( const hal_dma2d_handle_t * hdma2d )

Get last error codes.

Parameters :

hdma2d – Pointer to DMA2D handle

Return values :

Last – error codes

Set/Get user data functions

group DMA2D_Exported_Functions_Group8

This subsection provides functions allowing to Set and Get user data

Functions

void HAL_DMA2D_SetUserData ( hal_dma2d_handle_t * hdma2d , const void * p_user_data )

Store the user data into the DMA2D handle.

Parameters :
  • hdma2d – Pointer to DMA2D handle

  • p_user_data – Pointer to the user data

const void * HAL_DMA2D_GetUserData ( const hal_dma2d_handle_t * hdma2d )

Retrieve the user data from the DMA2D handle.

Parameters :

hdma2d – Pointer to DMA2D handle

Return values :

Pointer – to the user data