libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.

Defined Constants and Types for the Analog Comparator module More...

Collaboration diagram for ACMP Defines:

Macros

#define ACMP_CTRL(base)   ((base) + 0x000)
 
#define ACMP_INPUTSEL(base)   ((base) + 0x004)
 
#define ACMP_STATUS(base)   ((base) + 0x008)
 
#define ACMP_IEN(base)   ((base) + 0x00C)
 
#define ACMP_IF(base)   ((base) + 0x010)
 
#define ACMP_IFS(base)   ((base) + 0x014)
 
#define ACMP_IFC(base)   ((base) + 0x018)
 
#define ACMP_ROUTE(base)   ((base) + 0x01C)
 
#define ACMP_CTRL_FULLBIAS   (1 << 31)
 
#define ACMP_CTRL_HALFBIAS   (1 << 30)
 
#define ACMP_CTRL_BIASPROG_SHIFT   (24)
 
#define ACMP_CTRL_BIASPROG_MASK   (0xF << ACMP_CTRL_BIASPROG_SHIFT)
 
#define ACMP_CTRL_BIASPROG(v)    (((v) << ACMP_CTRL_BIASPROG_SHIFT) & ACMP_CTRL_BIASPROG_MASK)
 
#define ACMP_CTRL_IFALL   (1 << 17)
 
#define ACMP_CTRL_IRISE   (1 << 16)
 
#define ACMP_CTRL_WARMTIME_SHIFT   (8)
 
#define ACMP_CTRL_WARMTIME_MASK   (0x7 << ACMP_CTRL_WARMTIME_SHIFT)
 
#define ACMP_CTRL_WARMTIME(v)    (((v) << ACMP_CTRL_WARMTIME_SHIFT) & ACMP_CTRL_WARMTIME_MASK)
 
#define ACMP_CTRL_WARMTIME_4CYCLES   0
 
#define ACMP_CTRL_WARMTIME_8CYCLES   1
 
#define ACMP_CTRL_WARMTIME_16CYCLES   2
 
#define ACMP_CTRL_WARMTIME_32CYCLES   3
 
#define ACMP_CTRL_WARMTIME_64CYCLES   4
 
#define ACMP_CTRL_WARMTIME_128CYCLES   5
 
#define ACMP_CTRL_WARMTIME_256CYCLES   6
 
#define ACMP_CTRL_WARMTIME_512CYCLES   7
 
#define ACMP_CTRL_HYSTSEL_SHIFT   (8)
 
#define ACMP_CTRL_HYSTSEL_MASK   (0x7 << ACMP_CTRL_HYSTSEL_SHIFT)
 
#define ACMP_CTRL_HYSTSEL(v)    (((v) << ACMP_CTRL_HYSTSEL_SHIFT) & ACMP_CTRL_HYSTSEL_MASK)
 
#define ACMP_CTRL_HYSTSEL_HYSTx(x)   ACMP_CTRL_HYSTSEL(x)
 
#define ACMP_CTRL_HYSTSEL_HYST0   0
 
#define ACMP_CTRL_HYSTSEL_HYST1   1
 
#define ACMP_CTRL_HYSTSEL_HYST2   2
 
#define ACMP_CTRL_HYSTSEL_HYST3   3
 
#define ACMP_CTRL_HYSTSEL_HYST4   4
 
#define ACMP_CTRL_HYSTSEL_HYST5   5
 
#define ACMP_CTRL_HYSTSEL_HYST6   6
 
#define ACMP_CTRL_HYSTSEL_HYST7   7
 
#define ACMP_CTRL_GPIOINV   (1 << 3)
 
#define ACMP_CTRL_INACTVAL   (1 << 2)
 
#define ACMP_CTRL_MUXEN   (1 << 1)
 
#define ACMP_CTRL_EN   (1 << 0)
 
#define ACMP_INPUTSEL_CSRESSEL_SHIFT   (28)
 
#define ACMP_INPUTSEL_CSRESSEL_MASK   (0x3 << ACMP_INPUTSEL_CSRESSEL_SHIFT)
 
#define ACMP_INPUTSEL_CSRESSEL(v)    (((v) << ACMP_INPUTSEL_CSRESSEL_SHIFT) & ACMP_INPUTSEL_CSRESSEL_MASK)
 
#define ACMP_INPUTSEL_CSRESSEL_RESx(x)   ACMP_INPUTSEL_CSRESSEL_RES(x)
 
