STM32L4xx_HAL_Driver  1.14.0
Operation on OPAMP instance

Functions

__STATIC_INLINE void LL_OPAMP_Enable (OPAMP_TypeDef *OPAMPx)
 Enable OPAMP instance. More...
 
__STATIC_INLINE void LL_OPAMP_Disable (OPAMP_TypeDef *OPAMPx)
 Disable OPAMP instance. CSR OPAMPXEN LL_OPAMP_Disable. More...
 
__STATIC_INLINE uint32_t LL_OPAMP_IsEnabled (OPAMP_TypeDef *OPAMPx)
 Get OPAMP instance enable state (0: OPAMP is disabled, 1: OPAMP is enabled) CSR OPAMPXEN LL_OPAMP_IsEnabled. More...
 

Detailed Description

Function Documentation

◆ LL_OPAMP_Disable()

__STATIC_INLINE void LL_OPAMP_Disable ( OPAMP_TypeDef *  OPAMPx)

Disable OPAMP instance. CSR OPAMPXEN LL_OPAMP_Disable.

Parameters
OPAMPxOPAMP instance
Return values
None

Definition at line 817 of file stm32l4xx_ll_opamp.h.

818 {
819  CLEAR_BIT(OPAMPx->CSR, OPAMP_CSR_OPAMPxEN);
820 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)

◆ LL_OPAMP_Enable()

__STATIC_INLINE void LL_OPAMP_Enable ( OPAMP_TypeDef *  OPAMPx)

Enable OPAMP instance.

Note
After enable from off state, OPAMP requires a delay to fullfill wake up time specification. Refer to device datasheet, parameter "tWAKEUP". CSR OPAMPXEN LL_OPAMP_Enable
Parameters
OPAMPxOPAMP instance
Return values
None

Definition at line 806 of file stm32l4xx_ll_opamp.h.

807 {
808  SET_BIT(OPAMPx->CSR, OPAMP_CSR_OPAMPxEN);
809 }

◆ LL_OPAMP_IsEnabled()

__STATIC_INLINE uint32_t LL_OPAMP_IsEnabled ( OPAMP_TypeDef *  OPAMPx)

Get OPAMP instance enable state (0: OPAMP is disabled, 1: OPAMP is enabled) CSR OPAMPXEN LL_OPAMP_IsEnabled.

Parameters
OPAMPxOPAMP instance
Return values
Stateof bit (1 or 0).

Definition at line 829 of file stm32l4xx_ll_opamp.h.

830 {
831  return ((READ_BIT(OPAMPx->CSR, OPAMP_CSR_OPAMPxEN) == (OPAMP_CSR_OPAMPxEN)) ? 1UL : 0UL);
832 }