libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
SMPR ADC sample time register
Collaboration diagram for SMPR ADC sample time register:

Modules

 ADC Sample Time selection
 
 ADC Sample Time selection values
 

Macros

#define ADC_SMPR_SMPSEL_SHIFT   0x8
 
#define ADC_SMPR_SMPSEL_MASK   0x7ffff
 
#define ADC_SMPR_SMPSEL_CHANNEL_SHIFT(channel)   ((channel) + ADC_SMPR_SMPSEL_SHIFT)
 
#define ADC_SMPR_SMPSEL_CHANNEL_MASK   (1)
 
#define ADC_SMPR_SMP1_SHIFT   0x0
 SMP1 ADC Sample Time #1 selection. More...
 
#define ADC_SMPR_SMP1_MASK   0x7
 
#define ADC_SMPR_SMP2_SHIFT   0x4
 SMP1 ADC Sample Time #2 selection. More...
 
#define ADC_SMPR_SMP2_MASK   0x7
 

Detailed Description

Macro Definition Documentation

◆ ADC_SMPR_SMP1_MASK

#define ADC_SMPR_SMP1_MASK   0x7

Definition at line 206 of file g0/adc.h.

◆ ADC_SMPR_SMP1_SHIFT

#define ADC_SMPR_SMP1_SHIFT   0x0

SMP1 ADC Sample Time #1 selection.

Definition at line 205 of file g0/adc.h.

◆ ADC_SMPR_SMP2_MASK

#define ADC_SMPR_SMP2_MASK   0x7

Definition at line 210 of file g0/adc.h.

◆ ADC_SMPR_SMP2_SHIFT

#define ADC_SMPR_SMP2_SHIFT   0x4

SMP1 ADC Sample Time #2 selection.

Definition at line 209 of file g0/adc.h.

◆ ADC_SMPR_SMPSEL_CHANNEL_MASK

#define ADC_SMPR_SMPSEL_CHANNEL_MASK   (1)

Definition at line 197 of file g0/adc.h.

◆ ADC_SMPR_SMPSEL_CHANNEL_SHIFT

#define ADC_SMPR_SMPSEL_CHANNEL_SHIFT (   channel)    ((channel) + ADC_SMPR_SMPSEL_SHIFT)

Definition at line 196 of file g0/adc.h.

◆ ADC_SMPR_SMPSEL_MASK

#define ADC_SMPR_SMPSEL_MASK   0x7ffff

Definition at line 195 of file g0/adc.h.

◆ ADC_SMPR_SMPSEL_SHIFT

#define ADC_SMPR_SMPSEL_SHIFT   0x8

Definition at line 194 of file g0/adc.h.