STM32L4xx_HAL_Driver  1.14.0
Peripheral State functions

Peripheral State functions. More...

Functions

HAL_OPAMP_StateTypeDef HAL_OPAMP_GetState (OPAMP_HandleTypeDef *hopamp)
 Return the OPAMP handle state. More...
 

Detailed Description

Peripheral State functions.

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

Function Documentation

◆ HAL_OPAMP_GetState()

HAL_OPAMP_StateTypeDef HAL_OPAMP_GetState ( OPAMP_HandleTypeDef hopamp)

Return the OPAMP handle state.

Parameters
hopamp: OPAMP handle
Return values
HALstate

Definition at line 1006 of file stm32l4xx_hal_opamp.c.

1007 {
1008  /* Check the OPAMP handle allocation */
1009  if(hopamp == NULL)
1010  {
1011  return HAL_OPAMP_STATE_RESET;
1012  }
1013 
1014  /* Check the parameter */
1015  assert_param(IS_OPAMP_ALL_INSTANCE(hopamp->Instance));
1016 
1017  /* Return OPAMP handle state */
1018  return hopamp->State;
1019 }
assert_param(IS_RTC_WAKEUP_CLOCK(WakeUpClock))