#define ACMP_INPUTSEL_CSRESSEL_RES0   ACMP_INPUTSEL_CSRESSEL_RESx(0)
 
#define ACMP_INPUTSEL_CSRESSEL_RES1   ACMP_INPUTSEL_CSRESSEL_RESx(1)
 
#define ACMP_INPUTSEL_CSRESSEL_RES2   ACMP_INPUTSEL_CSRESSEL_RESx(2)
 
#define ACMP_INPUTSEL_CSRESSEL_RES3   ACMP_INPUTSEL_CSRESSEL_RESx(3)
 
#define ACMP_INPUTSEL_CSRESEN   (1 << 24)
 
#define ACMP_INPUTSEL_LPREF   (1 << 16)
 
#define ACMP_INPUTSEL_VDDLEVEL_SHIFT   (8)
 
#define ACMP_INPUTSEL_VDDLEVEL_MASK   (0x3F << ACMP_INPUTSEL_VDDLEVEL_SHIFT)
 
#define ACMP_INPUTSEL_VDDLEVEL(v)    (((v) << ACMP_INPUTSEL_VDDLEVEL_SHIFT) & ACMP_INPUTSEL_VDDLEVEL_MASK)
 
#define ACMP_INPUTSEL_NEGSEL_SHIFT   (8)
 
#define ACMP_INPUTSEL_NEGSEL_MASK   (0x3F << ACMP_INPUTSEL_NEGSEL_SHIFT)
 
#define ACMP_INPUTSEL_NEGSEL(v)    (((v) << ACMP_INPUTSEL_NEGSEL_SHIFT) & ACMP_INPUTSEL_NEGSEL_MASK)
 
#define ACMP_INPUTSEL_NEGSEL_CHx(x)   ACMP_INPUTSEL_NEGSEL(x)
 
#define ACMP_INPUTSEL_NEGSEL_CH0   0
 
#define ACMP_INPUTSEL_NEGSEL_CH1   1
 
#define ACMP_INPUTSEL_NEGSEL_CH2   2
 
#define ACMP_INPUTSEL_NEGSEL_CH3   3
 
#define ACMP_INPUTSEL_NEGSEL_CH4   4
 
#define ACMP_INPUTSEL_NEGSEL_CH5   5
 
#define ACMP_INPUTSEL_NEGSEL_CH6   6
 
#define ACMP_INPUTSEL_NEGSEL_CH7   7
 
#define ACMP_INPUTSEL_NEGSEL_1V25   8
 
#define ACMP_INPUTSEL_NEGSEL_2V5   9
 
#define ACMP_INPUTSEL_NEGSEL_VDD   10
 
#define ACMP_INPUTSEL_NEGSEL_CAPSENSE   11
 
#define ACMP_INPUTSEL_NEGSEL_DAC0CH0   12
 
#define ACMP_INPUTSEL_NEGSEL_DAC0CH1   13
 
#define ACMP_INPUTSEL_POSSEL_SHIFT   (0)
 
#define ACMP_INPUTSEL_POSSEL_MASK   (0x7 << ACMP_INPUTSEL_POSSEL_SHIFT)
 
#define ACMP_INPUTSEL_POSSEL(v)    (((v) << ACMP_INPUTSEL_LPOSSELL_SHIFT) & ACMP_INPUTSEL_LPOSSELL_MASK)
 
#define ACMP_INPUTSEL_POSSEL_CHx(x)   ACMP_INPUTSEL_POSSEL(x)
 
#define ACMP_INPUTSEL_POSSEL_CH0   0
 
#define ACMP_INPUTSEL_POSSEL_CH1   1
 
#define ACMP_INPUTSEL_POSSEL_CH2   2
 
#define ACMP_INPUTSEL_POSSEL_CH3   3
 
#define ACMP_INPUTSEL_POSSEL_CH4   4
 
#define ACMP_INPUTSEL_POSSEL_CH5   5
 
#define ACMP_INPUTSEL_POSSEL_CH6   6
 
#define ACMP_INPUTSEL_POSSEL_CH7   7
 
#define ACMP_STATUS_ACMPOUT   (1 << 1)
 
#define ACMP_STATUS_ACMPACT   (1 << 0)
 
#define ACMP_IEN_WARMUP   (1 << 1)
 
#define ACMP_IEN_EDGE   (1 << 0)
 
