STM32H735xx 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 LL_ADC_OVS_SHIFT_RIGHT_9   (ADC_CFGR2_OVSS_3 | ADC_CFGR2_OVSS_0)
#define LL_ADC_OVS_SHIFT_RIGHT_10   (ADC_CFGR2_OVSS_3 | ADC_CFGR2_OVSS_1 )
#define LL_ADC_OVS_SHIFT_RIGHT_11   (ADC_CFGR2_OVSS_3 | ADC_CFGR2_OVSS_1 | ADC_CFGR2_OVSS_0)

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 1418 of file stm32h7xx_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 1419 of file stm32h7xx_ll_adc.h.

#define LL_ADC_OVS_SHIFT_RIGHT_10   (ADC_CFGR2_OVSS_3 | ADC_CFGR2_OVSS_1 )

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

Definition at line 1428 of file stm32h7xx_ll_adc.h.

#define LL_ADC_OVS_SHIFT_RIGHT_11   (ADC_CFGR2_OVSS_3 | ADC_CFGR2_OVSS_1 | ADC_CFGR2_OVSS_0)

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

Definition at line 1429 of file stm32h7xx_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 1420 of file stm32h7xx_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 1421 of file stm32h7xx_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 1422 of file stm32h7xx_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 1423 of file stm32h7xx_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 1424 of file stm32h7xx_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 1425 of file stm32h7xx_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 1426 of file stm32h7xx_ll_adc.h.

#define LL_ADC_OVS_SHIFT_RIGHT_9   (ADC_CFGR2_OVSS_3 | ADC_CFGR2_OVSS_0)

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

Definition at line 1427 of file stm32h7xx_ll_adc.h.