Peripheral State and Errors functions.
More...
Peripheral State and Errors functions.
===============================================================================
##### Peripheral State and Errors functions #####
===============================================================================
[..]
This subsection provides functions allowing to
(+) Check the DMA state
(+) Get error code
◆ hal_dma_get_error()
Return the DMA error code.
- Parameters
-
[in] | p_dma | Pointer to a DMA handle which contains the configuration information for the specified DMA Channel. |
- Returns
- DMA Error Code
◆ hal_dma_get_state()
Return the DMA hande state.
- Parameters
-
[in] | p_dma | Pointer to a DMA handle which contains the configuration information for the specified DMA Channel. |
- Return values
-
◆ hal_dma_resume_channel()
void hal_dma_resume_channel |
( |
dma_handle_t * |
p_dma, |
|
|
uint32_t |
channel |
|
) |
| |
Resume the register of the specified DMA channel.
- Parameters
-
[in] | p_dma | Pointer to a DMA handle which contains the configuration information for the specified DMA module. |
[in] | channel | dma channel,can be one of the values of dma_channel_t. |
- Return values
-
◆ hal_dma_resume_reg()
Restore some registers related to DMA configuration after sleep. This function must be used in conjunction with the hal_dma_resume_reg().
- Parameters
-
[in] | p_dma | Pointer to a DMA handle which contains the configuration information for the specified DMA module. |
- Return values
-
◆ hal_dma_suspend_channel()
void hal_dma_suspend_channel |
( |
dma_handle_t * |
p_dma, |
|
|
uint32_t |
channel |
|
) |
| |
Suspend the register of the specified DMA channel.
- Parameters
-
[in] | p_dma | Pointer to a DMA handle which contains the configuration information for the specified DMA module. |
[in] | channel | dma channel,can be one of the values of dma_channel_t. |
- Return values
-
◆ hal_dma_suspend_reg()
Suspend some registers related to DMA configuration before sleep.
- Parameters
-
[in] | p_dma | Pointer to a DMA handle which contains the configuration information for the specified DMA module. |
- Return values
-
◆ hal_pm_dma_resume()
Resume the register of the specified DMA channel.
- Parameters
-
[in] | p_dma | Pointer to a DMA handle which contains the configuration information for the specified DMA module. |
- Return values
-
◆ hal_pm_dma_suspend()
Suspend the register of the specified DMA channel.
- Parameters
-
[in] | p_dma | Pointer to a DMA handle which contains the configuration information for the specified DMA module. |
- Return values
-