LL OPAMP Macros ¶
Common write and read registers macro ¶
- group OPAMP_LL_EM_WRITE_READ
-
Defines
-
LL_OPAMP_WRITE_REG
(
instance
,
reg
,
value
)
STM32_WRITE_REG((instance)->reg,
(value))
¶
-
Write a value in OPAMP register.
- Parameters :
-
-
instance – OPAMP Instance
-
reg – Register to be written
-
value – Value to be written in the register
-
-
LL_OPAMP_READ_REG
(
instance
,
reg
)
STM32_READ_REG((instance)->reg)
¶
-
Read a value in OPAMP register.
- Parameters :
-
-
instance – OPAMP Instance
-
reg – Register to be read
-
- Return values :
-
Register – value
-
LL_OPAMP_WRITE_REG
(
instance
,
reg
,
value
)
STM32_WRITE_REG((instance)->reg,
(value))
¶
- group OPAMP_LL_EM_WRITE_READ
-
Defines
-
LL_OPAMP_WRITE_REG
(
instance
,
reg
,
value
)
STM32_WRITE_REG((instance)->reg,
(value))
-
Write a value in OPAMP register.
- Parameters :
-
-
instance – OPAMP Instance
-
reg – Register to be written
-
value – Value to be written in the register
-
-
LL_OPAMP_READ_REG
(
instance
,
reg
)
STM32_READ_REG((instance)->reg)
-
Read a value in OPAMP register.
- Parameters :
-
-
instance – OPAMP Instance
-
reg – Register to be read
-
- Return values :
-
Register – value
-
LL_OPAMP_WRITE_REG
(
instance
,
reg
,
value
)
STM32_WRITE_REG((instance)->reg,
(value))
- group OPAMP_LL_EM_WRITE_READ
-
Defines
-
LL_OPAMP_WRITE_REG
(
instance
,
reg
,
value
)
STM32_WRITE_REG((instance)->reg,
(value))
-
Write a value in OPAMP register.
- Parameters :
-
-
instance – OPAMP Instance
-
reg – Register to be written
-
value – Value to be written in the register
-
-
LL_OPAMP_READ_REG
(
instance
,
reg
)
STM32_READ_REG((instance)->reg)
-
Read a value in OPAMP register.
- Parameters :
-
-
instance – OPAMP Instance
-
reg – Register to be read
-
- Return values :
-
Register – value
-
LL_OPAMP_WRITE_REG
(
instance
,
reg
,
value
)
STM32_WRITE_REG((instance)->reg,
(value))
OPAMP helper macro ¶
- group OPAMP_LL_EM_HELPER_MACRO
-
Defines
-
LL_OPAMP_COMMON_INSTANCE
(
p_opamp
)
(OPAMP12_COMMON)
¶
-
Helper macro to select the OPAMP common instance to which is belonging the selected OPAMP instance.
Note
OPAMP common register instance can be used to set parameters common to several OPAMP instances. Refer to functions having argument “p_opamp_COMMON” as parameter.
- Parameters :
-
-
p_opamp – OPAMP instance
-
- Return values :
-
OPAMP – common instance
-
LL_OPAMP_IS_ENABLED_ALL_COMMON_INSTANCE
(
)
(
LL_OPAMP_IsEnabled
(OPAMP1)
|
LL_OPAMP_IsEnabled
(OPAMP2))
¶
-
Helper macro to check if all OPAMP instances sharing the same OPAMP common instance are disabled.
Note
This check is required by functions with setting conditioned to OPAMP state: All OPAMP instances of the OPAMP common group must be disabled. Refer to functions having argument “p_opamp_COMMON” as parameter.
- Return values :
-
0 – All OPAMP instances sharing the same OPAMP common instance are disabled. 1: At least one OPAMP instance sharing the same OPAMP common instance is enabled
-
LL_OPAMP_COMMON_INSTANCE
(
p_opamp
)
(OPAMP12_COMMON)
¶
- group OPAMP_LL_EM_HELPER_MACRO
-
Defines
-
LL_OPAMP_COMMON_INSTANCE
(
p_opamp
)
(OPAMP12_COMMON)
-
Helper macro to select the OPAMP common instance to which is belonging the selected OPAMP instance.
Note
OPAMP common register instance can be used to set parameters common to several OPAMP instances. Refer to functions having argument “p_opamp_COMMON” as parameter.
- Parameters :
-
-
p_opamp – OPAMP instance
-
- Return values :
-
OPAMP – common instance
-
LL_OPAMP_IS_ENABLED_ALL_COMMON_INSTANCE
(
)
(
LL_OPAMP_IsEnabled
(OPAMP1)
|
LL_OPAMP_IsEnabled
(OPAMP2))
-
Helper macro to check if all OPAMP instances sharing the same OPAMP common instance are disabled.
Note
This check is required by functions with setting conditioned to OPAMP state: All OPAMP instances of the OPAMP common group must be disabled. Refer to functions having argument “p_opamp_COMMON” as parameter.
- Return values :
-
0 – All OPAMP instances sharing the same OPAMP common instance are disabled. 1: At least one OPAMP instance sharing the same OPAMP common instance is enabled
-
LL_OPAMP_COMMON_INSTANCE
(
p_opamp
)
(OPAMP12_COMMON)
- group OPAMP_LL_EM_HELPER_MACRO
-
Defines
-
LL_OPAMP_COMMON_INSTANCE
(
p_opamp
)
(OPAMP12_COMMON)
-
Helper macro to select the OPAMP common instance to which is belonging the selected OPAMP instance.
Note
OPAMP common register instance can be used to set parameters common to several OPAMP instances. Refer to functions having argument “p_opamp_COMMON” as parameter.
- Parameters :
-
-
p_opamp – OPAMP instance
-
- Return values :
-
OPAMP – common instance
-
LL_OPAMP_IS_ENABLED_ALL_COMMON_INSTANCE
(
)
(
LL_OPAMP_IsEnabled
(OPAMP1))
-
Helper macro to check if all OPAMP instances sharing the same OPAMP common instance are disabled.
Note
This check is required by functions with setting conditioned to OPAMP state: All OPAMP instances of the OPAMP common group must be disabled. Refer to functions having argument “p_opamp_COMMON” as parameter.
- Return values :
-
0 – All OPAMP instances sharing the same OPAMP common instance are disabled. 1: At least one OPAMP instance sharing the same OPAMP common instance is enabled
-
LL_OPAMP_COMMON_INSTANCE
(
p_opamp
)
(OPAMP12_COMMON)