RTEMS 6.1-rc4
Loading...
Searching...
No Matches
Macros
COMP input minus (inverting input)

Macros

#define COMP_INPUT_MINUS_1_4VREFINT   ( COMP_CFGRx_SCALEN | COMP_CFGRx_BRGEN)
 
#define COMP_INPUT_MINUS_1_2VREFINT   ( COMP_CFGRx_INMSEL_0 | COMP_CFGRx_SCALEN | COMP_CFGRx_BRGEN)
 
#define COMP_INPUT_MINUS_3_4VREFINT   ( COMP_CFGRx_INMSEL_1 | COMP_CFGRx_SCALEN | COMP_CFGRx_BRGEN)
 
#define COMP_INPUT_MINUS_VREFINT   ( COMP_CFGRx_INMSEL_1 | COMP_CFGRx_INMSEL_0 | COMP_CFGRx_SCALEN )
 
#define COMP_INPUT_MINUS_DAC1_CH1   ( COMP_CFGRx_INMSEL_2 )
 
#define COMP_INPUT_MINUS_DAC1_CH2   ( COMP_CFGRx_INMSEL_2 | COMP_CFGRx_INMSEL_0 )
 
#define COMP_INPUT_MINUS_IO1   ( COMP_CFGRx_INMSEL_2 | COMP_CFGRx_INMSEL_1 )
 
#define COMP_INPUT_MINUS_IO2   ( COMP_CFGRx_INMSEL_2 | COMP_CFGRx_INMSEL_1 | COMP_CFGRx_INMSEL_0 )
 

Detailed Description

Macro Definition Documentation

◆ COMP_INPUT_MINUS_1_2VREFINT

#define COMP_INPUT_MINUS_1_2VREFINT   ( COMP_CFGRx_INMSEL_0 | COMP_CFGRx_SCALEN | COMP_CFGRx_BRGEN)

Comparator input minus connected to 1/2 VrefInt

◆ COMP_INPUT_MINUS_1_4VREFINT

#define COMP_INPUT_MINUS_1_4VREFINT   ( COMP_CFGRx_SCALEN | COMP_CFGRx_BRGEN)

Comparator input minus connected to 1/4 VrefInt

◆ COMP_INPUT_MINUS_3_4VREFINT

#define COMP_INPUT_MINUS_3_4VREFINT   ( COMP_CFGRx_INMSEL_1 | COMP_CFGRx_SCALEN | COMP_CFGRx_BRGEN)

Comparator input minus connected to 3/4 VrefInt

◆ COMP_INPUT_MINUS_DAC1_CH1

#define COMP_INPUT_MINUS_DAC1_CH1   ( COMP_CFGRx_INMSEL_2 )

Comparator input minus connected to DAC1 channel 1 (DAC_OUT1)

◆ COMP_INPUT_MINUS_DAC1_CH2

#define COMP_INPUT_MINUS_DAC1_CH2   ( COMP_CFGRx_INMSEL_2 | COMP_CFGRx_INMSEL_0 )

Comparator input minus connected to DAC1 channel 2 (DAC_OUT2)

◆ COMP_INPUT_MINUS_IO1

#define COMP_INPUT_MINUS_IO1   ( COMP_CFGRx_INMSEL_2 | COMP_CFGRx_INMSEL_1 )

Comparator input minus connected to IO1 (pin PB1 for COMP1, pin PE10 for COMP2)

◆ COMP_INPUT_MINUS_IO2

#define COMP_INPUT_MINUS_IO2   ( COMP_CFGRx_INMSEL_2 | COMP_CFGRx_INMSEL_1 | COMP_CFGRx_INMSEL_0 )

Comparator input minus connected to IO2 (pin PC4 for COMP1, pin PE7 for COMP2)

◆ COMP_INPUT_MINUS_VREFINT

#define COMP_INPUT_MINUS_VREFINT   ( COMP_CFGRx_INMSEL_1 | COMP_CFGRx_INMSEL_0 | COMP_CFGRx_SCALEN )

Comparator input minus connected to VrefInt