STM32L486xx HAL User Manual
Functions
Peripheral State functions
COMP Exported Functions

Peripheral State functions. More...

Functions

HAL_COMP_StateTypeDef HAL_COMP_GetState (COMP_HandleTypeDef *hcomp)
 Return the COMP handle state.
uint32_t HAL_COMP_GetError (COMP_HandleTypeDef *hcomp)
 Return the COMP error code.

Detailed Description

Peripheral State functions.

 ===============================================================================
                      ##### Peripheral State functions #####
 ===============================================================================  
    [..]
    This subsection permit to get in run-time the status of the peripheral.


Function Documentation

uint32_t HAL_COMP_GetError ( COMP_HandleTypeDef hcomp)

Return the COMP error code.

Parameters:
hcompCOMP handle
Return values:
COMPerror code

Definition at line 987 of file stm32l4xx_hal_comp.c.

References assert_param, __COMP_HandleTypeDef::ErrorCode, and __COMP_HandleTypeDef::Instance.

Return the COMP handle state.

Parameters:
hcompCOMP handle
Return values:
HALstate

Definition at line 967 of file stm32l4xx_hal_comp.c.

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