STM32H735xx HAL User Manual
Functions
Initialization and de-initialization functions
MDMA Exported Functions

Initialization and de-initialization functions. More...

Functions

HAL_StatusTypeDef HAL_MDMA_Init (MDMA_HandleTypeDef *hmdma)
 Initializes the MDMA according to the specified parameters in the MDMA_InitTypeDef and create the associated handle.
HAL_StatusTypeDef HAL_MDMA_DeInit (MDMA_HandleTypeDef *hmdma)
 DeInitializes the MDMA peripheral.
HAL_StatusTypeDef HAL_MDMA_ConfigPostRequestMask (MDMA_HandleTypeDef *hmdma, uint32_t MaskAddress, uint32_t MaskData)
 Config the Post request Mask address and Mask data.
HAL_StatusTypeDef HAL_MDMA_RegisterCallback (MDMA_HandleTypeDef *hmdma, HAL_MDMA_CallbackIDTypeDef CallbackID, void(*pCallback)(MDMA_HandleTypeDef *_hmdma))
 Register callbacks.
HAL_StatusTypeDef HAL_MDMA_UnRegisterCallback (MDMA_HandleTypeDef *hmdma, HAL_MDMA_CallbackIDTypeDef CallbackID)
 UnRegister callbacks.

Detailed Description

Initialization and de-initialization functions.

 ===============================================================================
             ##### Initialization and de-initialization functions  #####
 ===============================================================================
    [..]
    This section provides functions allowing to :
      Initialize and de-initialize the MDMA channel.
      Register and Unregister MDMA callbacks
    [..]
    The HAL_MDMA_Init() function follows the MDMA channel configuration procedures as described in
    reference manual.
    The HAL_MDMA_DeInit function allows to deinitialize the MDMA channel.
    HAL_MDMA_RegisterCallback and  HAL_MDMA_UnRegisterCallback functions allows
    respectevely to register/unregister an MDMA callback function.


Function Documentation

HAL_StatusTypeDef HAL_MDMA_ConfigPostRequestMask ( MDMA_HandleTypeDef hmdma,
uint32_t  MaskAddress,
uint32_t  MaskData 
)

Config the Post request Mask address and Mask data.

Parameters:
hmdma: pointer to a MDMA_HandleTypeDef structure that contains the configuration information for the specified MDMA Channel.
MaskAddress,:specifies the address to be updated (written) with MaskData after a request is served.
MaskData,:specifies the value to be written to MaskAddress after a request is served. MaskAddress and MaskData could be used to automatically clear a peripheral flag when the request is served.
Return values:
HALstatus

Definition at line 347 of file stm32h7xx_hal_mdma.c.

References HAL_MDMA_STATE_READY, __MDMA_HandleTypeDef::Instance, and __MDMA_HandleTypeDef::State.

HAL_StatusTypeDef HAL_MDMA_DeInit ( MDMA_HandleTypeDef hmdma)

DeInitializes the MDMA peripheral.

Parameters:
hmdma,:pointer to a MDMA_HandleTypeDef structure that contains the configuration information for the specified MDMA Channel.
Return values:
HALstatus

Definition at line 294 of file stm32h7xx_hal_mdma.c.

References __HAL_MDMA_CLEAR_FLAG, __HAL_MDMA_DISABLE, __MDMA_HandleTypeDef::ErrorCode, __MDMA_HandleTypeDef::FirstLinkedListNodeAddress, HAL_MDMA_ERROR_NONE, HAL_MDMA_STATE_RESET, __MDMA_HandleTypeDef::Instance, __MDMA_HandleTypeDef::LastLinkedListNodeAddress, __MDMA_HandleTypeDef::LinkedListNodeCounter, MDMA_FLAG_BFTC, MDMA_FLAG_BRT, MDMA_FLAG_BT, MDMA_FLAG_CTC, MDMA_FLAG_TE, and __MDMA_HandleTypeDef::State.

HAL_StatusTypeDef HAL_MDMA_Init ( MDMA_HandleTypeDef hmdma)

Initializes the MDMA according to the specified parameters in the MDMA_InitTypeDef and create the associated handle.

Parameters:
hmdma,:Pointer to a MDMA_HandleTypeDef structure that contains the configuration information for the specified MDMA Channel.
Return values:
HALstatus

Definition at line 218 of file stm32h7xx_hal_mdma.c.

