Prusa MINI Firmware overview
ADC Private Macros
Collaboration diagram for ADC Private Macros:

Macros

#define IS_ADC_MODE(MODE)
 
#define IS_ADC_DMA_ACCESS_MODE(MODE)
 
#define IS_ADC_EXT_INJEC_TRIG_EDGE(EDGE)
 
#define IS_ADC_EXT_INJEC_TRIG(INJTRIG)
 
#define IS_ADC_INJECTED_LENGTH(LENGTH)   (((LENGTH) >= 1U) && ((LENGTH) <= 4U))
 
#define IS_ADC_INJECTED_RANK(RANK)   (((RANK) >= 1U) && ((RANK) <= 4U))
 
#define ADC_JSQR(_CHANNELNB_, _RANKNB_, _JSQR_JL_)   (((uint32_t)((uint16_t)(_CHANNELNB_))) << (5U * (uint8_t)(((_RANKNB_) + 3U) - (_JSQR_JL_))))
 Set the selected injected Channel rank. More...
 
#define ADC_COMMON_REGISTER(__HANDLE__)   ADC1_COMMON
 Defines if the selected ADC is within ADC common register ADC123 or ADC1 if available (ADC2, ADC3 availability depends on STM32 product) More...
 

Detailed Description

Macro Definition Documentation

◆ IS_ADC_MODE

#define IS_ADC_MODE (   MODE)
Value:
(((MODE) == ADC_MODE_INDEPENDENT) || \
((MODE) == ADC_DUALMODE_INJECSIMULT) || \
((MODE) == ADC_DUALMODE_REGSIMULT) || \
((MODE) == ADC_DUALMODE_INTERL) || \
((MODE) == ADC_DUALMODE_ALTERTRIG) || \
((MODE) == ADC_TRIPLEMODE_INJECSIMULT) || \
((MODE) == ADC_TRIPLEMODE_REGSIMULT) || \
((MODE) == ADC_TRIPLEMODE_INTERL) || \

◆ IS_ADC_DMA_ACCESS_MODE

#define IS_ADC_DMA_ACCESS_MODE (   MODE)
Value:
(((MODE) == ADC_DMAACCESSMODE_DISABLED) || \
((MODE) == ADC_DMAACCESSMODE_1) || \
((MODE) == ADC_DMAACCESSMODE_2) || \
((MODE) == ADC_DMAACCESSMODE_3))

◆ IS_ADC_EXT_INJEC_TRIG_EDGE

#define IS_ADC_EXT_INJEC_TRIG_EDGE (   EDGE)

◆ IS_ADC_EXT_INJEC_TRIG

#define IS_ADC_EXT_INJEC_TRIG (   INJTRIG)

◆ IS_ADC_INJECTED_LENGTH

#define IS_ADC_INJECTED_LENGTH (   LENGTH)    (((LENGTH) >= 1U) && ((LENGTH) <= 4U))

◆ IS_ADC_INJECTED_RANK

#define IS_ADC_INJECTED_RANK (   RANK)    (((RANK) >= 1U) && ((RANK) <= 4U))

◆ ADC_JSQR

#define ADC_JSQR (   _CHANNELNB_,
  _RANKNB_,
  _JSQR_JL_ 
)    (((uint32_t)((uint16_t)(_CHANNELNB_))) << (5U * (uint8_t)(((_RANKNB_) + 3U) - (_JSQR_JL_))))

Set the selected injected Channel rank.

Parameters
<em>CHANNELNB</em>Channel number.
<em>RANKNB</em>Rank number.
<em>JSQR_JL</em>Sequence length.
Return values
None

◆ ADC_COMMON_REGISTER

#define ADC_COMMON_REGISTER (   __HANDLE__)    ADC1_COMMON

Defines if the selected ADC is within ADC common register ADC123 or ADC1 if available (ADC2, ADC3 availability depends on STM32 product)

