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
COMP_InvertingInput

Macros

#define COMP_InvertingInput_1_4VREFINT   ((uint32_t)0x00000000)
 
#define COMP_InvertingInput_1_2VREFINT   COMP_CSR_COMP1INSEL_0
 
#define COMP_InvertingInput_3_4VREFINT   COMP_CSR_COMP1INSEL_1
 
#define COMP_InvertingInput_VREFINT   ((uint32_t)0x00000030)
 
#define COMP_InvertingInput_DAC1   COMP_CSR_COMP1INSEL_2
 
#define COMP_InvertingInput_IO   ((uint32_t)0x00000060)
 
#define IS_COMP_INVERTING_INPUT(INPUT)
 

Detailed Description

Macro Definition Documentation

#define COMP_InvertingInput_1_2VREFINT   COMP_CSR_COMP1INSEL_0

1/2 VREFINT connected to comparator inverting input

#define COMP_InvertingInput_1_4VREFINT   ((uint32_t)0x00000000)

1/4 VREFINT connected to comparator inverting input

#define COMP_InvertingInput_3_4VREFINT   COMP_CSR_COMP1INSEL_1

3/4 VREFINT connected to comparator inverting input

#define COMP_InvertingInput_DAC1   COMP_CSR_COMP1INSEL_2

DAC1_OUT connected to comparator inverting input

#define COMP_InvertingInput_IO   ((uint32_t)0x00000060)

I/O (PA0 for COMP1 and PA2 for COMP2) connected to comparator inverting input

#define COMP_InvertingInput_VREFINT   ((uint32_t)0x00000030)

VREFINT connected to comparator inverting input

#define IS_COMP_INVERTING_INPUT (   INPUT)
Value:
((INPUT) == COMP_InvertingInput_VREFINT) || \
((INPUT) == COMP_InvertingInput_DAC1) || \
((INPUT) == COMP_InvertingInput_IO))