References __HAL_MDMA_DISABLE, assert_param, MDMA_InitTypeDef::BufferTransferLength, MDMA_InitTypeDef::DataAlignment, MDMA_InitTypeDef::DestBlockAddressOffset, MDMA_InitTypeDef::DestBurst, MDMA_InitTypeDef::DestDataSize, MDMA_InitTypeDef::DestinationInc, MDMA_InitTypeDef::Endianness, __MDMA_HandleTypeDef::ErrorCode, __MDMA_HandleTypeDef::FirstLinkedListNodeAddress, HAL_GetTick(), HAL_MDMA_ERROR_NONE, HAL_MDMA_ERROR_TIMEOUT, HAL_MDMA_STATE_BUSY, HAL_MDMA_STATE_ERROR, HAL_MDMA_STATE_READY, HAL_TIMEOUT_MDMA_ABORT, __MDMA_HandleTypeDef::Init, __MDMA_HandleTypeDef::Instance, IS_MDMA_BLOCK_ADDR_OFFSET, IS_MDMA_BUFFER_TRANSFER_LENGTH, IS_MDMA_DATA_ALIGNMENT, IS_MDMA_DESTINATION_BURST, IS_MDMA_DESTINATION_DATASIZE, IS_MDMA_DESTINATION_INC, IS_MDMA_ENDIANNESS_MODE, IS_MDMA_PRIORITY, IS_MDMA_REQUEST, IS_MDMA_SOURCE_BURST, IS_MDMA_SOURCE_DATASIZE, IS_MDMA_SOURCE_INC, IS_MDMA_TRANSFER_TRIGGER_MODE, __MDMA_HandleTypeDef::LastLinkedListNodeAddress, __MDMA_HandleTypeDef::LinkedListNodeCounter, MDMA_Init(), MDMA_InitTypeDef::Priority, MDMA_InitTypeDef::Request, MDMA_InitTypeDef::SourceBlockAddressOffset, MDMA_InitTypeDef::SourceBurst, MDMA_InitTypeDef::SourceDataSize, MDMA_InitTypeDef::SourceInc, __MDMA_HandleTypeDef::State, and MDMA_InitTypeDef::TransferTriggerMode.

HAL_StatusTypeDef HAL_MDMA_RegisterCallback ( MDMA_HandleTypeDef hmdma,
HAL_MDMA_CallbackIDTypeDef  CallbackID,
void(*)(MDMA_HandleTypeDef *_hmdma)  pCallback 
)

Register callbacks.

Parameters:
hmdma,:pointer to a MDMA_HandleTypeDef structure that contains the configuration information for the specified MDMA Channel.
CallbackID,:User Callback identifier
pCallback,:pointer to callbacsk function.
Return values:
HALstatus

Definition at line 409 of file stm32h7xx_hal_mdma.c.

References HAL_MDMA_STATE_READY, HAL_MDMA_XFER_ABORT_CB_ID, HAL_MDMA_XFER_BLOCKCPLT_CB_ID, HAL_MDMA_XFER_BUFFERCPLT_CB_ID, HAL_MDMA_XFER_CPLT_CB_ID, HAL_MDMA_XFER_ERROR_CB_ID, HAL_MDMA_XFER_REPBLOCKCPLT_CB_ID, __MDMA_HandleTypeDef::State, __MDMA_HandleTypeDef::XferAbortCallback, __MDMA_HandleTypeDef::XferBlockCpltCallback, __MDMA_HandleTypeDef::XferBufferCpltCallback, __MDMA_HandleTypeDef::XferCpltCallback, __MDMA_HandleTypeDef::XferErrorCallback, and __MDMA_HandleTypeDef::XferRepeatBlockCpltCallback.

HAL_StatusTypeDef HAL_MDMA_UnRegisterCallback ( MDMA_HandleTypeDef hmdma,
HAL_MDMA_CallbackIDTypeDef  CallbackID 
)

UnRegister callbacks.

Parameters:
hmdma,:pointer to a MDMA_HandleTypeDef structure that contains the configuration information for the specified MDMA Channel.
CallbackID,:User Callback identifier a HAL_MDMA_CallbackIDTypeDef ENUM as parameter.
Return values:
HALstatus

Definition at line 474 of file stm32h7xx_hal_mdma.c.

References HAL_MDMA_STATE_READY, HAL_MDMA_XFER_ABORT_CB_ID, HAL_MDMA_XFER_ALL_CB_ID, HAL_MDMA_XFER_BLOCKCPLT_CB_ID, HAL_MDMA_XFER_BUFFERCPLT_CB_ID, HAL_MDMA_XFER_CPLT_CB_ID, HAL_MDMA_XFER_ERROR_CB_ID, HAL_MDMA_XFER_REPBLOCKCPLT_CB_ID, __MDMA_HandleTypeDef::State, __MDMA_HandleTypeDef::XferAbortCallback, __MDMA_HandleTypeDef::XferBlockCpltCallback, __MDMA_HandleTypeDef::XferBufferCpltCallback, __MDMA_HandleTypeDef::XferCpltCallback, __MDMA_HandleTypeDef::XferErrorCallback, and __MDMA_HandleTypeDef::XferRepeatBlockCpltCallback.