Parameters
<strong>HANDLE</strong>ADC handle
Return values
Commoncontrol register ADC123 or ADC1
ADC_EXTERNALTRIGINJECCONV_T4_CC2
#define ADC_EXTERNALTRIGINJECCONV_T4_CC2
Definition: stm32f4xx_hal_adc_ex.h:202
ADC_DMAACCESSMODE_DISABLED
#define ADC_DMAACCESSMODE_DISABLED
Definition: stm32f4xx_hal_adc_ex.h:173
ADC_TRIPLEMODE_REGSIMULT_INJECSIMULT
#define ADC_TRIPLEMODE_REGSIMULT_INJECSIMULT
Definition: stm32f4xx_hal_adc_ex.h:160
ADC_DUALMODE_ALTERTRIG
#define ADC_DUALMODE_ALTERTRIG
Definition: stm32f4xx_hal_adc_ex.h:159
ADC_DUALMODE_REGSIMULT
#define ADC_DUALMODE_REGSIMULT
Definition: stm32f4xx_hal_adc_ex.h:157
ADC_MODE_INDEPENDENT
#define ADC_MODE_INDEPENDENT
Definition: stm32f4xx_hal_adc_ex.h:153
ADC_EXTERNALTRIGINJECCONV_T1_TRGO
#define ADC_EXTERNALTRIGINJECCONV_T1_TRGO
Definition: stm32f4xx_hal_adc_ex.h:196
ADC_TRIPLEMODE_INTERL
#define ADC_TRIPLEMODE_INTERL
Definition: stm32f4xx_hal_adc_ex.h:164
ADC_TRIPLEMODE_REGSIMULT
#define ADC_TRIPLEMODE_REGSIMULT
Definition: stm32f4xx_hal_adc_ex.h:163
ADC_EXTERNALTRIGINJECCONV_T4_CC3
#define ADC_EXTERNALTRIGINJECCONV_T4_CC3
Definition: stm32f4xx_hal_adc_ex.h:203
ADC_EXTERNALTRIGINJECCONV_T8_CC4
#define ADC_EXTERNALTRIGINJECCONV_T8_CC4
Definition: stm32f4xx_hal_adc_ex.h:209
ADC_EXTERNALTRIGINJECCONVEDGE_NONE
#define ADC_EXTERNALTRIGINJECCONVEDGE_NONE
Definition: stm32f4xx_hal_adc_ex.h:184
ADC_EXTERNALTRIGINJECCONV_T5_TRGO
#define ADC_EXTERNALTRIGINJECCONV_T5_TRGO
Definition: stm32f4xx_hal_adc_ex.h:206
ADC_EXTERNALTRIGINJECCONV_T3_CC4
#define ADC_EXTERNALTRIGINJECCONV_T3_CC4
Definition: stm32f4xx_hal_adc_ex.h:200
ADC_EXTERNALTRIGINJECCONV_T1_CC4
#define ADC_EXTERNALTRIGINJECCONV_T1_CC4
Definition: stm32f4xx_hal_adc_ex.h:195
ADC_INJECTED_SOFTWARE_START
#define ADC_INJECTED_SOFTWARE_START
Definition: stm32f4xx_hal_adc_ex.h:211
ADC_EXTERNALTRIGINJECCONVEDGE_RISING
#define ADC_EXTERNALTRIGINJECCONVEDGE_RISING
Definition: stm32f4xx_hal_adc_ex.h:185
ADC_EXTERNALTRIGINJECCONV_T4_TRGO
#define ADC_EXTERNALTRIGINJECCONV_T4_TRGO
Definition: stm32f4xx_hal_adc_ex.h:204
ADC_EXTERNALTRIGINJECCONV_T4_CC1
#define ADC_EXTERNALTRIGINJECCONV_T4_CC1
Definition: stm32f4xx_hal_adc_ex.h:201
ADC_EXTERNALTRIGINJECCONV_T5_CC4
#define ADC_EXTERNALTRIGINJECCONV_T5_CC4
Definition: stm32f4xx_hal_adc_ex.h:205
ADC_EXTERNALTRIGINJECCONV_EXT_IT15
#define ADC_EXTERNALTRIGINJECCONV_EXT_IT15
Definition: stm32f4xx_hal_adc_ex.h:210
ADC_EXTERNALTRIGINJECCONVEDGE_RISINGFALLING
#define ADC_EXTERNALTRIGINJECCONVEDGE_RISINGFALLING
Definition: stm32f4xx_hal_adc_ex.h:187
ADC_TRIPLEMODE_INJECSIMULT
#define ADC_TRIPLEMODE_INJECSIMULT
Definition: stm32f4xx_hal_adc_ex.h:162
ADC_EXTERNALTRIGINJECCONV_T8_CC3
#define ADC_EXTERNALTRIGINJECCONV_T8_CC3
Definition: stm32f4xx_hal_adc_ex.h:208
ADC_TRIPLEMODE_REGSIMULT_AlterTrig
#define ADC_TRIPLEMODE_REGSIMULT_AlterTrig
Definition: stm32f4xx_hal_adc_ex.h:161
ADC_DUALMODE_REGSIMULT_ALTERTRIG
#define ADC_DUALMODE_REGSIMULT_ALTERTRIG
Definition: stm32f4xx_hal_adc_ex.h:155
ADC_DMAACCESSMODE_1
#define ADC_DMAACCESSMODE_1
Definition: stm32f4xx_hal_adc_ex.h:174
ADC_DUALMODE_INTERL
#define ADC_DUALMODE_INTERL
Definition: stm32f4xx_hal_adc_ex.h:158
ADC_EXTERNALTRIGINJECCONV_T2_CC1
#define ADC_EXTERNALTRIGINJECCONV_T2_CC1
Definition: stm32f4xx_hal_adc_ex.h:197
ADC_EXTERNALTRIGINJECCONV_T2_TRGO
#define ADC_EXTERNALTRIGINJECCONV_T2_TRGO
Definition: stm32f4xx_hal_adc_ex.h:198
ADC_DUALMODE_REGSIMULT_INJECSIMULT
#define ADC_DUALMODE_REGSIMULT_INJECSIMULT
Definition: stm32f4xx_hal_adc_ex.h:154
ADC_TRIPLEMODE_ALTERTRIG
#define ADC_TRIPLEMODE_ALTERTRIG
Definition: stm32f4xx_hal_adc_ex.h:165
ADC_DUALMODE_INJECSIMULT
#define ADC_DUALMODE_INJECSIMULT
Definition: stm32f4xx_hal_adc_ex.h:156
ADC_EXTERNALTRIGINJECCONV_T8_CC2
#define ADC_EXTERNALTRIGINJECCONV_T8_CC2
Definition: stm32f4xx_hal_adc_ex.h:207
ADC_DMAACCESSMODE_2
#define ADC_DMAACCESSMODE_2
Definition: stm32f4xx_hal_adc_ex.h:175
ADC_DMAACCESSMODE_3
#define ADC_DMAACCESSMODE_3
Definition: stm32f4xx_hal_adc_ex.h:176
ADC_EXTERNALTRIGINJECCONV_T3_CC2
#define ADC_EXTERNALTRIGINJECCONV_T3_CC2
Definition: stm32f4xx_hal_adc_ex.h:199
ADC_EXTERNALTRIGINJECCONVEDGE_FALLING
#define ADC_EXTERNALTRIGINJECCONVEDGE_FALLING
Definition: stm32f4xx_hal_adc_ex.h:186