#define ACMP_IF_WARMUP   (1 << 1)
 
#define ACMP_IF_EDGE   (1 << 0)
 
#define ACMP_IFS_WARMUP   (1 << 1)
 
#define ACMP_IFS_EDGE   (1 << 0)
 
#define ACMP_IFC_WARMUP   (1 << 1)
 
#define ACMP_IFC_EDGE   (1 << 0)
 
#define ACMP_ROUTE_LOCATION_SHIFT   (8)
 
#define ACMP_ROUTE_LOCATION_MASK   (0x7 << ACMP_ROUTE_LOCATION_SHIFT)
 
#define ACMP_ROUTE_LOCATION(v)    (((v) << ACMP_ROUTE_LOCATION_SHIFT) & ACMP_ROUTE_LOCATION_MASK)
 
#define ACMP_ROUTE_LOCATION_LOCx(x)   ACMP_ROUTE_LOCATION(x)
 
#define ACMP_ROUTE_LOCATION_LOC0   ACMP_ROUTE_LOCATIONx(0)
 
#define ACMP_ROUTE_LOCATION_LOC1   ACMP_ROUTE_LOCATIONx(1)
 
#define ACMP_ROUTE_LOCATION_LOC2   ACMP_ROUTE_LOCATIONx(2)
 
#define ACMP_ROUTE_ACMPPEN   (1 << 0)
 
#define ACMP0   ACMP0_BASE
 
#define ACMP0_CTRL   ACMP_CTRL(ACMP0)
 
#define ACMP0_INPUTSEL   ACMP_INPUTSEL(ACMP0)
 
#define ACMP0_STATUS   ACMP_STATUS(ACMP0)
 
#define ACMP0_IEN   ACMP_IEN(ACMP0)
 
#define ACMP0_IF   ACMP_IF(ACMP0)
 
#define ACMP0_IFS   ACMP_IFS(ACMP0)
 
#define ACMP0_IFC   ACMP_IFC(ACMP0)
 
#define ACMP0_ROUTE   ACMP_ROUTE(ACMP0)
 
#define ACMP1   ACMP1_BASE
 
#define ACMP1_CTRL   ACMP_CTRL(ACMP1)
 
#define ACMP1_INPUTSEL   ACMP_INPUTSEL(ACMP1)
 
#define ACMP1_STATUS   ACMP_STATUS(ACMP1)
 
#define ACMP1_IEN   ACMP_IEN(ACMP1)
 
#define ACMP1_IF   ACMP_IF(ACMP1)
 
#define ACMP1_IFS   ACMP_IFS(ACMP1)
 
#define ACMP1_IFC   ACMP_IFC(ACMP1)
 
#define ACMP1_ROUTE   ACMP_ROUTE(ACMP1)
 

Detailed Description

Defined Constants and Types for the Analog Comparator module

LGPL License Terms libopencm3 License

Macro Definition Documentation

◆ ACMP0

#define ACMP0   ACMP0_BASE

Definition at line 167 of file acmp_common.h.

◆ ACMP0_CTRL

#define ACMP0_CTRL   ACMP_CTRL(ACMP0)

Definition at line 168 of file acmp_common.h.

◆ ACMP0_IEN

#define ACMP0_IEN   ACMP_IEN(ACMP0)

Definition at line 171 of file acmp_common.h.

◆ ACMP0_IF

#define ACMP0_IF   ACMP_IF(ACMP0)

Definition at line 172 of file acmp_common.h.

◆ ACMP0_IFC

#define ACMP0_IFC   ACMP_IFC(ACMP0)

Definition at line 174 of file acmp_common.h.

◆ ACMP0_IFS

#define ACMP0_IFS   ACMP_IFS(ACMP0)

Definition at line 173 of file acmp_common.h.

◆ ACMP0_INPUTSEL

#define ACMP0_INPUTSEL   ACMP_INPUTSEL(ACMP0)

Definition at line 169 of file acmp_common.h.

◆ ACMP0_ROUTE

#define ACMP0_ROUTE   ACMP_ROUTE(ACMP0)

Definition at line 175 of file acmp_common.h.

◆ ACMP0_STATUS

#define ACMP0_STATUS   ACMP_STATUS(ACMP0)

Definition at line 170 of file acmp_common.h.

◆ ACMP1

#define ACMP1   ACMP1_BASE

Definition at line 177 of file acmp_common.h.

