STM32L486xx HAL User Manual
Defines
OPAMP Private Macros
OPAMP

Defines

#define IS_LL_OPAMP_POWER_MODE(__POWER_MODE__)
#define IS_LL_OPAMP_FUNCTIONAL_MODE(__FUNCTIONAL_MODE__)
#define IS_LL_OPAMP_INPUT_NONINVERTING(__OPAMPX__, __INPUT_NONINVERTING__)
#define IS_LL_OPAMP_INPUT_INVERTING(__OPAMPX__, __INPUT_INVERTING__)
#define __OPAMP_PTR_REG_OFFSET(__REG__, __REG_OFFSET__)   ((uint32_t *)((uint32_t) ((uint32_t)(&(__REG__)) + ((__REG_OFFSET__) << 2U))))
 Driver macro reserved for internal use: set a pointer to a register from a register basis from which an offset is applied.

Define Documentation

#define __OPAMP_PTR_REG_OFFSET (   __REG__,
  __REG_OFFSET__ 
)    ((uint32_t *)((uint32_t) ((uint32_t)(&(__REG__)) + ((__REG_OFFSET__) << 2U))))

Driver macro reserved for internal use: set a pointer to a register from a register basis from which an offset is applied.

Parameters:
__REG__Register basis from which the offset is applied.
__REG_OFFSET__Offset to be applied (unit: number of registers).
Return values:
Registeraddress

Definition at line 104 of file stm32l4xx_ll_opamp.h.

Referenced by LL_OPAMP_GetTrimmingValue(), and LL_OPAMP_SetTrimmingValue().

#define IS_LL_OPAMP_FUNCTIONAL_MODE (   __FUNCTIONAL_MODE__)
Value:
(   ((__FUNCTIONAL_MODE__) == LL_OPAMP_MODE_STANDALONE)                      \
   || ((__FUNCTIONAL_MODE__) == LL_OPAMP_MODE_FOLLOWER)                        \
   || ((__FUNCTIONAL_MODE__) == LL_OPAMP_MODE_PGA)                             \
  )

Definition at line 72 of file stm32l4xx_ll_opamp.c.

Referenced by LL_OPAMP_Init().

#define IS_LL_OPAMP_INPUT_INVERTING (   __OPAMPX__,
  __INPUT_INVERTING__ 
)
Value:
(   ((__INPUT_INVERTING__) == LL_OPAMP_INPUT_INVERT_IO0)                     \
   || ((__INPUT_INVERTING__) == LL_OPAMP_INPUT_INVERT_IO1)                     \
   || ((__INPUT_INVERTING__) == LL_OPAMP_INPUT_INVERT_CONNECT_NO)              \
  )

Definition at line 91 of file stm32l4xx_ll_opamp.c.

Referenced by LL_OPAMP_Init().

#define IS_LL_OPAMP_INPUT_NONINVERTING (   __OPAMPX__,
  __INPUT_NONINVERTING__ 
)
Value:
(   ((__INPUT_NONINVERTING__) == LL_OPAMP_INPUT_NONINVERT_IO0)               \
   || ((__INPUT_NONINVERTING__) == LL_OPAMP_INPUT_NONINV_DAC1_CH1)             \
  )

Definition at line 82 of file stm32l4xx_ll_opamp.c.

Referenced by LL_OPAMP_Init().

#define IS_LL_OPAMP_POWER_MODE (   __POWER_MODE__)
Value:
(   ((__POWER_MODE__) == LL_OPAMP_POWERMODE_NORMAL)                          \
   || ((__POWER_MODE__) == LL_OPAMP_POWERMODE_LOWPOWER))

Definition at line 68 of file stm32l4xx_ll_opamp.c.

Referenced by LL_OPAMP_Init().