STM32L486xx HAL User Manual
Defines
Oversampling - Data shift
ADC Exported Constants

Defines

#define LL_ADC_OVS_SHIFT_NONE   (0x00000000U)
#define LL_ADC_OVS_SHIFT_RIGHT_1   ( ADC_CFGR2_OVSS_0)
#define LL_ADC_OVS_SHIFT_RIGHT_2   ( ADC_CFGR2_OVSS_1 )
#define LL_ADC_OVS_SHIFT_RIGHT_3   ( ADC_CFGR2_OVSS_1 | ADC_CFGR2_OVSS_0)
#define LL_ADC_OVS_SHIFT_RIGHT_4   ( ADC_CFGR2_OVSS_2 )
#define LL_ADC_OVS_SHIFT_RIGHT_5   ( ADC_CFGR2_OVSS_2 | ADC_CFGR2_OVSS_0)
#define LL_ADC_OVS_SHIFT_RIGHT_6   ( ADC_CFGR2_OVSS_2 | ADC_CFGR2_OVSS_1 )
#define LL_ADC_OVS_SHIFT_RIGHT_7   ( ADC_CFGR2_OVSS_2 | ADC_CFGR2_OVSS_1 | ADC_CFGR2_OVSS_0)
#define LL_ADC_OVS_SHIFT_RIGHT_8   (ADC_CFGR2_OVSS_3 )

Define Documentation

#define LL_ADC_OVS_SHIFT_NONE   (0x00000000U)

ADC oversampling no shift (sum of the ADC conversions data is not divided to result as the ADC oversampling conversion data)

Definition at line 1248 of file stm32l4xx_ll_adc.h.

#define LL_ADC_OVS_SHIFT_RIGHT_1   ( ADC_CFGR2_OVSS_0)

ADC oversampling shift of 1 (sum of the ADC conversions data is divided by 2 to result as the ADC oversampling conversion data)

Definition at line 1249 of file stm32l4xx_ll_adc.h.

#define LL_ADC_OVS_SHIFT_RIGHT_2   ( ADC_CFGR2_OVSS_1 )

ADC oversampling shift of 2 (sum of the ADC conversions data is divided by 4 to result as the ADC oversampling conversion data)

Definition at line 1250 of file stm32l4xx_ll_adc.h.

#define LL_ADC_OVS_SHIFT_RIGHT_3   ( ADC_CFGR2_OVSS_1 | ADC_CFGR2_OVSS_0)

ADC oversampling shift of 3 (sum of the ADC conversions data is divided by 8 to result as the ADC oversampling conversion data)

Definition at line 1251 of file stm32l4xx_ll_adc.h.

#define LL_ADC_OVS_SHIFT_RIGHT_4   ( ADC_CFGR2_OVSS_2 )

ADC oversampling shift of 4 (sum of the ADC conversions data is divided by 16 to result as the ADC oversampling conversion data)

Definition at line 1252 of file stm32l4xx_ll_adc.h.

#define LL_ADC_OVS_SHIFT_RIGHT_5   ( ADC_CFGR2_OVSS_2 | ADC_CFGR2_OVSS_0)

ADC oversampling shift of 5 (sum of the ADC conversions data is divided by 32 to result as the ADC oversampling conversion data)

Definition at line 1253 of file stm32l4xx_ll_adc.h.

#define LL_ADC_OVS_SHIFT_RIGHT_6   ( ADC_CFGR2_OVSS_2 | ADC_CFGR2_OVSS_1 )

ADC oversampling shift of 6 (sum of the ADC conversions data is divided by 64 to result as the ADC oversampling conversion data)

Definition at line 1254 of file stm32l4xx_ll_adc.h.

#define LL_ADC_OVS_SHIFT_RIGHT_7   ( ADC_CFGR2_OVSS_2 | ADC_CFGR2_OVSS_1 | ADC_CFGR2_OVSS_0)

ADC oversampling shift of 7 (sum of the ADC conversions data is divided by 128 to result as the ADC oversampling conversion data)

Definition at line 1255 of file stm32l4xx_ll_adc.h.

#define LL_ADC_OVS_SHIFT_RIGHT_8   (ADC_CFGR2_OVSS_3 )

ADC oversampling shift of 8 (sum of the ADC conversions data is divided by 256 to result as the ADC oversampling conversion data)

Definition at line 1256 of file stm32l4xx_ll_adc.h.