◆ ACMP1_CTRL

#define ACMP1_CTRL   ACMP_CTRL(ACMP1)

Definition at line 178 of file acmp_common.h.

◆ ACMP1_IEN

#define ACMP1_IEN   ACMP_IEN(ACMP1)

Definition at line 181 of file acmp_common.h.

◆ ACMP1_IF

#define ACMP1_IF   ACMP_IF(ACMP1)

Definition at line 182 of file acmp_common.h.

◆ ACMP1_IFC

#define ACMP1_IFC   ACMP_IFC(ACMP1)

Definition at line 184 of file acmp_common.h.

◆ ACMP1_IFS

#define ACMP1_IFS   ACMP_IFS(ACMP1)

Definition at line 183 of file acmp_common.h.

◆ ACMP1_INPUTSEL

#define ACMP1_INPUTSEL   ACMP_INPUTSEL(ACMP1)

Definition at line 179 of file acmp_common.h.

◆ ACMP1_ROUTE

#define ACMP1_ROUTE   ACMP_ROUTE(ACMP1)

Definition at line 185 of file acmp_common.h.

◆ ACMP1_STATUS

#define ACMP1_STATUS   ACMP_STATUS(ACMP1)

Definition at line 180 of file acmp_common.h.

◆ ACMP_CTRL

#define ACMP_CTRL (   base)    ((base) + 0x000)

Definition at line 29 of file acmp_common.h.

◆ ACMP_CTRL_BIASPROG

#define ACMP_CTRL_BIASPROG (   v)     (((v) << ACMP_CTRL_BIASPROG_SHIFT) & ACMP_CTRL_BIASPROG_MASK)

Definition at line 44 of file acmp_common.h.

◆ ACMP_CTRL_BIASPROG_MASK

#define ACMP_CTRL_BIASPROG_MASK   (0xF << ACMP_CTRL_BIASPROG_SHIFT)

Definition at line 43 of file acmp_common.h.

◆ ACMP_CTRL_BIASPROG_SHIFT

#define ACMP_CTRL_BIASPROG_SHIFT   (24)

Definition at line 42 of file acmp_common.h.

◆ ACMP_CTRL_EN

#define ACMP_CTRL_EN   (1 << 0)

Definition at line 80 of file acmp_common.h.

◆ ACMP_CTRL_FULLBIAS

#define ACMP_CTRL_FULLBIAS   (1 << 31)

Definition at line 39 of file acmp_common.h.

◆ ACMP_CTRL_GPIOINV

#define ACMP_CTRL_GPIOINV   (1 << 3)

Definition at line 77 of file acmp_common.h.

◆ ACMP_CTRL_HALFBIAS

#define ACMP_CTRL_HALFBIAS   (1 << 30)

Definition at line 40 of file acmp_common.h.

◆ ACMP_CTRL_HYSTSEL

#define ACMP_CTRL_HYSTSEL (   v)     (((v) << ACMP_CTRL_HYSTSEL_SHIFT) & ACMP_CTRL_HYSTSEL_MASK)

Definition at line 65 of file acmp_common.h.

◆ ACMP_CTRL_HYSTSEL_HYST0

#define ACMP_CTRL_HYSTSEL_HYST0   0

Definition at line 68 of file acmp_common.h.

◆ ACMP_CTRL_HYSTSEL_HYST1

#define ACMP_CTRL_HYSTSEL_HYST1   1

Definition at line 69 of file acmp_common.h.

◆ ACMP_CTRL_HYSTSEL_HYST2

#define ACMP_CTRL_HYSTSEL_HYST2   2

Definition at line 70 of file acmp_common.h.

◆ ACMP_CTRL_HYSTSEL_HYST3

#define ACMP_CTRL_HYSTSEL_HYST3   3

Definition at line 71 of file acmp_common.h.

◆ ACMP_CTRL_HYSTSEL_HYST4

#define ACMP_CTRL_HYSTSEL_HYST4   4

Definition at line 72 of file acmp_common.h.

◆ ACMP_CTRL_HYSTSEL_HYST5

#define ACMP_CTRL_HYSTSEL_HYST5   5

Definition at line 73 of file acmp_common.h.

◆ ACMP_CTRL_HYSTSEL_HYST6

#define ACMP_CTRL_HYSTSEL_HYST6   6

Definition at line 74 of file acmp_common.h.

◆ ACMP_CTRL_HYSTSEL_HYST7

