ST STM32F2 User Manual page 784

Description of stm32f2 hal and low layer drivers
Hide thumbs Also See for STM32F2:
Table of Contents

Advertisement

LL ADC Generic Driver
__LL_ADC_ANALOGWD_SET_TH
RESHOLD_RESOLUTION
__LL_ADC_ANALOGWD_GET_TH
RESHOLD_RESOLUTION
784/1371
LL_ADC_GROUP_REGULAR))
Description:
Helper macro to set the value of ADC analog
watchdog threshold high or low in function of
ADC resolution, when ADC resolution is
different of 12 bits.
Parameters:
__ADC_RESOLUTION__: This parameter can
be one of the following values:
LL_ADC_RESOLUTION_12B
LL_ADC_RESOLUTION_10B
LL_ADC_RESOLUTION_8B
LL_ADC_RESOLUTION_6B
__AWD_THRESHOLD__: Value between
Min_Data=0x000 and Max_Data=0xFFF
Return value:
Value: between Min_Data=0x000 and
Max_Data=0xFFF
Notes:
To be used with function
LL_ADC_SetAnalogWDThresholds(). Example,
with a ADC resolution of 8 bits, to set the value
of analog watchdog threshold high (on 8 bits):
LL_ADC_SetAnalogWDThresholds (< ADCx
param>,
__LL_ADC_ANALOGWD_SET_THRESHOLD_
RESOLUTION(LL_ADC_RESOLUTION_8B,
<threshold_value_8_bits>) );
Description:
Helper macro to get the value of ADC analog
watchdog threshold high or low in function of
ADC resolution, when ADC resolution is
different of 12 bits.
Parameters:
__ADC_RESOLUTION__: This parameter can
be one of the following values:
LL_ADC_RESOLUTION_12B
LL_ADC_RESOLUTION_10B
LL_ADC_RESOLUTION_8B
LL_ADC_RESOLUTION_6B
__AWD_THRESHOLD_12_BITS__: Value
between Min_Data=0x000 and
Max_Data=0xFFF
Return value:
Value: between Min_Data=0x000 and
Max_Data=0xFFF
DocID028236 Rev 2
UM1940

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F2 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents

Save PDF