STM32H735xx HAL User Manual
Functions
Start-Stop operation functions
COMP Exported Functions

Start-Stop operation functions. More...

Functions

HAL_StatusTypeDef HAL_COMP_Start (COMP_HandleTypeDef *hcomp)
 Start the comparator.
HAL_StatusTypeDef HAL_COMP_Stop (COMP_HandleTypeDef *hcomp)
 Stop the comparator.
HAL_StatusTypeDef HAL_COMP_Start_IT (COMP_HandleTypeDef *hcomp)
 Enable the interrupt and start the comparator.
HAL_StatusTypeDef HAL_COMP_Stop_IT (COMP_HandleTypeDef *hcomp)
 Disable the interrupt and Stop the comparator.
void HAL_COMP_IRQHandler (COMP_HandleTypeDef *hcomp)
 Comparator IRQ Handler.

Detailed Description

Start-Stop operation functions.

 ===============================================================================
                      ##### IO operation functions #####
 ===============================================================================  
    [..]  This section provides functions allowing to:
      (+) Start a Comparator instance without interrupt.
      (+) Stop a Comparator instance without interrupt.
      (+) Start a Comparator instance with interrupt generation.
      (+) Stop a Comparator instance with interrupt generation.


Function Documentation

HAL_StatusTypeDef HAL_COMP_Start ( COMP_HandleTypeDef hcomp)

Start the comparator.

Parameters:
hcompCOMP handle
Return values:
HALstatus

Definition at line 750 of file stm32h7xx_hal_comp.c.

References __HAL_COMP_IS_LOCKED, assert_param, COMP_DELAY_STARTUP_US, HAL_COMP_STATE_BUSY, HAL_COMP_STATE_READY, __COMP_HandleTypeDef::Instance, and __COMP_HandleTypeDef::State.

HAL_StatusTypeDef HAL_COMP_Start_IT ( COMP_HandleTypeDef hcomp)

Enable the interrupt and start the comparator.

Parameters:
hcompCOMP handle
Return values:
HALstatus

Definition at line 846 of file stm32h7xx_hal_comp.c.

References __HAL_COMP_IS_LOCKED, assert_param, COMP_DELAY_STARTUP_US, HAL_COMP_STATE_BUSY, HAL_COMP_STATE_READY, __COMP_HandleTypeDef::Instance, and __COMP_HandleTypeDef::State.

HAL_StatusTypeDef HAL_COMP_Stop ( COMP_HandleTypeDef hcomp)

Stop the comparator.

Parameters:
hcompCOMP handle
Return values:
HALstatus

Definition at line 803 of file stm32h7xx_hal_comp.c.

References __HAL_COMP_IS_LOCKED, assert_param, HAL_COMP_STATE_READY, HAL_COMP_STATE_RESET, __COMP_HandleTypeDef::Instance, and __COMP_HandleTypeDef::State.

Referenced by HAL_COMP_Stop_IT().

HAL_StatusTypeDef HAL_COMP_Stop_IT ( COMP_HandleTypeDef hcomp)

Disable the interrupt and Stop the comparator.

Parameters:
hcompCOMP handle
Return values:
HALstatus

Definition at line 901 of file stm32h7xx_hal_comp.c.

References COMP_GET_EXTI_LINE, HAL_COMP_Stop(), and __COMP_HandleTypeDef::Instance.