#define ACMP_CTRL_HYSTSEL_HYST7   7

Definition at line 75 of file acmp_common.h.

◆ ACMP_CTRL_HYSTSEL_HYSTx

#define ACMP_CTRL_HYSTSEL_HYSTx (   x)    ACMP_CTRL_HYSTSEL(x)

Definition at line 67 of file acmp_common.h.

◆ ACMP_CTRL_HYSTSEL_MASK

#define ACMP_CTRL_HYSTSEL_MASK   (0x7 << ACMP_CTRL_HYSTSEL_SHIFT)

Definition at line 64 of file acmp_common.h.

◆ ACMP_CTRL_HYSTSEL_SHIFT

#define ACMP_CTRL_HYSTSEL_SHIFT   (8)

Definition at line 63 of file acmp_common.h.

◆ ACMP_CTRL_IFALL

#define ACMP_CTRL_IFALL   (1 << 17)

Definition at line 47 of file acmp_common.h.

◆ ACMP_CTRL_INACTVAL

#define ACMP_CTRL_INACTVAL   (1 << 2)

Definition at line 78 of file acmp_common.h.

◆ ACMP_CTRL_IRISE

#define ACMP_CTRL_IRISE   (1 << 16)

Definition at line 48 of file acmp_common.h.

◆ ACMP_CTRL_MUXEN

#define ACMP_CTRL_MUXEN   (1 << 1)

Definition at line 79 of file acmp_common.h.

◆ ACMP_CTRL_WARMTIME

#define ACMP_CTRL_WARMTIME (   v)     (((v) << ACMP_CTRL_WARMTIME_SHIFT) & ACMP_CTRL_WARMTIME_MASK)

Definition at line 52 of file acmp_common.h.

◆ ACMP_CTRL_WARMTIME_128CYCLES

#define ACMP_CTRL_WARMTIME_128CYCLES   5

Definition at line 59 of file acmp_common.h.

◆ ACMP_CTRL_WARMTIME_16CYCLES

#define ACMP_CTRL_WARMTIME_16CYCLES   2

Definition at line 56 of file acmp_common.h.

◆ ACMP_CTRL_WARMTIME_256CYCLES

#define ACMP_CTRL_WARMTIME_256CYCLES   6

Definition at line 60 of file acmp_common.h.

◆ ACMP_CTRL_WARMTIME_32CYCLES

#define ACMP_CTRL_WARMTIME_32CYCLES   3

Definition at line 57 of file acmp_common.h.

◆ ACMP_CTRL_WARMTIME_4CYCLES

#define ACMP_CTRL_WARMTIME_4CYCLES   0

Definition at line 54 of file acmp_common.h.

◆ ACMP_CTRL_WARMTIME_512CYCLES

#define ACMP_CTRL_WARMTIME_512CYCLES   7

Definition at line 61 of file acmp_common.h.

◆ ACMP_CTRL_WARMTIME_64CYCLES

#define ACMP_CTRL_WARMTIME_64CYCLES   4

Definition at line 58 of file acmp_common.h.

◆ ACMP_CTRL_WARMTIME_8CYCLES

#define ACMP_CTRL_WARMTIME_8CYCLES   1

Definition at line 55 of file acmp_common.h.

◆ ACMP_CTRL_WARMTIME_MASK

#define ACMP_CTRL_WARMTIME_MASK   (0x7 << ACMP_CTRL_WARMTIME_SHIFT)

Definition at line 51 of file acmp_common.h.

◆ ACMP_CTRL_WARMTIME_SHIFT

#define ACMP_CTRL_WARMTIME_SHIFT   (8)

Definition at line 50 of file acmp_common.h.

◆ ACMP_IEN

#define ACMP_IEN (   base)    ((base) + 0x00C)

Definition at line 32 of file acmp_common.h.

◆ ACMP_IEN_EDGE

#define ACMP_IEN_EDGE   (1 << 0)

Definition at line 141 of file acmp_common.h.

◆ ACMP_IEN_WARMUP

#define ACMP_IEN_WARMUP   (1 << 1)

Definition at line 140 of file acmp_common.h.

◆ ACMP_IF

#define ACMP_IF (   base)    ((base) + 0x010)

Definition at line 33 of file acmp_common.h.

◆ ACMP_IF_EDGE

#define ACMP_IF_EDGE   (1 << 0)

