libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
|
Defined Constants and Types for the Analog Comparator module More...
Defined Constants and Types for the Analog Comparator module
LGPL License Terms libopencm3 License
#define ACMP0 ACMP0_BASE |
Definition at line 167 of file acmp_common.h.
Definition at line 168 of file acmp_common.h.
Definition at line 171 of file acmp_common.h.
Definition at line 172 of file acmp_common.h.
Definition at line 174 of file acmp_common.h.
Definition at line 173 of file acmp_common.h.
#define ACMP0_INPUTSEL ACMP_INPUTSEL(ACMP0) |
Definition at line 169 of file acmp_common.h.
#define ACMP0_ROUTE ACMP_ROUTE(ACMP0) |
Definition at line 175 of file acmp_common.h.
#define ACMP0_STATUS ACMP_STATUS(ACMP0) |
Definition at line 170 of file acmp_common.h.
#define ACMP1 ACMP1_BASE |
Definition at line 177 of file acmp_common.h.
Definition at line 178 of file acmp_common.h.
Definition at line 181 of file acmp_common.h.
Definition at line 182 of file acmp_common.h.
Definition at line 184 of file acmp_common.h.
Definition at line 183 of file acmp_common.h.
#define ACMP1_INPUTSEL ACMP_INPUTSEL(ACMP1) |
Definition at line 179 of file acmp_common.h.
#define ACMP1_ROUTE ACMP_ROUTE(ACMP1) |
Definition at line 185 of file acmp_common.h.
#define ACMP1_STATUS ACMP_STATUS(ACMP1) |
Definition at line 180 of file acmp_common.h.
#define ACMP_CTRL | ( | base | ) | ((base) + 0x000) |
Definition at line 29 of file acmp_common.h.
#define ACMP_CTRL_BIASPROG | ( | v | ) | (((v) << ACMP_CTRL_BIASPROG_SHIFT) & ACMP_CTRL_BIASPROG_MASK) |
Definition at line 44 of file acmp_common.h.
#define ACMP_CTRL_BIASPROG_MASK (0xF << ACMP_CTRL_BIASPROG_SHIFT) |
Definition at line 43 of file acmp_common.h.
#define ACMP_CTRL_BIASPROG_SHIFT (24) |
Definition at line 42 of file acmp_common.h.
#define ACMP_CTRL_EN (1 << 0) |
Definition at line 80 of file acmp_common.h.
#define ACMP_CTRL_FULLBIAS (1 << 31) |
Definition at line 39 of file acmp_common.h.
#define ACMP_CTRL_GPIOINV (1 << 3) |
Definition at line 77 of file acmp_common.h.
#define ACMP_CTRL_HALFBIAS (1 << 30) |
Definition at line 40 of file acmp_common.h.
#define ACMP_CTRL_HYSTSEL | ( | v | ) | (((v) << ACMP_CTRL_HYSTSEL_SHIFT) & ACMP_CTRL_HYSTSEL_MASK) |
Definition at line 65 of file acmp_common.h.
#define ACMP_CTRL_HYSTSEL_HYST0 0 |
Definition at line 68 of file acmp_common.h.
#define ACMP_CTRL_HYSTSEL_HYST1 1 |
Definition at line 69 of file acmp_common.h.
#define ACMP_CTRL_HYSTSEL_HYST2 2 |
Definition at line 70 of file acmp_common.h.
#define ACMP_CTRL_HYSTSEL_HYST3 3 |
Definition at line 71 of file acmp_common.h.
#define ACMP_CTRL_HYSTSEL_HYST4 4 |
Definition at line 72 of file acmp_common.h.
#define ACMP_CTRL_HYSTSEL_HYST5 5 |
Definition at line 73 of file acmp_common.h.
#define ACMP_CTRL_HYSTSEL_HYST6 6 |
Definition at line 74 of file acmp_common.h.
#define ACMP_CTRL_HYSTSEL_HYST7 7 |
Definition at line 75 of file acmp_common.h.
#define ACMP_CTRL_HYSTSEL_HYSTx | ( | x | ) | ACMP_CTRL_HYSTSEL(x) |
Definition at line 67 of file acmp_common.h.
#define ACMP_CTRL_HYSTSEL_MASK (0x7 << ACMP_CTRL_HYSTSEL_SHIFT) |
Definition at line 64 of file acmp_common.h.
#define ACMP_CTRL_HYSTSEL_SHIFT (8) |
Definition at line 63 of file acmp_common.h.
#define ACMP_CTRL_IFALL (1 << 17) |
Definition at line 47 of file acmp_common.h.
#define ACMP_CTRL_INACTVAL (1 << 2) |
Definition at line 78 of file acmp_common.h.
#define ACMP_CTRL_IRISE (1 << 16) |
Definition at line 48 of file acmp_common.h.
#define ACMP_CTRL_MUXEN (1 << 1) |
Definition at line 79 of file acmp_common.h.
#define ACMP_CTRL_WARMTIME | ( | v | ) | (((v) << ACMP_CTRL_WARMTIME_SHIFT) & ACMP_CTRL_WARMTIME_MASK) |
Definition at line 52 of file acmp_common.h.
#define ACMP_CTRL_WARMTIME_128CYCLES 5 |
Definition at line 59 of file acmp_common.h.
#define ACMP_CTRL_WARMTIME_16CYCLES 2 |
Definition at line 56 of file acmp_common.h.
#define ACMP_CTRL_WARMTIME_256CYCLES 6 |
Definition at line 60 of file acmp_common.h.
#define ACMP_CTRL_WARMTIME_32CYCLES 3 |
Definition at line 57 of file acmp_common.h.
#define ACMP_CTRL_WARMTIME_4CYCLES 0 |
Definition at line 54 of file acmp_common.h.
#define ACMP_CTRL_WARMTIME_512CYCLES 7 |
Definition at line 61 of file acmp_common.h.
#define ACMP_CTRL_WARMTIME_64CYCLES 4 |
Definition at line 58 of file acmp_common.h.
#define ACMP_CTRL_WARMTIME_8CYCLES 1 |
Definition at line 55 of file acmp_common.h.
#define ACMP_CTRL_WARMTIME_MASK (0x7 << ACMP_CTRL_WARMTIME_SHIFT) |
Definition at line 51 of file acmp_common.h.
#define ACMP_CTRL_WARMTIME_SHIFT (8) |
Definition at line 50 of file acmp_common.h.
#define ACMP_IEN | ( | base | ) | ((base) + 0x00C) |
Definition at line 32 of file acmp_common.h.
#define ACMP_IEN_EDGE (1 << 0) |
Definition at line 141 of file acmp_common.h.
#define ACMP_IEN_WARMUP (1 << 1) |
Definition at line 140 of file acmp_common.h.
#define ACMP_IF | ( | base | ) | ((base) + 0x010) |
Definition at line 33 of file acmp_common.h.
#define ACMP_IF_EDGE (1 << 0) |
Definition at line 145 of file acmp_common.h.
#define ACMP_IF_WARMUP (1 << 1) |
Definition at line 144 of file acmp_common.h.
#define ACMP_IFC | ( | base | ) | ((base) + 0x018) |
Definition at line 35 of file acmp_common.h.
#define ACMP_IFC_EDGE (1 << 0) |
Definition at line 153 of file acmp_common.h.
#define ACMP_IFC_WARMUP (1 << 1) |
Definition at line 152 of file acmp_common.h.
#define ACMP_IFS | ( | base | ) | ((base) + 0x014) |
Definition at line 34 of file acmp_common.h.
#define ACMP_IFS_EDGE (1 << 0) |
Definition at line 149 of file acmp_common.h.
#define ACMP_IFS_WARMUP (1 << 1) |
Definition at line 148 of file acmp_common.h.
#define ACMP_INPUTSEL | ( | base | ) | ((base) + 0x004) |
Definition at line 30 of file acmp_common.h.
#define ACMP_INPUTSEL_CSRESEN (1 << 24) |
Definition at line 93 of file acmp_common.h.
#define ACMP_INPUTSEL_CSRESSEL | ( | v | ) | (((v) << ACMP_INPUTSEL_CSRESSEL_SHIFT) & ACMP_INPUTSEL_CSRESSEL_MASK) |
Definition at line 85 of file acmp_common.h.
#define ACMP_INPUTSEL_CSRESSEL_MASK (0x3 << ACMP_INPUTSEL_CSRESSEL_SHIFT) |
Definition at line 84 of file acmp_common.h.
#define ACMP_INPUTSEL_CSRESSEL_RES0 ACMP_INPUTSEL_CSRESSEL_RESx(0) |
Definition at line 88 of file acmp_common.h.
#define ACMP_INPUTSEL_CSRESSEL_RES1 ACMP_INPUTSEL_CSRESSEL_RESx(1) |
Definition at line 89 of file acmp_common.h.
#define ACMP_INPUTSEL_CSRESSEL_RES2 ACMP_INPUTSEL_CSRESSEL_RESx(2) |
Definition at line 90 of file acmp_common.h.
#define ACMP_INPUTSEL_CSRESSEL_RES3 ACMP_INPUTSEL_CSRESSEL_RESx(3) |
Definition at line 91 of file acmp_common.h.
#define ACMP_INPUTSEL_CSRESSEL_RESx | ( | x | ) | ACMP_INPUTSEL_CSRESSEL_RES(x) |
Definition at line 87 of file acmp_common.h.
#define ACMP_INPUTSEL_CSRESSEL_SHIFT (28) |
Definition at line 83 of file acmp_common.h.
#define ACMP_INPUTSEL_LPREF (1 << 16) |
Definition at line 94 of file acmp_common.h.
#define ACMP_INPUTSEL_NEGSEL | ( | v | ) | (((v) << ACMP_INPUTSEL_NEGSEL_SHIFT) & ACMP_INPUTSEL_NEGSEL_MASK) |
Definition at line 103 of file acmp_common.h.
#define ACMP_INPUTSEL_NEGSEL_1V25 8 |
Definition at line 114 of file acmp_common.h.
#define ACMP_INPUTSEL_NEGSEL_2V5 9 |
Definition at line 115 of file acmp_common.h.
#define ACMP_INPUTSEL_NEGSEL_CAPSENSE 11 |
Definition at line 117 of file acmp_common.h.
#define ACMP_INPUTSEL_NEGSEL_CH0 0 |
Definition at line 106 of file acmp_common.h.
#define ACMP_INPUTSEL_NEGSEL_CH1 1 |
Definition at line 107 of file acmp_common.h.
#define ACMP_INPUTSEL_NEGSEL_CH2 2 |
Definition at line 108 of file acmp_common.h.
#define ACMP_INPUTSEL_NEGSEL_CH3 3 |
Definition at line 109 of file acmp_common.h.
#define ACMP_INPUTSEL_NEGSEL_CH4 4 |
Definition at line 110 of file acmp_common.h.
#define ACMP_INPUTSEL_NEGSEL_CH5 5 |
Definition at line 111 of file acmp_common.h.
#define ACMP_INPUTSEL_NEGSEL_CH6 6 |
Definition at line 112 of file acmp_common.h.
#define ACMP_INPUTSEL_NEGSEL_CH7 7 |
Definition at line 113 of file acmp_common.h.
#define ACMP_INPUTSEL_NEGSEL_CHx | ( | x | ) | ACMP_INPUTSEL_NEGSEL(x) |
Definition at line 105 of file acmp_common.h.
#define ACMP_INPUTSEL_NEGSEL_DAC0CH0 12 |
Definition at line 118 of file acmp_common.h.
#define ACMP_INPUTSEL_NEGSEL_DAC0CH1 13 |
Definition at line 119 of file acmp_common.h.
#define ACMP_INPUTSEL_NEGSEL_MASK (0x3F << ACMP_INPUTSEL_NEGSEL_SHIFT) |
Definition at line 102 of file acmp_common.h.
#define ACMP_INPUTSEL_NEGSEL_SHIFT (8) |
Definition at line 101 of file acmp_common.h.
#define ACMP_INPUTSEL_NEGSEL_VDD 10 |
Definition at line 116 of file acmp_common.h.
#define ACMP_INPUTSEL_POSSEL | ( | v | ) | (((v) << ACMP_INPUTSEL_LPOSSELL_SHIFT) & ACMP_INPUTSEL_LPOSSELL_MASK) |
Definition at line 123 of file acmp_common.h.
#define ACMP_INPUTSEL_POSSEL_CH0 0 |
Definition at line 126 of file acmp_common.h.
#define ACMP_INPUTSEL_POSSEL_CH1 1 |
Definition at line 127 of file acmp_common.h.
#define ACMP_INPUTSEL_POSSEL_CH2 2 |
Definition at line 128 of file acmp_common.h.
#define ACMP_INPUTSEL_POSSEL_CH3 3 |
Definition at line 129 of file acmp_common.h.
#define ACMP_INPUTSEL_POSSEL_CH4 4 |
Definition at line 130 of file acmp_common.h.
#define ACMP_INPUTSEL_POSSEL_CH5 5 |
Definition at line 131 of file acmp_common.h.
#define ACMP_INPUTSEL_POSSEL_CH6 6 |
Definition at line 132 of file acmp_common.h.
#define ACMP_INPUTSEL_POSSEL_CH7 7 |
Definition at line 133 of file acmp_common.h.
#define ACMP_INPUTSEL_POSSEL_CHx | ( | x | ) | ACMP_INPUTSEL_POSSEL(x) |
Definition at line 125 of file acmp_common.h.
#define ACMP_INPUTSEL_POSSEL_MASK (0x7 << ACMP_INPUTSEL_POSSEL_SHIFT) |
Definition at line 122 of file acmp_common.h.
#define ACMP_INPUTSEL_POSSEL_SHIFT (0) |
Definition at line 121 of file acmp_common.h.
#define ACMP_INPUTSEL_VDDLEVEL | ( | v | ) | (((v) << ACMP_INPUTSEL_VDDLEVEL_SHIFT) & ACMP_INPUTSEL_VDDLEVEL_MASK) |
Definition at line 98 of file acmp_common.h.
#define ACMP_INPUTSEL_VDDLEVEL_MASK (0x3F << ACMP_INPUTSEL_VDDLEVEL_SHIFT) |
Definition at line 97 of file acmp_common.h.
#define ACMP_INPUTSEL_VDDLEVEL_SHIFT (8) |
Definition at line 96 of file acmp_common.h.
#define ACMP_ROUTE | ( | base | ) | ((base) + 0x01C) |
Definition at line 36 of file acmp_common.h.
#define ACMP_ROUTE_ACMPPEN (1 << 0) |
Definition at line 165 of file acmp_common.h.
#define ACMP_ROUTE_LOCATION | ( | v | ) | (((v) << ACMP_ROUTE_LOCATION_SHIFT) & ACMP_ROUTE_LOCATION_MASK) |
Definition at line 158 of file acmp_common.h.
#define ACMP_ROUTE_LOCATION_LOC0 ACMP_ROUTE_LOCATIONx(0) |
Definition at line 161 of file acmp_common.h.
#define ACMP_ROUTE_LOCATION_LOC1 ACMP_ROUTE_LOCATIONx(1) |
Definition at line 162 of file acmp_common.h.
#define ACMP_ROUTE_LOCATION_LOC2 ACMP_ROUTE_LOCATIONx(2) |
Definition at line 163 of file acmp_common.h.
#define ACMP_ROUTE_LOCATION_LOCx | ( | x | ) | ACMP_ROUTE_LOCATION(x) |
Definition at line 160 of file acmp_common.h.
#define ACMP_ROUTE_LOCATION_MASK (0x7 << ACMP_ROUTE_LOCATION_SHIFT) |
Definition at line 157 of file acmp_common.h.
#define ACMP_ROUTE_LOCATION_SHIFT (8) |
Definition at line 156 of file acmp_common.h.
#define ACMP_STATUS | ( | base | ) | ((base) + 0x008) |
Definition at line 31 of file acmp_common.h.
#define ACMP_STATUS_ACMPACT (1 << 0) |
Definition at line 137 of file acmp_common.h.
#define ACMP_STATUS_ACMPOUT (1 << 1) |
Definition at line 136 of file acmp_common.h.