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

Defines

#define LL_ADC_OVS_SHIFT_NONE   (0x00000000UL)
#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   (0x00000000UL)

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

Definition at line 1214 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 1215 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 1216 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 1217 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 1218 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 1219 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 1220 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 1221 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 1222 of file stm32l4xx_ll_adc.h.