Definition at line 145 of file acmp_common.h.

◆ ACMP_IF_WARMUP

#define ACMP_IF_WARMUP   (1 << 1)

Definition at line 144 of file acmp_common.h.

◆ ACMP_IFC

#define ACMP_IFC (   base)    ((base) + 0x018)

Definition at line 35 of file acmp_common.h.

◆ ACMP_IFC_EDGE

#define ACMP_IFC_EDGE   (1 << 0)

Definition at line 153 of file acmp_common.h.

◆ ACMP_IFC_WARMUP

#define ACMP_IFC_WARMUP   (1 << 1)

Definition at line 152 of file acmp_common.h.

◆ ACMP_IFS

#define ACMP_IFS (   base)    ((base) + 0x014)

Definition at line 34 of file acmp_common.h.

◆ ACMP_IFS_EDGE

#define ACMP_IFS_EDGE   (1 << 0)

Definition at line 149 of file acmp_common.h.

◆ ACMP_IFS_WARMUP

#define ACMP_IFS_WARMUP   (1 << 1)

Definition at line 148 of file acmp_common.h.

◆ ACMP_INPUTSEL

#define ACMP_INPUTSEL (   base)    ((base) + 0x004)

Definition at line 30 of file acmp_common.h.

◆ ACMP_INPUTSEL_CSRESEN

#define ACMP_INPUTSEL_CSRESEN   (1 << 24)

Definition at line 93 of file acmp_common.h.

◆ ACMP_INPUTSEL_CSRESSEL

#define ACMP_INPUTSEL_CSRESSEL (   v)     (((v) << ACMP_INPUTSEL_CSRESSEL_SHIFT) & ACMP_INPUTSEL_CSRESSEL_MASK)

Definition at line 85 of file acmp_common.h.

◆ ACMP_INPUTSEL_CSRESSEL_MASK

#define ACMP_INPUTSEL_CSRESSEL_MASK   (0x3 << ACMP_INPUTSEL_CSRESSEL_SHIFT)

Definition at line 84 of file acmp_common.h.

◆ ACMP_INPUTSEL_CSRESSEL_RES0

#define ACMP_INPUTSEL_CSRESSEL_RES0   ACMP_INPUTSEL_CSRESSEL_RESx(0)

Definition at line 88 of file acmp_common.h.

◆ ACMP_INPUTSEL_CSRESSEL_RES1

#define ACMP_INPUTSEL_CSRESSEL_RES1   ACMP_INPUTSEL_CSRESSEL_RESx(1)

Definition at line 89 of file acmp_common.h.

◆ ACMP_INPUTSEL_CSRESSEL_RES2

#define ACMP_INPUTSEL_CSRESSEL_RES2   ACMP_INPUTSEL_CSRESSEL_RESx(2)

Definition at line 90 of file acmp_common.h.

◆ ACMP_INPUTSEL_CSRESSEL_RES3

#define ACMP_INPUTSEL_CSRESSEL_RES3   ACMP_INPUTSEL_CSRESSEL_RESx(3)

Definition at line 91 of file acmp_common.h.

◆ ACMP_INPUTSEL_CSRESSEL_RESx

#define ACMP_INPUTSEL_CSRESSEL_RESx (   x)    ACMP_INPUTSEL_CSRESSEL_RES(x)

Definition at line 87 of file acmp_common.h.

◆ ACMP_INPUTSEL_CSRESSEL_SHIFT

#define ACMP_INPUTSEL_CSRESSEL_SHIFT   (28)

Definition at line 83 of file acmp_common.h.

◆ ACMP_INPUTSEL_LPREF

#define ACMP_INPUTSEL_LPREF   (1 << 16)

Definition at line 94 of file acmp_common.h.

◆ ACMP_INPUTSEL_NEGSEL

#define ACMP_INPUTSEL_NEGSEL (   v)     (((v) << ACMP_INPUTSEL_NEGSEL_SHIFT) & ACMP_INPUTSEL_NEGSEL_MASK)

Definition at line 103 of file acmp_common.h.

◆ ACMP_INPUTSEL_NEGSEL_1V25

#define ACMP_INPUTSEL_NEGSEL_1V25   8

Definition at line 114 of file acmp_common.h.

◆ ACMP_INPUTSEL_NEGSEL_2V5

#define ACMP_INPUTSEL_NEGSEL_2V5   9

Definition at line 115 of file acmp_common.h.

