libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
|
Defined Constants and Types for the D/A Converter module More...
Modules | |
DAC Channel Number | |
Functions | |
void | dac_set_refresh_cycle (uint32_t dac_base, uint32_t refrsel) |
Set DAC refresh cycle. More... | |
void | dac_set_clock_prescaler (uint32_t dac_base, uint32_t presc) |
Set DAC clock prescaler. More... | |
void | dac_set_reference (uint32_t dac_base, uint32_t refsel) |
Set DAC reference. More... | |
void | dac_set_out_mode (uint32_t dac_base, uint32_t outmode) |
Set DAC output mode. More... | |
void | dac_set_conversion_mode (uint32_t dac_base, uint32_t convmode) |
Set conversion mode. More... | |
void | dac_enable_sine (uint32_t dac_base) |
Enable Sine wave on output. More... | |
void | dac_disable_sine (uint32_t dac_base) |
Disable Sine wave on output. More... | |
void | dac_set_prs_trigger (uint32_t dac_base, enum dac_ch dac_chan, enum prs_ch prs_chan) |
Set PRS trigger source on DAC channel. More... | |
void | dac_enable_prs_trigger (uint32_t dac_base, enum dac_ch ch) |
Enable PRS triggerring. More... | |
void | dac_disable_prs_trigger (uint32_t dac_base, enum dac_ch ch) |
Disable PRS triggerring. More... | |
void | dac_enable_auto_refresh (uint32_t dac_base, enum dac_ch ch) |
Enable auto refresh. More... | |
void | dac_disable_auto_refresh (uint32_t dac_base, enum dac_ch ch) |
Disable auto refresh. More... | |
void | dac_enable_channel (uint32_t dac_base, enum dac_ch ch) |
Enable channel. More... | |
void | dac_disable_channel (uint32_t dac_base, enum dac_ch ch) |
Disable channel. More... | |
Defined Constants and Types for the D/A Converter module
LGPL License Terms libopencm3 License
#define DAC0 DAC0_BASE |
Definition at line 462 of file dac_common.h.
#define DAC0_BIASPROG DAC_BIASPROG(DAC0) |
Definition at line 475 of file dac_common.h.
Definition at line 474 of file dac_common.h.
#define DAC0_CH0CTRL DAC_CH0CTRL(DAC0) |
Definition at line 465 of file dac_common.h.
#define DAC0_CH0DATA DAC_CH0DATA(DAC0) |
Definition at line 471 of file dac_common.h.
#define DAC0_CH1CTRL DAC_CH1CTRL(DAC0) |
Definition at line 466 of file dac_common.h.
#define DAC0_CH1DATA DAC_CH1DATA(DAC0) |
Definition at line 472 of file dac_common.h.
#define DAC0_COMBDATA DAC_COMBDATA(DAC0) |
Definition at line 473 of file dac_common.h.
Definition at line 463 of file dac_common.h.
Definition at line 467 of file dac_common.h.
Definition at line 468 of file dac_common.h.
Definition at line 470 of file dac_common.h.
Definition at line 469 of file dac_common.h.
#define DAC0_OPA1MUX DAC_OPA1MUX(DAC0) |
Definition at line 479 of file dac_common.h.
#define DAC0_OPA2MUX DAC_OPA2MUX(DAC0) |
Definition at line 480 of file dac_common.h.
#define DAC0_OPACTRL DAC_OPACTRL(DAC0) |
Definition at line 476 of file dac_common.h.
#define DAC0_OPAOFFSET DAC_OPAOFFSET(DAC0) |
Definition at line 478 of file dac_common.h.
#define DAC0_OPAOFFSET DAC_OPAOFFSET(DAC0) |
Definition at line 478 of file dac_common.h.
#define DAC0_STATUS DAC_STATUS(DAC0) |
Definition at line 464 of file dac_common.h.
#define DAC_BIASPROG | ( | base | ) | MMIO32((base) + 0x030) |
Definition at line 43 of file dac_common.h.
#define DAC_BIASPROG_BIASPROG | ( | v | ) | ((((v) << DAC_BIASPROG_BIASPROG_SHIFT)) & DAC_BIASPROG_BIASPROG_MASK) |
Definition at line 229 of file dac_common.h.
#define DAC_BIASPROG_BIASPROG_MASK (0xF << DAC_BIASPROG_BIASPROG_SHIFT) |
Definition at line 228 of file dac_common.h.
#define DAC_BIASPROG_BIASPROG_SHIFT (0) |
Definition at line 227 of file dac_common.h.
#define DAC_BIASPROG_HALFBIAS (1 << 6) |
Definition at line 225 of file dac_common.h.
#define DAC_BIASPROG_OPA2BIASPROG | ( | v | ) |
Definition at line 221 of file dac_common.h.
#define DAC_BIASPROG_OPA2BIASPROG_MASK (0xF << DAC_BIASPROG_OPA2BIASPROG_SHIFT) |
Definition at line 220 of file dac_common.h.
#define DAC_BIASPROG_OPA2BIASPROG_SHIFT (8) |
Definition at line 219 of file dac_common.h.
#define DAC_BIASPROG_OPA2HALFBIAS (1 << 14) |
Definition at line 217 of file dac_common.h.
#define DAC_CAL | ( | base | ) | MMIO32((base) + 0x02C) |
Definition at line 42 of file dac_common.h.
#define DAC_CAL_CH0OFFSET | ( | v | ) | (((v) << DAC_CAL_CH0OFFSET_SHIFT) & DAC_CAL_CH0OFFSET_MASK) |
Definition at line 213 of file dac_common.h.
#define DAC_CAL_CH0OFFSET_MASK (0x3F << DAC_CAL_CH0OFFSET_SHIFT) |
Definition at line 212 of file dac_common.h.
#define DAC_CAL_CH0OFFSET_SHIFT (0) |
Definition at line 211 of file dac_common.h.
#define DAC_CAL_CH1OFFSET | ( | v | ) | (((v) << DAC_CAL_CH1OFFSET_SHIFT) & DAC_CAL_CH1OFFSET_MASK) |
Definition at line 208 of file dac_common.h.
#define DAC_CAL_CH1OFFSET_MASK (0x3F << DAC_CAL_CH1OFFSET_SHIFT) |
Definition at line 207 of file dac_common.h.
#define DAC_CAL_CH1OFFSET_SHIFT (8) |
Definition at line 206 of file dac_common.h.
#define DAC_CAL_GAIN | ( | v | ) | (((v) << DAC_CAL_GAIN_SHIFT) & DAC_CAL_GAIN_MASK) |
Definition at line 203 of file dac_common.h.
#define DAC_CAL_GAIN_MASK (0x7F << DAC_CAL_GAIN_SHIFT) |
Definition at line 202 of file dac_common.h.
#define DAC_CAL_GAIN_SHIFT (16) |
Definition at line 201 of file dac_common.h.
#define DAC_CH0CTRL | ( | base | ) | DAC_CHx_CTRL(base, 0) |
Definition at line 33 of file dac_common.h.
#define DAC_CH0CTRL_EN DAC_CH_CTRL_EN |
Definition at line 152 of file dac_common.h.
#define DAC_CH0CTRL_PRSEN DAC_CH_CTRL_PRSEN |
Definition at line 150 of file dac_common.h.
#define DAC_CH0CTRL_PRSSEL | ( | v | ) | DAC_CH_CTRL_PRSSEL(v) |
Definition at line 135 of file dac_common.h.
#define DAC_CH0CTRL_PRSSEL_MASK DAC_CH_CTRL_PRSSEL_MASK |
Definition at line 134 of file dac_common.h.
#define DAC_CH0CTRL_PRSSEL_PRSCH0 DAC_CH0CTRL_PRSSEL_PRSCH0 |
Definition at line 137 of file dac_common.h.
#define DAC_CH0CTRL_PRSSEL_PRSCH1 DAC_CH_CTRL_PRSSEL_PRSCH1 |
Definition at line 138 of file dac_common.h.
#define DAC_CH0CTRL_PRSSEL_PRSCH10 DAC_CH_CTRL_PRSSEL_PRSCH10 |
Definition at line 147 of file dac_common.h.
#define DAC_CH0CTRL_PRSSEL_PRSCH11 DAC_CH_CTRL_PRSSEL_PRSCH11 |
Definition at line 148 of file dac_common.h.
#define DAC_CH0CTRL_PRSSEL_PRSCH2 DAC_CH_CTRL_PRSSEL_PRSCH2 |
Definition at line 139 of file dac_common.h.
#define DAC_CH0CTRL_PRSSEL_PRSCH3 DAC_CH_CTRL_PRSSEL_PRSCH3 |
Definition at line 140 of file dac_common.h.
#define DAC_CH0CTRL_PRSSEL_PRSCH4 DAC_CH_CTRL_PRSSEL_PRSCH4 |
Definition at line 141 of file dac_common.h.
#define DAC_CH0CTRL_PRSSEL_PRSCH5 DAC_CH_CTRL_PRSSEL_PRSCH5 |
Definition at line 142 of file dac_common.h.
#define DAC_CH0CTRL_PRSSEL_PRSCH6 DAC_CH_CTRL_PRSSEL_PRSCH6 |
Definition at line 143 of file dac_common.h.
#define DAC_CH0CTRL_PRSSEL_PRSCH7 DAC_CH_CTRL_PRSSEL_PRSCH7 |
Definition at line 144 of file dac_common.h.
#define DAC_CH0CTRL_PRSSEL_PRSCH8 DAC_CH_CTRL_PRSSEL_PRSCH8 |
Definition at line 145 of file dac_common.h.
#define DAC_CH0CTRL_PRSSEL_PRSCH9 DAC_CH_CTRL_PRSSEL_PRSCH9 |
Definition at line 146 of file dac_common.h.
#define DAC_CH0CTRL_PRSSEL_PRSCHx | ( | x | ) | DAC_CH_CTRL_PRSSEL_PRSCHx(x) |
Definition at line 136 of file dac_common.h.
#define DAC_CH0CTRL_PRSSEL_SHIFT DAC_CH_CTRL_PRSSEL_SHIFT |
Definition at line 133 of file dac_common.h.
#define DAC_CH0CTRL_REFREN DAC_CH_CTRL_REFREN |
Definition at line 151 of file dac_common.h.
#define DAC_CH0DATA | ( | base | ) | MMIO32((base) + 0x020) |
Definition at line 39 of file dac_common.h.
#define DAC_CH1CTRL | ( | base | ) | DAC_CHx_CTRL(base, 1) |
Definition at line 34 of file dac_common.h.
#define DAC_CH1CTRL_EN DAC_CH_CTRL_EN |
Definition at line 174 of file dac_common.h.
#define DAC_CH1CTRL_PRSEN DAC_CH_CTRL_PRSEN |
Definition at line 172 of file dac_common.h.
#define DAC_CH1CTRL_PRSSEL | ( | v | ) | DAC_CH_CTRL_PRSSEL(v) |
Definition at line 157 of file dac_common.h.
#define DAC_CH1CTRL_PRSSEL_MASK DAC_CH_CTRL_PRSSEL_MASK |
Definition at line 156 of file dac_common.h.
#define DAC_CH1CTRL_PRSSEL_PRSCH0 DAC_CH_CTRL_PRSSEL_PRSCH0 |
Definition at line 159 of file dac_common.h.
#define DAC_CH1CTRL_PRSSEL_PRSCH1 DAC_CH_CTRL_PRSSEL_PRSCH1 |
Definition at line 160 of file dac_common.h.
#define DAC_CH1CTRL_PRSSEL_PRSCH10 DAC_CH_CTRL_PRSSEL_PRSCH10 |
Definition at line 169 of file dac_common.h.
#define DAC_CH1CTRL_PRSSEL_PRSCH11 DAC_CH_CTRL_PRSSEL_PRSCH11 |
Definition at line 170 of file dac_common.h.
#define DAC_CH1CTRL_PRSSEL_PRSCH2 DAC_CH_CTRL_PRSSEL_PRSCH2 |
Definition at line 161 of file dac_common.h.
#define DAC_CH1CTRL_PRSSEL_PRSCH3 DAC_CH_CTRL_PRSSEL_PRSCH3 |
Definition at line 162 of file dac_common.h.
#define DAC_CH1CTRL_PRSSEL_PRSCH4 DAC_CH_CTRL_PRSSEL_PRSCH4 |
Definition at line 163 of file dac_common.h.
#define DAC_CH1CTRL_PRSSEL_PRSCH5 DAC_CH_CTRL_PRSSEL_PRSCH5 |
Definition at line 164 of file dac_common.h.
#define DAC_CH1CTRL_PRSSEL_PRSCH6 DAC_CH_CTRL_PRSSEL_PRSCH6 |
Definition at line 165 of file dac_common.h.
#define DAC_CH1CTRL_PRSSEL_PRSCH7 DAC_CH_CTRL_PRSSEL_PRSCH7 |
Definition at line 166 of file dac_common.h.
#define DAC_CH1CTRL_PRSSEL_PRSCH8 DAC_CH_CTRL_PRSSEL_PRSCH8 |
Definition at line 167 of file dac_common.h.
#define DAC_CH1CTRL_PRSSEL_PRSCH9 DAC_CH_CTRL_PRSSEL_PRSCH9 |
Definition at line 168 of file dac_common.h.
#define DAC_CH1CTRL_PRSSEL_PRSCHx | ( | x | ) | DAC_CH_CTRL_PRSSEL_PRSCHx(x) |
Definition at line 158 of file dac_common.h.
#define DAC_CH1CTRL_PRSSEL_SHIFT DAC_CH_CTRL_PRSSEL_SHIFT |
Definition at line 155 of file dac_common.h.
#define DAC_CH1CTRL_REFREN DAC_CH_CTRL_REFREN |
Definition at line 173 of file dac_common.h.
#define DAC_CH1DATA | ( | base | ) | MMIO32((base) + 0x024) |
Definition at line 40 of file dac_common.h.
#define DAC_CH_CTRL_EN (1 << 0) |
Definition at line 130 of file dac_common.h.
#define DAC_CH_CTRL_PRSEN (1 << 2) |
Definition at line 128 of file dac_common.h.
#define DAC_CH_CTRL_PRSSEL | ( | v | ) | (((v) << DAC_CH_CTRL_PRSSEL_SHIFT) & DAC_CH_CTRL_PRSSEL_MASK) |
Definition at line 112 of file dac_common.h.
#define DAC_CH_CTRL_PRSSEL_MASK (0xF << DAC_CH_CTRL_PRSSEL_SHIFT) |
Definition at line 111 of file dac_common.h.
#define DAC_CH_CTRL_PRSSEL_PRSCH0 0 |
Definition at line 115 of file dac_common.h.
#define DAC_CH_CTRL_PRSSEL_PRSCH1 1 |
Definition at line 116 of file dac_common.h.
#define DAC_CH_CTRL_PRSSEL_PRSCH10 10 |
Definition at line 125 of file dac_common.h.
#define DAC_CH_CTRL_PRSSEL_PRSCH11 11 |
Definition at line 126 of file dac_common.h.
#define DAC_CH_CTRL_PRSSEL_PRSCH2 2 |
Definition at line 117 of file dac_common.h.
#define DAC_CH_CTRL_PRSSEL_PRSCH3 3 |
Definition at line 118 of file dac_common.h.
#define DAC_CH_CTRL_PRSSEL_PRSCH4 4 |
Definition at line 119 of file dac_common.h.
#define DAC_CH_CTRL_PRSSEL_PRSCH5 5 |
Definition at line 120 of file dac_common.h.
#define DAC_CH_CTRL_PRSSEL_PRSCH6 6 |
Definition at line 121 of file dac_common.h.
#define DAC_CH_CTRL_PRSSEL_PRSCH7 7 |
Definition at line 122 of file dac_common.h.
#define DAC_CH_CTRL_PRSSEL_PRSCH8 8 |
Definition at line 123 of file dac_common.h.
#define DAC_CH_CTRL_PRSSEL_PRSCH9 9 |
Definition at line 124 of file dac_common.h.
#define DAC_CH_CTRL_PRSSEL_PRSCHx | ( | x | ) | DAC_CH_CTRL_PRSSEL(x) |
Definition at line 114 of file dac_common.h.
#define DAC_CH_CTRL_PRSSEL_SHIFT (4) |
Definition at line 110 of file dac_common.h.
#define DAC_CH_CTRL_REFREN (1 << 1) |
Definition at line 129 of file dac_common.h.
#define DAC_CHx_CTRL | ( | base, | |
x | |||
) | MMIO32((base) + 0x08 + (0x04 * (x))) |
Definition at line 32 of file dac_common.h.
#define DAC_COMBDATA | ( | base | ) | MMIO32((base) + 0x028) |
Definition at line 41 of file dac_common.h.
#define DAC_CTRL | ( | base | ) | MMIO32((base) + 0x00) |
Definition at line 30 of file dac_common.h.
#define DAC_CTRL_CH0PRESCRST (1 << 7) |
Definition at line 82 of file dac_common.h.
#define DAC_CTRL_CONVMODE | ( | v | ) | (((v) << DAC_CTRL_CONVMODE_SHIFT) & DAC_CTRL_CONVMODE_MASK) |
Definition at line 96 of file dac_common.h.
#define DAC_CTRL_CONVMODE_CONTINUOUS 0 |
Definition at line 98 of file dac_common.h.
#define DAC_CTRL_CONVMODE_MASK (0x3 << DAC_CTRL_CONVMODE_SHIFT) |
Definition at line 95 of file dac_common.h.
#define DAC_CTRL_CONVMODE_SAMPLEHOLD 1 |
Definition at line 99 of file dac_common.h.
#define DAC_CTRL_CONVMODE_SAMPLEOFF 2 |
Definition at line 100 of file dac_common.h.
#define DAC_CTRL_CONVMODE_SHIFT (2) |
Definition at line 94 of file dac_common.h.
#define DAC_CTRL_DIFF (1 << 0) |
Definition at line 103 of file dac_common.h.
#define DAC_CTRL_OUTENPRS (1 << 6) |
Definition at line 83 of file dac_common.h.
#define DAC_CTRL_OUTMODE | ( | v | ) | (((v) << DAC_CTRL_OUTMODE_SHIFT) & DAC_CTRL_OUTMODE_MASK) |
Definition at line 87 of file dac_common.h.
#define DAC_CTRL_OUTMODE_ADC 2 |
Definition at line 91 of file dac_common.h.
#define DAC_CTRL_OUTMODE_DISABLE 0 |
Definition at line 89 of file dac_common.h.
#define DAC_CTRL_OUTMODE_MASK (0x3 << DAC_CTRL_OUTMODE_SHIFT) |
Definition at line 86 of file dac_common.h.
#define DAC_CTRL_OUTMODE_PIN 1 |
Definition at line 90 of file dac_common.h.
#define DAC_CTRL_OUTMODE_PINADC 3 |
Definition at line 92 of file dac_common.h.
#define DAC_CTRL_OUTMODE_SHIFT (4) |
Definition at line 85 of file dac_common.h.
#define DAC_CTRL_PRESC | ( | v | ) | (((v) << DAC_CTRL_PRESC_SHIFT) & DAC_CTRL_PRESC_MASK) |
Definition at line 62 of file dac_common.h.
#define DAC_CTRL_PRESC_DIV1 0 |
Definition at line 64 of file dac_common.h.
#define DAC_CTRL_PRESC_DIV128 7 |
Definition at line 71 of file dac_common.h.
#define DAC_CTRL_PRESC_DIV16 4 |
Definition at line 68 of file dac_common.h.
#define DAC_CTRL_PRESC_DIV2 1 |
Definition at line 65 of file dac_common.h.
#define DAC_CTRL_PRESC_DIV32 5 |
Definition at line 69 of file dac_common.h.
#define DAC_CTRL_PRESC_DIV4 2 |
Definition at line 66 of file dac_common.h.
#define DAC_CTRL_PRESC_DIV64 6 |
Definition at line 70 of file dac_common.h.
#define DAC_CTRL_PRESC_DIV8 3 |
Definition at line 67 of file dac_common.h.
#define DAC_CTRL_PRESC_MASK (0x7 << DAC_CTRL_PRESC_SHIFT) |
Definition at line 61 of file dac_common.h.
#define DAC_CTRL_PRESC_NODIV DAC_CTRL_PRESC_DIV1 |
Definition at line 72 of file dac_common.h.
#define DAC_CTRL_PRESC_SHIFT (16) |
Definition at line 60 of file dac_common.h.
#define DAC_CTRL_REFRSEL | ( | v | ) | (((v) << DAC_CTRL_REFRSEL_SHIFT) & DAC_CTRL_REFRSEL_MASK) |
Definition at line 53 of file dac_common.h.
#define DAC_CTRL_REFRSEL_16CYCLES 1 |
Definition at line 56 of file dac_common.h.
#define DAC_CTRL_REFRSEL_32CYCLES 2 |
Definition at line 57 of file dac_common.h.
#define DAC_CTRL_REFRSEL_64CYCLES 3 |
Definition at line 58 of file dac_common.h.
#define DAC_CTRL_REFRSEL_8CYCLES 0 |
Definition at line 55 of file dac_common.h.
#define DAC_CTRL_REFRSEL_MASK (0x3 << DAC_CTRL_REFRSEL_SHIFT) |
Definition at line 52 of file dac_common.h.
#define DAC_CTRL_REFRSEL_SHIFT (20) |
Definition at line 51 of file dac_common.h.
#define DAC_CTRL_REFSEL | ( | v | ) | (((v) << DAC_CTRL_REFSEL_SHIFT) & DAC_CTRL_REFSEL_MASK) |
Definition at line 76 of file dac_common.h.
#define DAC_CTRL_REFSEL_1V25 0 |
Definition at line 78 of file dac_common.h.
#define DAC_CTRL_REFSEL_2V5 1 |
Definition at line 79 of file dac_common.h.
#define DAC_CTRL_REFSEL_MASK (0x3 << DAC_CTRL_REFSEL_SHIFT) |
Definition at line 75 of file dac_common.h.
#define DAC_CTRL_REFSEL_SHIFT (8) |
Definition at line 74 of file dac_common.h.
#define DAC_CTRL_REFSEL_VDD 2 |
Definition at line 80 of file dac_common.h.
#define DAC_CTRL_SINMODE (1 << 1) |
Definition at line 102 of file dac_common.h.
#define DAC_IEN | ( | base | ) | MMIO32((base) + 0x010) |
Definition at line 35 of file dac_common.h.
#define DAC_IEN_CH0 (1 << 0) |
Definition at line 180 of file dac_common.h.
#define DAC_IEN_CH0UF (4 << 0) |
Definition at line 178 of file dac_common.h.
#define DAC_IEN_CH1 (1 << 1) |
Definition at line 179 of file dac_common.h.
#define DAC_IEN_CH1UF (5 << 0) |
Definition at line 177 of file dac_common.h.
#define DAC_IF | ( | base | ) | MMIO32((base) + 0x014) |
Definition at line 36 of file dac_common.h.
#define DAC_IF_CH0 (1 << 0) |
Definition at line 186 of file dac_common.h.
#define DAC_IF_CH0UF (4 << 0) |
Definition at line 184 of file dac_common.h.
#define DAC_IF_CH1 (1 << 1) |
Definition at line 185 of file dac_common.h.
#define DAC_IF_CH1UF (5 << 0) |
Definition at line 183 of file dac_common.h.
#define DAC_IFC | ( | base | ) | MMIO32((base) + 0x01C) |
Definition at line 38 of file dac_common.h.
#define DAC_IFC_CH0 (1 << 0) |
Definition at line 198 of file dac_common.h.
#define DAC_IFC_CH0UF (4 << 0) |
Definition at line 196 of file dac_common.h.
#define DAC_IFC_CH1 (1 << 1) |
Definition at line 197 of file dac_common.h.
#define DAC_IFC_CH1UF (5 << 0) |
Definition at line 195 of file dac_common.h.
#define DAC_IFS | ( | base | ) | MMIO32((base) + 0x018) |
Definition at line 37 of file dac_common.h.
#define DAC_IFS_CH0 (1 << 0) |
Definition at line 192 of file dac_common.h.
#define DAC_IFS_CH0UF (4 << 0) |
Definition at line 190 of file dac_common.h.
#define DAC_IFS_CH1 (1 << 1) |
Definition at line 191 of file dac_common.h.
#define DAC_IFS_CH1UF (5 << 0) |
Definition at line 189 of file dac_common.h.
#define DAC_OPA0MUX | ( | base | ) | MMIO32((base) + 0x05C) |
Definition at line 46 of file dac_common.h.
#define DAC_OPA0MUX_NEGSEL | ( | v | ) | (((v) << DAC_OPA0MUX_NEGSEL_SHIFT) & DAC_OPA0MUX_NEGSEL_MASK) |
Definition at line 317 of file dac_common.h.
#define DAC_OPA0MUX_NEGSEL_DISABLE 0 |
Definition at line 319 of file dac_common.h.
#define DAC_OPA0MUX_NEGSEL_MASK (0x3 << DAC_OPA0MUX_NEGSEL_SHIFT) |
Definition at line 316 of file dac_common.h.
#define DAC_OPA0MUX_NEGSEL_NEGPAD 3 |
Definition at line 322 of file dac_common.h.
#define DAC_OPA0MUX_NEGSEL_OPATAP 2 |
Definition at line 321 of file dac_common.h.
#define DAC_OPA0MUX_NEGSEL_SHIFT (4) |
Definition at line 315 of file dac_common.h.
#define DAC_OPA0MUX_NEGSEL_UG 1 |
Definition at line 320 of file dac_common.h.
#define DAC_OPA0MUX_NEXTOUT (1 << 26) |
Definition at line 281 of file dac_common.h.
#define DAC_OPA0MUX_NPEN (1 << 13) |
Definition at line 302 of file dac_common.h.
#define DAC_OPA0MUX_OUTMODE | ( | v | ) | (((v) << DAC_OPA0MUX_OUTMODE_SHIFT) & DAC_OPA0MUX_OUTMODE_MASK) |
Definition at line 285 of file dac_common.h.
#define DAC_OPA0MUX_OUTMODE_ALL 3 |
Definition at line 290 of file dac_common.h.
#define DAC_OPA0MUX_OUTMODE_ALT 2 |
Definition at line 289 of file dac_common.h.
#define DAC_OPA0MUX_OUTMODE_DISABLE 0 |
Definition at line 287 of file dac_common.h.
#define DAC_OPA0MUX_OUTMODE_MAIN 1 |
Definition at line 288 of file dac_common.h.
#define DAC_OPA0MUX_OUTMODE_MASK (0x3 << DAC_OPA0MUX_OUTMODE_SHIFT) |
Definition at line 284 of file dac_common.h.
#define DAC_OPA0MUX_OUTMODE_SHIFT (22) |
Definition at line 283 of file dac_common.h.
#define DAC_OPA0MUX_OUTPEN | ( | v | ) | (((v) << DAC_OPA0MUX_OUTPEN_SHIFT) & DAC_OPA0MUX_OUTPEN_MASK) |
Definition at line 294 of file dac_common.h.
#define DAC_OPA0MUX_OUTPEN_MASK (0x1F << DAC_OPA0MUX_OUTPEN_SHIFT) |
Definition at line 293 of file dac_common.h.
#define DAC_OPA0MUX_OUTPEN_OUT0 DAC_OPA0MUX_OUTPEN(1 << 0) |
Definition at line 296 of file dac_common.h.
#define DAC_OPA0MUX_OUTPEN_OUT1 DAC_OPA0MUX_OUTPEN(1 << 1) |
Definition at line 297 of file dac_common.h.
#define DAC_OPA0MUX_OUTPEN_OUT2 DAC_OPA0MUX_OUTPEN(1 << 2) |
Definition at line 298 of file dac_common.h.
#define DAC_OPA0MUX_OUTPEN_OUT3 DAC_OPA0MUX_OUTPEN(1 << 3) |
Definition at line 299 of file dac_common.h.
#define DAC_OPA0MUX_OUTPEN_OUT4 DAC_OPA0MUX_OUTPEN(1 << 4) |
Definition at line 300 of file dac_common.h.
#define DAC_OPA0MUX_OUTPEN_SHIFT (18) |
Definition at line 292 of file dac_common.h.
#define DAC_OPA0MUX_POSSEL | ( | v | ) | (((v) << DAC_OPA0MUX_POSSEL_SHIFT) & DAC_OPA0MUX_POSSEL_MASK) |
Definition at line 326 of file dac_common.h.
#define DAC_OPA0MUX_POSSEL_DAC 1 |
Definition at line 329 of file dac_common.h.
#define DAC_OPA0MUX_POSSEL_DISABLE 0 |
Definition at line 328 of file dac_common.h.
#define DAC_OPA0MUX_POSSEL_MASK (0x7 << DAC_OPA0MUX_POSSEL_SHIFT) |
Definition at line 325 of file dac_common.h.
#define DAC_OPA0MUX_POSSEL_OPA0INP 3 |
Definition at line 331 of file dac_common.h.
#define DAC_OPA0MUX_POSSEL_OPATAP 4 |
Definition at line 332 of file dac_common.h.
#define DAC_OPA0MUX_POSSEL_POSPAD 2 |
Definition at line 330 of file dac_common.h.
#define DAC_OPA0MUX_POSSEL_SHIFT (0) |
Definition at line 324 of file dac_common.h.
#define DAC_OPA0MUX_PPEN (1 << 12) |
Definition at line 303 of file dac_common.h.
#define DAC_OPA0MUX_RESINMUX | ( | v | ) | (((v) << DAC_OPA0MUX_RESINMUX_SHIFT) & DAC_OPA0MUX_RESINMUX_MASK) |
Definition at line 307 of file dac_common.h.
#define DAC_OPA0MUX_RESINMUX_DISABLE 0 |
Definition at line 309 of file dac_common.h.
#define DAC_OPA0MUX_RESINMUX_MASK (0x7 << DAC_OPA0MUX_RESINMUX_SHIFT) |
Definition at line 306 of file dac_common.h.
#define DAC_OPA0MUX_RESINMUX_NEGPAD 2 |
Definition at line 311 of file dac_common.h.
#define DAC_OPA0MUX_RESINMUX_OPA0INP 1 |
Definition at line 310 of file dac_common.h.
#define DAC_OPA0MUX_RESINMUX_POSPAD 3 |
Definition at line 312 of file dac_common.h.
#define DAC_OPA0MUX_RESINMUX_SHIFT (8) |
Definition at line 305 of file dac_common.h.
#define DAC_OPA0MUX_RESINMUX_VSS 4 |
Definition at line 313 of file dac_common.h.
#define DAC_OPA0MUX_RESSEL_MASK (0x7 << DAC_OPA0MUX_RESSEL_SHIFT) |
Definition at line 268 of file dac_common.h.
#define DAC_OPA0MUX_RESSEL_RESSEL | ( | v | ) | ((((v) << DAC_OPA0MUX_RESSEL_SHIFT)) & DAC_OPA0MUX_RESSEL_MASK) |
Definition at line 269 of file dac_common.h.
#define DAC_OPA0MUX_RESSEL_RESSEL_RES0 DAC_OPA0MUX_RESSEL_RESSEL_RESx(0) |
Definition at line 272 of file dac_common.h.
#define DAC_OPA0MUX_RESSEL_RESSEL_RES1 DAC_OPA0MUX_RESSEL_RESSEL_RESx(1) |
Definition at line 273 of file dac_common.h.
#define DAC_OPA0MUX_RESSEL_RESSEL_RES2 DAC_OPA0MUX_RESSEL_RESSEL_RESx(2) |
Definition at line 274 of file dac_common.h.
#define DAC_OPA0MUX_RESSEL_RESSEL_RES3 DAC_OPA0MUX_RESSEL_RESSEL_RESx(3) |
Definition at line 275 of file dac_common.h.
#define DAC_OPA0MUX_RESSEL_RESSEL_RES4 DAC_OPA0MUX_RESSEL_RESSEL_RESx(4) |
Definition at line 276 of file dac_common.h.
#define DAC_OPA0MUX_RESSEL_RESSEL_RES5 DAC_OPA0MUX_RESSEL_RESSEL_RESx(5) |
Definition at line 277 of file dac_common.h.
#define DAC_OPA0MUX_RESSEL_RESSEL_RES6 DAC_OPA0MUX_RESSEL_RESSEL_RESx(6) |
Definition at line 278 of file dac_common.h.
#define DAC_OPA0MUX_RESSEL_RESSEL_RES7 DAC_OPA0MUX_RESSEL_RESSEL_RESx(7) |
Definition at line 279 of file dac_common.h.
#define DAC_OPA0MUX_RESSEL_RESSEL_RESx | ( | x | ) | DAC_OPA0MUX_RESSEL_RESSEL(x) |
Definition at line 271 of file dac_common.h.
#define DAC_OPA0MUX_RESSEL_SHIFT (28) |
Definition at line 267 of file dac_common.h.
#define DAC_OPA1MUX | ( | base | ) | MMIO32((base) + 0x060) |
Definition at line 47 of file dac_common.h.
#define DAC_OPA1MUX_NEGSEL | ( | v | ) | (((v) << DAC_OPA1MUX_NEGSEL_SHIFT) & DAC_OPA1MUX_NEGSEL_MASK) |
Definition at line 385 of file dac_common.h.
#define DAC_OPA1MUX_NEGSEL_DISABLE 0 |
Definition at line 387 of file dac_common.h.
#define DAC_OPA1MUX_NEGSEL_MASK (0x3 << DAC_OPA1MUX_NEGSEL_SHIFT) |
Definition at line 384 of file dac_common.h.
#define DAC_OPA1MUX_NEGSEL_NEGPAD 3 |
Definition at line 390 of file dac_common.h.
#define DAC_OPA1MUX_NEGSEL_OPATAP 2 |
Definition at line 389 of file dac_common.h.
#define DAC_OPA1MUX_NEGSEL_SHIFT (4) |
Definition at line 383 of file dac_common.h.
#define DAC_OPA1MUX_NEGSEL_UG 1 |
Definition at line 388 of file dac_common.h.
#define DAC_OPA1MUX_NEXTOUT (1 << 26) |
Definition at line 349 of file dac_common.h.
#define DAC_OPA1MUX_NPEN (1 << 13) |
Definition at line 370 of file dac_common.h.
#define DAC_OPA1MUX_OUTMODE | ( | v | ) | (((v) << DAC_OPA1MUX_OUTMODE_SHIFT) & DAC_OPA1MUX_OUTMODE_MASK) |
Definition at line 353 of file dac_common.h.
#define DAC_OPA1MUX_OUTMODE_ALL 3 |
Definition at line 358 of file dac_common.h.
#define DAC_OPA1MUX_OUTMODE_ALT 2 |
Definition at line 357 of file dac_common.h.
#define DAC_OPA1MUX_OUTMODE_DISABLE 0 |
Definition at line 355 of file dac_common.h.
#define DAC_OPA1MUX_OUTMODE_MAIN 1 |
Definition at line 356 of file dac_common.h.
#define DAC_OPA1MUX_OUTMODE_MASK (0x3 << DAC_OPA1MUX_OUTMODE_SHIFT) |
Definition at line 352 of file dac_common.h.
#define DAC_OPA1MUX_OUTMODE_SHIFT (22) |
Definition at line 351 of file dac_common.h.
#define DAC_OPA1MUX_OUTPEN | ( | v | ) | (((v) << DAC_OPA1MUX_OUTPEN_SHIFT) & DAC_OPA1MUX_OUTPEN_MASK) |
Definition at line 362 of file dac_common.h.
#define DAC_OPA1MUX_OUTPEN_MASK (0x1F << DAC_OPA1MUX_OUTPEN_SHIFT) |
Definition at line 361 of file dac_common.h.
#define DAC_OPA1MUX_OUTPEN_OUT0 DAC_OPA1MUX_OUTPEN(1 << 0) |
Definition at line 364 of file dac_common.h.
#define DAC_OPA1MUX_OUTPEN_OUT1 DAC_OPA1MUX_OUTPEN(1 << 1) |
Definition at line 365 of file dac_common.h.
#define DAC_OPA1MUX_OUTPEN_OUT2 DAC_OPA1MUX_OUTPEN(1 << 2) |
Definition at line 366 of file dac_common.h.
#define DAC_OPA1MUX_OUTPEN_OUT3 DAC_OPA1MUX_OUTPEN(1 << 3) |
Definition at line 367 of file dac_common.h.
#define DAC_OPA1MUX_OUTPEN_OUT4 DAC_OPA1MUX_OUTPEN(1 << 4) |
Definition at line 368 of file dac_common.h.
#define DAC_OPA1MUX_OUTPEN_SHIFT (18) |
Definition at line 360 of file dac_common.h.
#define DAC_OPA1MUX_POSSEL | ( | v | ) | (((v) << DAC_OPA1MUX_POSSEL_SHIFT) & DAC_OPA1MUX_POSSEL_MASK) |
Definition at line 394 of file dac_common.h.
#define DAC_OPA1MUX_POSSEL_DAC 1 |
Definition at line 397 of file dac_common.h.
#define DAC_OPA1MUX_POSSEL_DISABLE 0 |
Definition at line 396 of file dac_common.h.
#define DAC_OPA1MUX_POSSEL_MASK (0x7 << DAC_OPA1MUX_POSSEL_SHIFT) |
Definition at line 393 of file dac_common.h.
#define DAC_OPA1MUX_POSSEL_OPA0INP 3 |
Definition at line 399 of file dac_common.h.
#define DAC_OPA1MUX_POSSEL_OPATAP 4 |
Definition at line 400 of file dac_common.h.
#define DAC_OPA1MUX_POSSEL_POSPAD 2 |
Definition at line 398 of file dac_common.h.
#define DAC_OPA1MUX_POSSEL_SHIFT (0) |
Definition at line 392 of file dac_common.h.
#define DAC_OPA1MUX_PPEN (1 << 12) |
Definition at line 371 of file dac_common.h.
#define DAC_OPA1MUX_RESINMUX | ( | v | ) | (((v) << DAC_OPA1MUX_RESINMUX_SHIFT) & DAC_OPA1MUX_RESINMUX_MASK) |
Definition at line 375 of file dac_common.h.
#define DAC_OPA1MUX_RESINMUX_DISABLE 0 |
Definition at line 377 of file dac_common.h.
#define DAC_OPA1MUX_RESINMUX_MASK (0x7 << DAC_OPA1MUX_RESINMUX_SHIFT) |
Definition at line 374 of file dac_common.h.
#define DAC_OPA1MUX_RESINMUX_NEGPAD 2 |
Definition at line 379 of file dac_common.h.
#define DAC_OPA1MUX_RESINMUX_OPA0INP 1 |
Definition at line 378 of file dac_common.h.
#define DAC_OPA1MUX_RESINMUX_POSPAD 3 |
Definition at line 380 of file dac_common.h.
#define DAC_OPA1MUX_RESINMUX_SHIFT (8) |
Definition at line 373 of file dac_common.h.
#define DAC_OPA1MUX_RESINMUX_VSS 4 |
Definition at line 381 of file dac_common.h.
#define DAC_OPA1MUX_RESSEL_MASK (0x7 << DAC_OPA1MUX_RESSEL_SHIFT) |
Definition at line 336 of file dac_common.h.
#define DAC_OPA1MUX_RESSEL_RESSEL | ( | v | ) | ((((v) << DAC_OPA1MUX_RESSEL_SHIFT)) & DAC_OPA1MUX_RESSEL_MASK) |
Definition at line 337 of file dac_common.h.
#define DAC_OPA1MUX_RESSEL_RESSEL_RES0 DAC_OPA1MUX_RESSEL_RESSEL_RESx(0) |
Definition at line 340 of file dac_common.h.
#define DAC_OPA1MUX_RESSEL_RESSEL_RES1 DAC_OPA1MUX_RESSEL_RESSEL_RESx(1) |
Definition at line 341 of file dac_common.h.
#define DAC_OPA1MUX_RESSEL_RESSEL_RES2 DAC_OPA1MUX_RESSEL_RESSEL_RESx(2) |
Definition at line 342 of file dac_common.h.
#define DAC_OPA1MUX_RESSEL_RESSEL_RES3 DAC_OPA1MUX_RESSEL_RESSEL_RESx(3) |
Definition at line 343 of file dac_common.h.
#define DAC_OPA1MUX_RESSEL_RESSEL_RES4 DAC_OPA1MUX_RESSEL_RESSEL_RESx(4) |
Definition at line 344 of file dac_common.h.
#define DAC_OPA1MUX_RESSEL_RESSEL_RES5 DAC_OPA1MUX_RESSEL_RESSEL_RESx(5) |
Definition at line 345 of file dac_common.h.
#define DAC_OPA1MUX_RESSEL_RESSEL_RES6 DAC_OPA1MUX_RESSEL_RESSEL_RESx(6) |
Definition at line 346 of file dac_common.h.
#define DAC_OPA1MUX_RESSEL_RESSEL_RES7 DAC_OPA1MUX_RESSEL_RESSEL_RESx(7) |
Definition at line 347 of file dac_common.h.
#define DAC_OPA1MUX_RESSEL_RESSEL_RESx | ( | x | ) | DAC_OPA1MUX_RESSEL_RESSEL(x) |
Definition at line 339 of file dac_common.h.
#define DAC_OPA1MUX_RESSEL_SHIFT (28) |
Definition at line 335 of file dac_common.h.
#define DAC_OPA2MUX | ( | base | ) | MMIO32((base) + 0x064) |
Definition at line 48 of file dac_common.h.
#define DAC_OPA2MUX_NEGSEL | ( | v | ) | (((v) << DAC_OPA2MUX_NEGSEL_SHIFT) & DAC_OPA2MUX_NEGSEL_MASK) |
Definition at line 444 of file dac_common.h.
#define DAC_OPA2MUX_NEGSEL_DISABLE 0 |
Definition at line 446 of file dac_common.h.
#define DAC_OPA2MUX_NEGSEL_MASK (0x3 << DAC_OPA2MUX_NEGSEL_SHIFT) |
Definition at line 443 of file dac_common.h.
#define DAC_OPA2MUX_NEGSEL_NEGPAD 3 |
Definition at line 449 of file dac_common.h.
#define DAC_OPA2MUX_NEGSEL_OPATAP 2 |
Definition at line 448 of file dac_common.h.
#define DAC_OPA2MUX_NEGSEL_SHIFT (4) |
Definition at line 442 of file dac_common.h.
#define DAC_OPA2MUX_NEGSEL_UG 1 |
Definition at line 447 of file dac_common.h.
#define DAC_OPA2MUX_NEXTOUT (1 << 26) |
Definition at line 418 of file dac_common.h.
#define DAC_OPA2MUX_NPEN (1 << 13) |
Definition at line 429 of file dac_common.h.
#define DAC_OPA2MUX_OUTMODE (1 << 22) |
Definition at line 420 of file dac_common.h.
#define DAC_OPA2MUX_OUTPEN | ( | v | ) | (((v) << DAC_OPA2MUX_OUTPEN_SHIFT) & DAC_OPA2MUX_OUTPEN_MASK) |
Definition at line 424 of file dac_common.h.
#define DAC_OPA2MUX_OUTPEN_MASK (0x3 << DAC_OPA2MUX_OUTPEN_SHIFT) |
Definition at line 423 of file dac_common.h.
#define DAC_OPA2MUX_OUTPEN_OUT0 0 |
Definition at line 426 of file dac_common.h.
#define DAC_OPA2MUX_OUTPEN_OUT1 1 |
Definition at line 427 of file dac_common.h.
#define DAC_OPA2MUX_OUTPEN_SHIFT (14) |
Definition at line 422 of file dac_common.h.
#define DAC_OPA2MUX_POSSEL | ( | v | ) | (((v) << DAC_OPA2MUX_POSSEL_SHIFT) & DAC_OPA2MUX_POSSEL_MASK) |
Definition at line 453 of file dac_common.h.
#define DAC_OPA2MUX_POSSEL_DAC 1 |
Definition at line 456 of file dac_common.h.
#define DAC_OPA2MUX_POSSEL_DISABLE 0 |
Definition at line 455 of file dac_common.h.
#define DAC_OPA2MUX_POSSEL_MASK (0x7 << DAC_OPA2MUX_POSSEL_SHIFT) |
Definition at line 452 of file dac_common.h.
#define DAC_OPA2MUX_POSSEL_OPA1INP 3 |
Definition at line 458 of file dac_common.h.
#define DAC_OPA2MUX_POSSEL_OPATAP 4 |
Definition at line 459 of file dac_common.h.
#define DAC_OPA2MUX_POSSEL_POSPAD 2 |
Definition at line 457 of file dac_common.h.
#define DAC_OPA2MUX_POSSEL_SHIFT (0) |
Definition at line 451 of file dac_common.h.
#define DAC_OPA2MUX_PPEN (1 << 12) |
Definition at line 430 of file dac_common.h.
#define DAC_OPA2MUX_RESINMUX | ( | v | ) | (((v) << DAC_OPA2MUX_RESINMUX_SHIFT) & DAC_OPA2MUX_RESINMUX_MASK) |
Definition at line 434 of file dac_common.h.
#define DAC_OPA2MUX_RESINMUX_DISABLE 0 |
Definition at line 436 of file dac_common.h.
#define DAC_OPA2MUX_RESINMUX_MASK (0x7 << DAC_OPA2MUX_RESINMUX_SHIFT) |
Definition at line 433 of file dac_common.h.
#define DAC_OPA2MUX_RESINMUX_NEGPAD 2 |
Definition at line 438 of file dac_common.h.
#define DAC_OPA2MUX_RESINMUX_OPA1INP 1 |
Definition at line 437 of file dac_common.h.
#define DAC_OPA2MUX_RESINMUX_POSPAD 3 |
Definition at line 439 of file dac_common.h.
#define DAC_OPA2MUX_RESINMUX_SHIFT (8) |
Definition at line 432 of file dac_common.h.
#define DAC_OPA2MUX_RESINMUX_VSS 4 |
Definition at line 440 of file dac_common.h.
#define DAC_OPA2MUX_RESSEL_MASK (0x7 << DAC_OPA2MUX_RESSEL_SHIFT) |
Definition at line 405 of file dac_common.h.
#define DAC_OPA2MUX_RESSEL_RESSEL | ( | v | ) | ((((v) << DAC_OPA2MUX_RESSEL_SHIFT)) & DAC_OPA2MUX_RESSEL_MASK) |
Definition at line 406 of file dac_common.h.
#define DAC_OPA2MUX_RESSEL_RESSEL_RES0 DAC_OPA2MUX_RESSEL_RESSEL_RESx(0) |
Definition at line 409 of file dac_common.h.
#define DAC_OPA2MUX_RESSEL_RESSEL_RES1 DAC_OPA2MUX_RESSEL_RESSEL_RESx(1) |
Definition at line 410 of file dac_common.h.
#define DAC_OPA2MUX_RESSEL_RESSEL_RES2 DAC_OPA2MUX_RESSEL_RESSEL_RESx(2) |
Definition at line 411 of file dac_common.h.
#define DAC_OPA2MUX_RESSEL_RESSEL_RES3 DAC_OPA2MUX_RESSEL_RESSEL_RESx(3) |
Definition at line 412 of file dac_common.h.
#define DAC_OPA2MUX_RESSEL_RESSEL_RES4 DAC_OPA2MUX_RESSEL_RESSEL_RESx(4) |
Definition at line 413 of file dac_common.h.
#define DAC_OPA2MUX_RESSEL_RESSEL_RES5 DAC_OPA2MUX_RESSEL_RESSEL_RESx(5) |
Definition at line 414 of file dac_common.h.
#define DAC_OPA2MUX_RESSEL_RESSEL_RES6 DAC_OPA2MUX_RESSEL_RESSEL_RESx(6) |
Definition at line 415 of file dac_common.h.
#define DAC_OPA2MUX_RESSEL_RESSEL_RES7 DAC_OPA2MUX_RESSEL_RESSEL_RESx(7) |
Definition at line 416 of file dac_common.h.
#define DAC_OPA2MUX_RESSEL_RESSEL_RESx | ( | x | ) | DAC_OPA2MUX_RESSEL_RESSEL(x) |
Definition at line 408 of file dac_common.h.
#define DAC_OPA2MUX_RESSEL_SHIFT (28) |
Definition at line 404 of file dac_common.h.
#define DAC_OPACTRL | ( | base | ) | MMIO32((base) + 0x054) |
Definition at line 44 of file dac_common.h.
#define DAC_OPACTRL_OPA0EN (1 << 0) |
Definition at line 264 of file dac_common.h.
#define DAC_OPACTRL_OPA0HCMDIS (1 << 6) |
Definition at line 260 of file dac_common.h.
#define DAC_OPACTRL_OPA0LPFDIS | ( | v | ) | (((v) << DAC_OPACTRL_OPA0LPFDIS_SHIFT) & DAC_OPACTRL_OPA0LPFDIS_MASK) |
Definition at line 253 of file dac_common.h.
#define DAC_OPACTRL_OPA0LPFDIS_MASK (0x3 << DAC_OPACTRL_OPA0LPFDIS_SHIFT) |
Definition at line 252 of file dac_common.h.
#define DAC_OPACTRL_OPA0LPFDIS_NLPFDIS 0b10 |
Definition at line 256 of file dac_common.h.
#define DAC_OPACTRL_OPA0LPFDIS_PLPFDIS 0b01 |
Definition at line 255 of file dac_common.h.
#define DAC_OPACTRL_OPA0LPFDIS_SHIFT (14) |
Definition at line 251 of file dac_common.h.
#define DAC_OPACTRL_OPA0SHORT (1 << 22) |
Definition at line 235 of file dac_common.h.
#define DAC_OPACTRL_OPA1EN (1 << 1) |
Definition at line 263 of file dac_common.h.
#define DAC_OPACTRL_OPA1HCMDIS (1 << 7) |
Definition at line 259 of file dac_common.h.
#define DAC_OPACTRL_OPA1LPFDIS | ( | v | ) | (((v) << DAC_OPACTRL_OPA1LPFDIS_SHIFT) & DAC_OPACTRL_OPA1LPFDIS_MASK) |
Definition at line 246 of file dac_common.h.
#define DAC_OPACTRL_OPA1LPFDIS_MASK (0x3 << DAC_OPACTRL_OPA1LPFDIS_SHIFT) |
Definition at line 245 of file dac_common.h.
#define DAC_OPACTRL_OPA1LPFDIS_NLPFDIS 0b10 |
Definition at line 249 of file dac_common.h.
#define DAC_OPACTRL_OPA1LPFDIS_PLPFDIS 0b01 |
Definition at line 248 of file dac_common.h.
#define DAC_OPACTRL_OPA1LPFDIS_SHIFT (14) |
Definition at line 244 of file dac_common.h.
#define DAC_OPACTRL_OPA1SHORT (1 << 23) |
Definition at line 234 of file dac_common.h.
#define DAC_OPACTRL_OPA2EN (1 << 2) |
Definition at line 262 of file dac_common.h.
#define DAC_OPACTRL_OPA2HCMDIS (1 << 8) |
Definition at line 258 of file dac_common.h.
#define DAC_OPACTRL_OPA2LPFDIS | ( | v | ) | (((v) << DAC_OPACTRL_OPA2LPFDIS_SHIFT) & DAC_OPACTRL_OPA2LPFDIS_MASK) |
Definition at line 239 of file dac_common.h.
#define DAC_OPACTRL_OPA2LPFDIS_MASK (0x3 << DAC_OPACTRL_OPA2LPFDIS_SHIFT) |
Definition at line 238 of file dac_common.h.
#define DAC_OPACTRL_OPA2LPFDIS_NLPFDIS 0b10 |
Definition at line 242 of file dac_common.h.
#define DAC_OPACTRL_OPA2LPFDIS_PLPFDIS 0b01 |
Definition at line 241 of file dac_common.h.
#define DAC_OPACTRL_OPA2LPFDIS_SHIFT (16) |
Definition at line 237 of file dac_common.h.
#define DAC_OPACTRL_OPA2SHORT (1 << 24) |
Definition at line 233 of file dac_common.h.
#define DAC_OPAOFFSET | ( | base | ) | MMIO32((base) + 0x058) |
Definition at line 45 of file dac_common.h.
#define DAC_STATUS | ( | base | ) | MMIO32((base) + 0x04) |
Definition at line 31 of file dac_common.h.
#define DAC_STATUS_CH0DV (1 << 0) |
Definition at line 107 of file dac_common.h.
#define DAC_STATUS_CH1DV (1 << 1) |
Definition at line 106 of file dac_common.h.
void dac_disable_auto_refresh | ( | uint32_t | dac, |
enum dac_ch | ch | ||
) |
Disable auto refresh.
[in] | dac | DAC (use DACx) |
[in] | ch | DAC Channel (use DAC_CHx) |
Definition at line 150 of file dac_common.c.
References DAC_CHx_CTRL.
void dac_disable_channel | ( | uint32_t | dac, |
enum dac_ch | ch | ||
) |
Disable channel.
[in] | dac | DAC (use DACx) |
[in] | ch | DAC Channel (use DAC_CHx) |
Definition at line 170 of file dac_common.c.
References DAC_CHx_CTRL.
void dac_disable_prs_trigger | ( | uint32_t | dac, |
enum dac_ch | ch | ||
) |
Disable PRS triggerring.
[in] | dac | DAC (use DACx) |
[in] | ch | DAC Channel (use DAC_CHx) |
Definition at line 130 of file dac_common.c.
References DAC_CHx_CTRL.
void dac_disable_sine | ( | uint32_t | dac | ) |
Disable Sine wave on output.
[in] | dac | DAC (use DACx) |
Definition at line 95 of file dac_common.c.
References DAC_CTRL.
void dac_enable_auto_refresh | ( | uint32_t | dac, |
enum dac_ch | ch | ||
) |
Enable auto refresh.
[in] | dac | DAC (use DACx) |
[in] | ch | DAC Channel (use DAC_CHx) |
Definition at line 140 of file dac_common.c.
References DAC_CH_CTRL_REFREN, and DAC_CHx_CTRL.
void dac_enable_channel | ( | uint32_t | dac, |
enum dac_ch | ch | ||
) |
Enable channel.
[in] | dac | DAC (use DACx) |
[in] | ch | DAC Channel (use DAC_CHx) |
Definition at line 160 of file dac_common.c.
References DAC_CH_CTRL_EN, and DAC_CHx_CTRL.
void dac_enable_prs_trigger | ( | uint32_t | dac, |
enum dac_ch | ch | ||
) |
Enable PRS triggerring.
[in] | dac | DAC (use DACx) |
[in] | ch | DAC Channel (use DAC_CHx) |
Definition at line 120 of file dac_common.c.
References DAC_CH_CTRL_PRSEN, and DAC_CHx_CTRL.
void dac_enable_sine | ( | uint32_t | dac | ) |
Enable Sine wave on output.
[in] | dac | DAC (use DACx) |
Definition at line 86 of file dac_common.c.
References DAC_CTRL, and DAC_CTRL_SINMODE.
void dac_set_clock_prescaler | ( | uint32_t | dac, |
uint32_t | presc | ||
) |
Set DAC clock prescaler.
[in] | dac | DAC (use DACx) |
[in] | presc | Prescaler (use DAC_CTRL_PRESC_*) |
Definition at line 47 of file dac_common.c.
References DAC_CTRL.
void dac_set_conversion_mode | ( | uint32_t | dac, |
uint32_t | convmode | ||
) |
Set conversion mode.
[in] | dac | DAC (use DACx) |
[in] | convmode | Conversion mode (use DAC_CTRL_CONVMODE_*) |
Definition at line 77 of file dac_common.c.
References DAC_CTRL.
void dac_set_out_mode | ( | uint32_t | dac, |
uint32_t | outmode | ||
) |
Set DAC output mode.
[in] | dac | DAC (use DACx) |
[in] | outmode | Output mode (DAC_CTRL_OUTMODE_*) |
Definition at line 67 of file dac_common.c.
References DAC_CTRL.
Set PRS trigger source on DAC channel.
[in] | dac | DAC (use DACx) |
[in] | dac_chan | DAC Channel (use DAC_CHx) |
[in] | prs_chan | PRS Channel (use PRS_CHx) |
Definition at line 106 of file dac_common.c.
References DAC_CH_CTRL_PRSSEL, DAC_CH_CTRL_PRSSEL_MASK, and DAC_CHx_CTRL.
void dac_set_reference | ( | uint32_t | dac, |
uint32_t | refsel | ||
) |
Set DAC reference.
[in] | dac | DAC (use DACx) |
[in] | refsel | Reference (DAC_CTRL_REFSEL_*) |
Definition at line 57 of file dac_common.c.
References DAC_CTRL.
void dac_set_refresh_cycle | ( | uint32_t | dac, |
uint32_t | refrsel | ||
) |
Set DAC refresh cycle.
[in] | dac | DAC (use DACx) |
[in] | refrsel | (use DAC_CTRL_REFRSEL_*CYCLES) |
Definition at line 37 of file dac_common.c.
References DAC_CTRL.