Prusa MINI Firmware overview
Collaboration diagram for ADC Common Channels:

Macros

#define ADC_CHANNEL_0   0x00000000U
 
#define ADC_CHANNEL_1   ((uint32_t)ADC_CR1_AWDCH_0)
 
#define ADC_CHANNEL_2   ((uint32_t)ADC_CR1_AWDCH_1)
 
#define ADC_CHANNEL_3   ((uint32_t)(ADC_CR1_AWDCH_1 | ADC_CR1_AWDCH_0))
 
#define ADC_CHANNEL_4   ((uint32_t)ADC_CR1_AWDCH_2)
 
#define ADC_CHANNEL_5   ((uint32_t)(ADC_CR1_AWDCH_2 | ADC_CR1_AWDCH_0))
 
#define ADC_CHANNEL_6   ((uint32_t)(ADC_CR1_AWDCH_2 | ADC_CR1_AWDCH_1))
 
#define ADC_CHANNEL_7   ((uint32_t)(ADC_CR1_AWDCH_2 | ADC_CR1_AWDCH_1 | ADC_CR1_AWDCH_0))
 
#define ADC_CHANNEL_8   ((uint32_t)ADC_CR1_AWDCH_3)
 
#define ADC_CHANNEL_9   ((uint32_t)(ADC_CR1_AWDCH_3 | ADC_CR1_AWDCH_0))
 
#define ADC_CHANNEL_10   ((uint32_t)(ADC_CR1_AWDCH_3 | ADC_CR1_AWDCH_1))
 
#define ADC_CHANNEL_11   ((uint32_t)(ADC_CR1_AWDCH_3 | ADC_CR1_AWDCH_1 | ADC_CR1_AWDCH_0))
 
#define ADC_CHANNEL_12   ((uint32_t)(ADC_CR1_AWDCH_3 | ADC_CR1_AWDCH_2))
 
#define ADC_CHANNEL_13   ((uint32_t)(ADC_CR1_AWDCH_3 | ADC_CR1_AWDCH_2 | ADC_CR1_AWDCH_0))
 
#define ADC_CHANNEL_14   ((uint32_t)(ADC_CR1_AWDCH_3 | ADC_CR1_AWDCH_2 | ADC_CR1_AWDCH_1))
 
#define ADC_CHANNEL_15   ((uint32_t)(ADC_CR1_AWDCH_3 | ADC_CR1_AWDCH_2 | ADC_CR1_AWDCH_1 | ADC_CR1_AWDCH_0))
 
#define ADC_CHANNEL_16   ((uint32_t)ADC_CR1_AWDCH_4)
 
#define ADC_CHANNEL_17   ((uint32_t)(ADC_CR1_AWDCH_4 | ADC_CR1_AWDCH_0))
 
#define ADC_CHANNEL_18   ((uint32_t)(ADC_CR1_AWDCH_4 | ADC_CR1_AWDCH_1))
 
#define ADC_CHANNEL_VREFINT   ((uint32_t)ADC_CHANNEL_17)
 
#define ADC_CHANNEL_VBAT   ((uint32_t)ADC_CHANNEL_18)
 

Detailed Description

Macro Definition Documentation

◆ ADC_CHANNEL_0

#define ADC_CHANNEL_0   0x00000000U

◆ ADC_CHANNEL_1

#define ADC_CHANNEL_1   ((uint32_t)ADC_CR1_AWDCH_0)

◆ ADC_CHANNEL_2

#define ADC_CHANNEL_2   ((uint32_t)ADC_CR1_AWDCH_1)

◆ ADC_CHANNEL_3

#define ADC_CHANNEL_3   ((uint32_t)(ADC_CR1_AWDCH_1 | ADC_CR1_AWDCH_0))

◆ ADC_CHANNEL_4

#define ADC_CHANNEL_4   ((uint32_t)ADC_CR1_AWDCH_2)

◆ ADC_CHANNEL_5

#define ADC_CHANNEL_5   ((uint32_t)(ADC_CR1_AWDCH_2 | ADC_CR1_AWDCH_0))

◆ ADC_CHANNEL_6

#define ADC_CHANNEL_6   ((uint32_t)(ADC_CR1_AWDCH_2 | ADC_CR1_AWDCH_1))

◆ ADC_CHANNEL_7

#define ADC_CHANNEL_7   ((uint32_t)(ADC_CR1_AWDCH_2 | ADC_CR1_AWDCH_1 | ADC_CR1_AWDCH_0))

◆ ADC_CHANNEL_8

#define ADC_CHANNEL_8   ((uint32_t)ADC_CR1_AWDCH_3)

◆ ADC_CHANNEL_9

#define ADC_CHANNEL_9   ((uint32_t)(ADC_CR1_AWDCH_3 | ADC_CR1_AWDCH_0))

◆ ADC_CHANNEL_10

#define ADC_CHANNEL_10   ((uint32_t)(ADC_CR1_AWDCH_3 | ADC_CR1_AWDCH_1))

◆ ADC_CHANNEL_11

#define ADC_CHANNEL_11   ((uint32_t)(ADC_CR1_AWDCH_3 | ADC_CR1_AWDCH_1 | ADC_CR1_AWDCH_0))

◆ ADC_CHANNEL_12

#define ADC_CHANNEL_12   ((uint32_t)(ADC_CR1_AWDCH_3 | ADC_CR1_AWDCH_2))

◆ ADC_CHANNEL_13

#define ADC_CHANNEL_13   ((uint32_t)(ADC_CR1_AWDCH_3 | ADC_CR1_AWDCH_2 | ADC_CR1_AWDCH_0))

◆ ADC_CHANNEL_14

#define ADC_CHANNEL_14   ((uint32_t)(ADC_CR1_AWDCH_3 | ADC_CR1_AWDCH_2 | ADC_CR1_AWDCH_1))

◆ ADC_CHANNEL_15

#define ADC_CHANNEL_15   ((uint32_t)(ADC_CR1_AWDCH_3 | ADC_CR1_AWDCH_2 | ADC_CR1_AWDCH_1 | ADC_CR1_AWDCH_0))

◆ ADC_CHANNEL_16

#define ADC_CHANNEL_16   ((uint32_t)ADC_CR1_AWDCH_4)

◆ ADC_CHANNEL_17

#define ADC_CHANNEL_17   ((uint32_t)(ADC_CR1_AWDCH_4 | ADC_CR1_AWDCH_0))

◆ ADC_CHANNEL_18

#define ADC_CHANNEL_18   ((uint32_t)(ADC_CR1_AWDCH_4 | ADC_CR1_AWDCH_1))

◆ ADC_CHANNEL_VREFINT

#define ADC_CHANNEL_VREFINT   ((uint32_t)ADC_CHANNEL_17)

◆ ADC_CHANNEL_VBAT

#define ADC_CHANNEL_VBAT   ((uint32_t)ADC_CHANNEL_18)