◆ ACMP_INPUTSEL_NEGSEL_CAPSENSE

#define ACMP_INPUTSEL_NEGSEL_CAPSENSE   11

Definition at line 117 of file acmp_common.h.

◆ ACMP_INPUTSEL_NEGSEL_CH0

#define ACMP_INPUTSEL_NEGSEL_CH0   0

Definition at line 106 of file acmp_common.h.

◆ ACMP_INPUTSEL_NEGSEL_CH1

#define ACMP_INPUTSEL_NEGSEL_CH1   1

Definition at line 107 of file acmp_common.h.

◆ ACMP_INPUTSEL_NEGSEL_CH2

#define ACMP_INPUTSEL_NEGSEL_CH2   2

Definition at line 108 of file acmp_common.h.

◆ ACMP_INPUTSEL_NEGSEL_CH3

#define ACMP_INPUTSEL_NEGSEL_CH3   3

Definition at line 109 of file acmp_common.h.

◆ ACMP_INPUTSEL_NEGSEL_CH4

#define ACMP_INPUTSEL_NEGSEL_CH4   4

Definition at line 110 of file acmp_common.h.

◆ ACMP_INPUTSEL_NEGSEL_CH5

#define ACMP_INPUTSEL_NEGSEL_CH5   5

Definition at line 111 of file acmp_common.h.

◆ ACMP_INPUTSEL_NEGSEL_CH6

#define ACMP_INPUTSEL_NEGSEL_CH6   6

Definition at line 112 of file acmp_common.h.

◆ ACMP_INPUTSEL_NEGSEL_CH7

#define ACMP_INPUTSEL_NEGSEL_CH7   7

Definition at line 113 of file acmp_common.h.

◆ ACMP_INPUTSEL_NEGSEL_CHx

#define ACMP_INPUTSEL_NEGSEL_CHx (   x)    ACMP_INPUTSEL_NEGSEL(x)

Definition at line 105 of file acmp_common.h.

◆ ACMP_INPUTSEL_NEGSEL_DAC0CH0

#define ACMP_INPUTSEL_NEGSEL_DAC0CH0   12

Definition at line 118 of file acmp_common.h.

◆ ACMP_INPUTSEL_NEGSEL_DAC0CH1

#define ACMP_INPUTSEL_NEGSEL_DAC0CH1   13

Definition at line 119 of file acmp_common.h.

◆ ACMP_INPUTSEL_NEGSEL_MASK

#define ACMP_INPUTSEL_NEGSEL_MASK   (0x3F << ACMP_INPUTSEL_NEGSEL_SHIFT)

Definition at line 102 of file acmp_common.h.

◆ ACMP_INPUTSEL_NEGSEL_SHIFT

#define ACMP_INPUTSEL_NEGSEL_SHIFT   (8)

Definition at line 101 of file acmp_common.h.

◆ ACMP_INPUTSEL_NEGSEL_VDD

#define ACMP_INPUTSEL_NEGSEL_VDD   10

Definition at line 116 of file acmp_common.h.

◆ ACMP_INPUTSEL_POSSEL

#define ACMP_INPUTSEL_POSSEL (   v)     (((v) << ACMP_INPUTSEL_LPOSSELL_SHIFT) & ACMP_INPUTSEL_LPOSSELL_MASK)

Definition at line 123 of file acmp_common.h.

◆ ACMP_INPUTSEL_POSSEL_CH0

#define ACMP_INPUTSEL_POSSEL_CH0   0

Definition at line 126 of file acmp_common.h.

◆ ACMP_INPUTSEL_POSSEL_CH1

#define ACMP_INPUTSEL_POSSEL_CH1   1

Definition at line 127 of file acmp_common.h.

◆ ACMP_INPUTSEL_POSSEL_CH2

#define ACMP_INPUTSEL_POSSEL_CH2   2

Definition at line 128 of file acmp_common.h.

◆ ACMP_INPUTSEL_POSSEL_CH3

#define ACMP_INPUTSEL_POSSEL_CH3   3

Definition at line 129 of file acmp_common.h.

◆ ACMP_INPUTSEL_POSSEL_CH4

#define ACMP_INPUTSEL_POSSEL_CH4   4

Definition at line 130 of file acmp_common.h.

◆ ACMP_INPUTSEL_POSSEL_CH5

#define ACMP_INPUTSEL_POSSEL_CH5   5

