STM32F0 Standard Peripheral bibliotheek  1.0
ST Microelectronics standard peripheral bibliotheek documentatie voor de STM32F0 familie
 All Data Structures Files Functions Variables Enumerations Enumerator Groups

Macros

#define COMP_Output_None   ((uint32_t)0x00000000)
 
#define COMP_Output_TIM1BKIN   COMP_CSR_COMP1OUTSEL_0
 
#define COMP_Output_TIM1IC1   COMP_CSR_COMP1OUTSEL_1
 
#define COMP_Output_TIM1OCREFCLR   ((uint32_t)0x00000300)
 
#define COMP_Output_TIM2IC4   COMP_CSR_COMP1OUTSEL_2
 
#define COMP_Output_TIM2OCREFCLR   ((uint32_t)0x00000500)
 
#define COMP_Output_TIM3IC1   ((uint32_t)0x00000600)
 
#define COMP_Output_TIM3OCREFCLR   COMP_CSR_COMP1OUTSEL
 
#define IS_COMP_OUTPUT(OUTPUT)
 

Detailed Description

Macro Definition Documentation

#define COMP_Output_None   ((uint32_t)0x00000000)

COMP output isn't connected to other peripherals

#define COMP_Output_TIM1BKIN   COMP_CSR_COMP1OUTSEL_0

COMP output connected to TIM1 Break Input (BKIN)

#define COMP_Output_TIM1IC1   COMP_CSR_COMP1OUTSEL_1

COMP output connected to TIM1 Input Capture 1

#define COMP_Output_TIM1OCREFCLR   ((uint32_t)0x00000300)

COMP output connected to TIM1 OCREF Clear

#define COMP_Output_TIM2IC4   COMP_CSR_COMP1OUTSEL_2

COMP output connected to TIM2 Input Capture 4

#define COMP_Output_TIM2OCREFCLR   ((uint32_t)0x00000500)

COMP output connected to TIM2 OCREF Clear

#define COMP_Output_TIM3IC1   ((uint32_t)0x00000600)

COMP output connected to TIM3 Input Capture 1

#define COMP_Output_TIM3OCREFCLR   COMP_CSR_COMP1OUTSEL

COMP output connected to TIM3 OCREF Clear

#define IS_COMP_OUTPUT (   OUTPUT)
Value:
(((OUTPUT) == COMP_Output_None) || \
((OUTPUT) == COMP_Output_TIM1BKIN) || \
((OUTPUT) == COMP_Output_TIM1IC1) || \
((OUTPUT) == COMP_Output_TIM1OCREFCLR) || \
((OUTPUT) == COMP_Output_TIM2IC4) || \
((OUTPUT) == COMP_Output_TIM2OCREFCLR) || \
((OUTPUT) == COMP_Output_TIM3IC1) || \
((OUTPUT) == COMP_Output_TIM3OCREFCLR))