STM32L4xx_HAL_Driver  1.14.0
Configuration of OPAMP inputs

Functions

__STATIC_INLINE void LL_OPAMP_SetInputNonInverting (OPAMP_TypeDef *OPAMPx, uint32_t InputNonInverting)
 Set OPAMP non-inverting input connection. CSR VPSEL LL_OPAMP_SetInputNonInverting. More...
 
__STATIC_INLINE uint32_t LL_OPAMP_GetInputNonInverting (OPAMP_TypeDef *OPAMPx)
 Get OPAMP non-inverting input connection. CSR VPSEL LL_OPAMP_GetInputNonInverting. More...
 
__STATIC_INLINE void LL_OPAMP_SetInputInverting (OPAMP_TypeDef *OPAMPx, uint32_t InputInverting)
 Set OPAMP inverting input connection. More...
 
__STATIC_INLINE uint32_t LL_OPAMP_GetInputInverting (OPAMP_TypeDef *OPAMPx)
 Get OPAMP inverting input connection. CSR VMSEL LL_OPAMP_GetInputInverting. More...
 

Detailed Description

Function Documentation

◆ LL_OPAMP_GetInputInverting()

__STATIC_INLINE uint32_t LL_OPAMP_GetInputInverting ( OPAMP_TypeDef *  OPAMPx)

Get OPAMP inverting input connection. CSR VMSEL LL_OPAMP_GetInputInverting.

Parameters
OPAMPxOPAMP instance
Return values
Returnedvalue can be one of the following values:
  • LL_OPAMP_INPUT_INVERT_IO0
  • LL_OPAMP_INPUT_INVERT_IO1
  • LL_OPAMP_INPUT_INVERT_CONNECT_NO

Definition at line 619 of file stm32l4xx_ll_opamp.h.

620 {
621  return (uint32_t)(READ_BIT(OPAMPx->CSR, OPAMP_CSR_VMSEL));
622 }

◆ LL_OPAMP_GetInputNonInverting()

__STATIC_INLINE uint32_t LL_OPAMP_GetInputNonInverting ( OPAMP_TypeDef *  OPAMPx)

Get OPAMP non-inverting input connection. CSR VPSEL LL_OPAMP_GetInputNonInverting.

Parameters
OPAMPxOPAMP instance
Return values
Returnedvalue can be one of the following values:
  • LL_OPAMP_INPUT_NONINVERT_IO0
  • LL_OPAMP_INPUT_NONINV_DAC1_CH1

Definition at line 586 of file stm32l4xx_ll_opamp.h.

587 {
588  return (uint32_t)(READ_BIT(OPAMPx->CSR, OPAMP_CSR_VPSEL));
589 }

◆ LL_OPAMP_SetInputInverting()

__STATIC_INLINE void LL_OPAMP_SetInputInverting ( OPAMP_TypeDef *  OPAMPx,
uint32_t  InputInverting 
)

Set OPAMP inverting input connection.

Note
OPAMP inverting input is used with OPAMP in mode standalone or PGA with external capacitors for filtering circuit. Otherwise (OPAMP in mode follower), OPAMP inverting input is not used (not connected to GPIO pin). CSR VMSEL LL_OPAMP_SetInputInverting
Parameters
OPAMPxOPAMP instance
InputInvertingThis parameter can be one of the following values:
  • LL_OPAMP_INPUT_INVERT_IO0
  • LL_OPAMP_INPUT_INVERT_IO1
  • LL_OPAMP_INPUT_INVERT_CONNECT_NO
Return values
None

Definition at line 605 of file stm32l4xx_ll_opamp.h.

606 {
607  MODIFY_REG(OPAMPx->CSR, OPAMP_CSR_VMSEL, InputInverting);
608 }
MODIFY_REG(hrtc->Instance->CR, RTC_CR_WUCKSEL,(uint32_t) WakeUpClock)

◆ LL_OPAMP_SetInputNonInverting()

__STATIC_INLINE void LL_OPAMP_SetInputNonInverting ( OPAMP_TypeDef *  OPAMPx,
uint32_t  InputNonInverting 
)

Set OPAMP non-inverting input connection. CSR VPSEL LL_OPAMP_SetInputNonInverting.

Parameters
OPAMPxOPAMP instance
InputNonInvertingThis parameter can be one of the following values:
  • LL_OPAMP_INPUT_NONINVERT_IO0
  • LL_OPAMP_INPUT_NONINV_DAC1_CH1
Return values
None

Definition at line 573 of file stm32l4xx_ll_opamp.h.

574 {
575  MODIFY_REG(OPAMPx->CSR, OPAMP_CSR_VPSEL, InputNonInverting);
576 }
MODIFY_REG(hrtc->Instance->CR, RTC_CR_WUCKSEL,(uint32_t) WakeUpClock)