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