Definition at line 131 of file acmp_common.h.

◆ ACMP_INPUTSEL_POSSEL_CH6

#define ACMP_INPUTSEL_POSSEL_CH6   6

Definition at line 132 of file acmp_common.h.

◆ ACMP_INPUTSEL_POSSEL_CH7

#define ACMP_INPUTSEL_POSSEL_CH7   7

Definition at line 133 of file acmp_common.h.

◆ ACMP_INPUTSEL_POSSEL_CHx

#define ACMP_INPUTSEL_POSSEL_CHx (   x)    ACMP_INPUTSEL_POSSEL(x)

Definition at line 125 of file acmp_common.h.

◆ ACMP_INPUTSEL_POSSEL_MASK

#define ACMP_INPUTSEL_POSSEL_MASK   (0x7 << ACMP_INPUTSEL_POSSEL_SHIFT)

Definition at line 122 of file acmp_common.h.

◆ ACMP_INPUTSEL_POSSEL_SHIFT

#define ACMP_INPUTSEL_POSSEL_SHIFT   (0)

Definition at line 121 of file acmp_common.h.

◆ ACMP_INPUTSEL_VDDLEVEL

#define ACMP_INPUTSEL_VDDLEVEL (   v)     (((v) << ACMP_INPUTSEL_VDDLEVEL_SHIFT) & ACMP_INPUTSEL_VDDLEVEL_MASK)

Definition at line 98 of file acmp_common.h.

◆ ACMP_INPUTSEL_VDDLEVEL_MASK

#define ACMP_INPUTSEL_VDDLEVEL_MASK   (0x3F << ACMP_INPUTSEL_VDDLEVEL_SHIFT)

Definition at line 97 of file acmp_common.h.

◆ ACMP_INPUTSEL_VDDLEVEL_SHIFT

#define ACMP_INPUTSEL_VDDLEVEL_SHIFT   (8)

Definition at line 96 of file acmp_common.h.

◆ ACMP_ROUTE

#define ACMP_ROUTE (   base)    ((base) + 0x01C)

Definition at line 36 of file acmp_common.h.

◆ ACMP_ROUTE_ACMPPEN

#define ACMP_ROUTE_ACMPPEN   (1 << 0)

Definition at line 165 of file acmp_common.h.

◆ ACMP_ROUTE_LOCATION

#define ACMP_ROUTE_LOCATION (   v)     (((v) << ACMP_ROUTE_LOCATION_SHIFT) & ACMP_ROUTE_LOCATION_MASK)

Definition at line 158 of file acmp_common.h.

◆ ACMP_ROUTE_LOCATION_LOC0

#define ACMP_ROUTE_LOCATION_LOC0   ACMP_ROUTE_LOCATIONx(0)

Definition at line 161 of file acmp_common.h.

◆ ACMP_ROUTE_LOCATION_LOC1

#define ACMP_ROUTE_LOCATION_LOC1   ACMP_ROUTE_LOCATIONx(1)

Definition at line 162 of file acmp_common.h.

◆ ACMP_ROUTE_LOCATION_LOC2

#define ACMP_ROUTE_LOCATION_LOC2   ACMP_ROUTE_LOCATIONx(2)

Definition at line 163 of file acmp_common.h.

◆ ACMP_ROUTE_LOCATION_LOCx

#define ACMP_ROUTE_LOCATION_LOCx (   x)    ACMP_ROUTE_LOCATION(x)

Definition at line 160 of file acmp_common.h.

◆ ACMP_ROUTE_LOCATION_MASK

#define ACMP_ROUTE_LOCATION_MASK   (0x7 << ACMP_ROUTE_LOCATION_SHIFT)

Definition at line 157 of file acmp_common.h.

◆ ACMP_ROUTE_LOCATION_SHIFT

#define ACMP_ROUTE_LOCATION_SHIFT   (8)

Definition at line 156 of file acmp_common.h.

◆ ACMP_STATUS

#define ACMP_STATUS (   base)    ((base) + 0x008)

Definition at line 31 of file acmp_common.h.

◆ ACMP_STATUS_ACMPACT

#define ACMP_STATUS_ACMPACT   (1 << 0)

Definition at line 137 of file acmp_common.h.

◆ ACMP_STATUS_ACMPOUT

#define ACMP_STATUS_ACMPOUT   (1 << 1)

Definition at line 136 of file acmp_common.h.