PDM control functions.
More...
PDM control functions.
===============================================================================
##### Peripheral State and Errors functions #####
===============================================================================
[..]
This subsection provides a set of functions allowing to control the PDM.
(+) hal_pdm_get_state() API can be helpful to check in run-time the state of the PDM peripheral.
(+) hal_pdm_get_error() check in run-time Errors occurring during communication.
◆ hal_pdm_get_error()
Return the PDM error code.
- Parameters
-
[in] | p_pdm | Pointer to an PDM handle which contains the configuration information for the specified PDM module. |
- Returns
- PDM error code in bitmap format
◆ hal_pdm_get_state()
Return the PDM handle state.
- Parameters
-
[in] | p_pdm | Pointer to an PDM handle which contains the configuration information for the specified PDM module. |
- Return values
-
◆ hal_pdm_resume_reg()
Restore some registers related to PDM configuration after sleep. This function must be used in conjunction with the hal_adc_suspend_reg().
- Parameters
-
[in] | p_pdm | Pointer to a PDM handle which contains the configuration information for the specified PDM module. |
- Return values
-
◆ hal_pdm_suspend_reg()
Suspend some registers related to PDM configuration before sleep.
- Parameters
-
[in] | p_pdm | Pointer to a PDM handle which contains the configuration information for the specified PDM module. |
- Return values
-