30 #ifndef _SAMV71_DACC_COMPONENT_ 31 #define _SAMV71_DACC_COMPONENT_ 39 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) 43 __IO uint32_t DACC_MR;
44 __IO uint32_t DACC_TRIGR;
45 __I uint32_t Reserved1[1];
46 __O uint32_t DACC_CHER;
47 __O uint32_t DACC_CHDR;
48 __I uint32_t DACC_CHSR;
49 __O uint32_t DACC_CDR[2];
50 __O uint32_t DACC_IER;
51 __O uint32_t DACC_IDR;
52 __I uint32_t DACC_IMR;
53 __I uint32_t DACC_ISR;
54 __I uint32_t Reserved2[24];
55 __IO uint32_t DACC_ACR;
56 __I uint32_t Reserved3[19];
57 __IO uint32_t DACC_WPMR;
58 __I uint32_t DACC_WPSR;
59 __I uint32_t Reserved4[4];
64 #define DACC_CR_SWRST (0x1u << 0) 66 #define DACC_MR_MAXS0 (0x1u << 0) 67 #define DACC_MR_MAXS0_TRIG_EVENT (0x0u << 0) 68 #define DACC_MR_MAXS0_MAXIMUM (0x1u << 0) 69 #define DACC_MR_MAXS1 (0x1u << 1) 70 #define DACC_MR_MAXS1_TRIG_EVENT (0x0u << 1) 71 #define DACC_MR_MAXS1_MAXIMUM (0x1u << 1) 72 #define DACC_MR_WORD (0x1u << 4) 73 #define DACC_MR_WORD_DISABLED (0x0u << 4) 74 #define DACC_MR_WORD_ENABLED (0x1u << 4) 75 #define DACC_MR_ZERO (0x1u << 5) 76 #define DACC_MR_DIFF (0x1u << 23) 77 #define DACC_MR_DIFF_DISABLED (0x0u << 23) 78 #define DACC_MR_DIFF_ENABLED (0x1u << 23) 79 #define DACC_MR_PRESCALER_Pos 24 80 #define DACC_MR_PRESCALER_Msk (0xfu << DACC_MR_PRESCALER_Pos) 81 #define DACC_MR_PRESCALER(value) ((DACC_MR_PRESCALER_Msk & ((value) << DACC_MR_PRESCALER_Pos))) 83 #define DACC_TRIGR_TRGEN0 (0x1u << 0) 84 #define DACC_TRIGR_TRGEN0_DIS (0x0u << 0) 85 #define DACC_TRIGR_TRGEN0_EN (0x1u << 0) 86 #define DACC_TRIGR_TRGEN1 (0x1u << 1) 87 #define DACC_TRIGR_TRGEN1_DIS (0x0u << 1) 88 #define DACC_TRIGR_TRGEN1_EN (0x1u << 1) 89 #define DACC_TRIGR_TRGSEL0_Pos 4 90 #define DACC_TRIGR_TRGSEL0_Msk (0x7u << DACC_TRIGR_TRGSEL0_Pos) 91 #define DACC_TRIGR_TRGSEL0(value) ((DACC_TRIGR_TRGSEL0_Msk & ((value) << DACC_TRIGR_TRGSEL0_Pos))) 92 #define DACC_TRIGR_TRGSEL0_TRGSEL0 (0x0u << 4) 93 #define DACC_TRIGR_TRGSEL0_TRGSEL1 (0x1u << 4) 94 #define DACC_TRIGR_TRGSEL0_TRGSEL2 (0x2u << 4) 95 #define DACC_TRIGR_TRGSEL0_TRGSEL3 (0x3u << 4) 96 #define DACC_TRIGR_TRGSEL0_TRGSEL4 (0x4u << 4) 97 #define DACC_TRIGR_TRGSEL0_TRGSEL5 (0x5u << 4) 98 #define DACC_TRIGR_TRGSEL0_TRGSEL6 (0x6u << 4) 99 #define DACC_TRIGR_TRGSEL1_Pos 8 100 #define DACC_TRIGR_TRGSEL1_Msk (0x7u << DACC_TRIGR_TRGSEL1_Pos) 101 #define DACC_TRIGR_TRGSEL1(value) ((DACC_TRIGR_TRGSEL1_Msk & ((value) << DACC_TRIGR_TRGSEL1_Pos))) 102 #define DACC_TRIGR_TRGSEL1_TRGSEL0 (0x0u << 8) 103 #define DACC_TRIGR_TRGSEL1_TRGSEL1 (0x1u << 8) 104 #define DACC_TRIGR_TRGSEL1_TRGSEL2 (0x2u << 8) 105 #define DACC_TRIGR_TRGSEL1_TRGSEL3 (0x3u << 8) 106 #define DACC_TRIGR_TRGSEL1_TRGSEL4 (0x4u << 8) 107 #define DACC_TRIGR_TRGSEL1_TRGSEL5 (0x5u << 8) 108 #define DACC_TRIGR_TRGSEL1_TRGSEL6 (0x6u << 8) 109 #define DACC_TRIGR_OSR0_Pos 16 110 #define DACC_TRIGR_OSR0_Msk (0x7u << DACC_TRIGR_OSR0_Pos) 111 #define DACC_TRIGR_OSR0(value) ((DACC_TRIGR_OSR0_Msk & ((value) << DACC_TRIGR_OSR0_Pos))) 112 #define DACC_TRIGR_OSR0_OSR_1 (0x0u << 16) 113 #define DACC_TRIGR_OSR0_OSR_2 (0x1u << 16) 114 #define DACC_TRIGR_OSR0_OSR_4 (0x2u << 16) 115 #define DACC_TRIGR_OSR0_OSR_8 (0x3u << 16) 116 #define DACC_TRIGR_OSR0_OSR_16 (0x4u << 16) 117 #define DACC_TRIGR_OSR0_OSR_32 (0x5u << 16) 118 #define DACC_TRIGR_OSR1_Pos 20 119 #define DACC_TRIGR_OSR1_Msk (0x7u << DACC_TRIGR_OSR1_Pos) 120 #define DACC_TRIGR_OSR1(value) ((DACC_TRIGR_OSR1_Msk & ((value) << DACC_TRIGR_OSR1_Pos))) 121 #define DACC_TRIGR_OSR1_OSR_1 (0x0u << 20) 122 #define DACC_TRIGR_OSR1_OSR_2 (0x1u << 20) 123 #define DACC_TRIGR_OSR1_OSR_4 (0x2u << 20) 124 #define DACC_TRIGR_OSR1_OSR_8 (0x3u << 20) 125 #define DACC_TRIGR_OSR1_OSR_16 (0x4u << 20) 126 #define DACC_TRIGR_OSR1_OSR_32 (0x5u << 20) 128 #define DACC_CHER_CH0 (0x1u << 0) 129 #define DACC_CHER_CH1 (0x1u << 1) 131 #define DACC_CHDR_CH0 (0x1u << 0) 132 #define DACC_CHDR_CH1 (0x1u << 1) 134 #define DACC_CHSR_CH0 (0x1u << 0) 135 #define DACC_CHSR_CH1 (0x1u << 1) 136 #define DACC_CHSR_DACRDY0 (0x1u << 8) 137 #define DACC_CHSR_DACRDY1 (0x1u << 9) 139 #define DACC_CDR_DATA0_Pos 0 140 #define DACC_CDR_DATA0_Msk (0xffffu << DACC_CDR_DATA0_Pos) 141 #define DACC_CDR_DATA0(value) ((DACC_CDR_DATA0_Msk & ((value) << DACC_CDR_DATA0_Pos))) 142 #define DACC_CDR_DATA1_Pos 16 143 #define DACC_CDR_DATA1_Msk (0xffffu << DACC_CDR_DATA1_Pos) 144 #define DACC_CDR_DATA1(value) ((DACC_CDR_DATA1_Msk & ((value) << DACC_CDR_DATA1_Pos))) 146 #define DACC_IER_TXRDY0 (0x1u << 0) 147 #define DACC_IER_TXRDY1 (0x1u << 1) 148 #define DACC_IER_EOC0 (0x1u << 4) 149 #define DACC_IER_EOC1 (0x1u << 5) 151 #define DACC_IDR_TXRDY0 (0x1u << 0) 152 #define DACC_IDR_TXRDY1 (0x1u << 1) 153 #define DACC_IDR_EOC0 (0x1u << 4) 154 #define DACC_IDR_EOC1 (0x1u << 5) 156 #define DACC_IMR_TXRDY0 (0x1u << 0) 157 #define DACC_IMR_TXRDY1 (0x1u << 1) 158 #define DACC_IMR_EOC0 (0x1u << 4) 159 #define DACC_IMR_EOC1 (0x1u << 5) 161 #define DACC_ISR_TXRDY0 (0x1u << 0) 162 #define DACC_ISR_TXRDY1 (0x1u << 1) 163 #define DACC_ISR_EOC0 (0x1u << 4) 164 #define DACC_ISR_EOC1 (0x1u << 5) 166 #define DACC_ACR_IBCTLCH0_Pos 0 167 #define DACC_ACR_IBCTLCH0_Msk (0x3u << DACC_ACR_IBCTLCH0_Pos) 168 #define DACC_ACR_IBCTLCH0(value) ((DACC_ACR_IBCTLCH0_Msk & ((value) << DACC_ACR_IBCTLCH0_Pos))) 169 #define DACC_ACR_IBCTLCH1_Pos 2 170 #define DACC_ACR_IBCTLCH1_Msk (0x3u << DACC_ACR_IBCTLCH1_Pos) 171 #define DACC_ACR_IBCTLCH1(value) ((DACC_ACR_IBCTLCH1_Msk & ((value) << DACC_ACR_IBCTLCH1_Pos))) 173 #define DACC_WPMR_WPEN (0x1u << 0) 174 #define DACC_WPMR_WPKEY_Pos 8 175 #define DACC_WPMR_WPKEY_Msk (0xffffffu << DACC_WPMR_WPKEY_Pos) 176 #define DACC_WPMR_WPKEY(value) ((DACC_WPMR_WPKEY_Msk & ((value) << DACC_WPMR_WPKEY_Pos))) 177 #define DACC_WPMR_WPKEY_PASSWD (0x444143u << 8) 179 #define DACC_WPSR_WPVS (0x1u << 0) 180 #define DACC_WPSR_WPVSRC_Pos 8 181 #define DACC_WPSR_WPVSRC_Msk (0xffu << DACC_WPSR_WPVSRC_Pos) 183 #define DACC_VERSION_VERSION_Pos 0 184 #define DACC_VERSION_VERSION_Msk (0xfffu << DACC_VERSION_VERSION_Pos) 185 #define DACC_VERSION_MFN_Pos 16 186 #define DACC_VERSION_MFN_Msk (0x7u << DACC_VERSION_MFN_Pos) #define __IO
Definition: core_cm7.h:287
#define __O
Definition: core_cm7.h:286
__I uint32_t DACC_VERSION
(Dacc Offset: 0xFC) Version Register
Definition: component_dacc.h:60
Dacc hardware registers.
Definition: component_dacc.h:41
#define __I
Definition: core_cm7.h:284