Robobo
component_ssc.h
1 /* ----------------------------------------------------------------------------
2  * SAM Software Package License
3  * ----------------------------------------------------------------------------
4  * Copyright (c) 2012, Atmel Corporation
5  *
6  * All rights reserved.
7  *
8  * Redistribution and use in source and binary forms, with or without
9  * modification, are permitted provided that the following condition is met:
10  *
11  * - Redistributions of source code must retain the above copyright notice,
12  * this list of conditions and the disclaimer below.
13  *
14  * Atmel's name may not be used to endorse or promote products derived from
15  * this software without specific prior written permission.
16  *
17  * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR
18  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
19  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
20  * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT,
21  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
23  * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
24  * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
25  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
26  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27  * ----------------------------------------------------------------------------
28  */
29 
30 #ifndef _SAM3S8_SSC_COMPONENT_
31 #define _SAM3S8_SSC_COMPONENT_
32 
33 /* ============================================================================= */
35 /* ============================================================================= */
38 
39 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
40 
41 typedef struct {
42  WoReg SSC_CR;
43  RwReg SSC_CMR;
44  RoReg Reserved1[2];
45  RwReg SSC_RCMR;
46  RwReg SSC_RFMR;
47  RwReg SSC_TCMR;
48  RwReg SSC_TFMR;
49  RoReg SSC_RHR;
50  WoReg SSC_THR;
51  RoReg Reserved2[2];
52  RoReg SSC_RSHR;
53  RwReg SSC_TSHR;
54  RwReg SSC_RC0R;
55  RwReg SSC_RC1R;
56  RoReg SSC_SR;
57  WoReg SSC_IER;
58  WoReg SSC_IDR;
59  RoReg SSC_IMR;
60  RoReg Reserved3[37];
61  RwReg SSC_WPMR;
62  RoReg SSC_WPSR;
63  RoReg Reserved4[5];
64  RwReg SSC_RPR;
65  RwReg SSC_RCR;
66  RwReg SSC_TPR;
67  RwReg SSC_TCR;
68  RwReg SSC_RNPR;
69  RwReg SSC_RNCR;
70  RwReg SSC_TNPR;
71  RwReg SSC_TNCR;
72  WoReg SSC_PTCR;
73  RoReg SSC_PTSR;
74 } Ssc;
75 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
76 /* -------- SSC_CR : (SSC Offset: 0x0) Control Register -------- */
77 #define SSC_CR_RXEN (0x1u << 0)
78 #define SSC_CR_RXDIS (0x1u << 1)
79 #define SSC_CR_TXEN (0x1u << 8)
80 #define SSC_CR_TXDIS (0x1u << 9)
81 #define SSC_CR_SWRST (0x1u << 15)
82 /* -------- SSC_CMR : (SSC Offset: 0x4) Clock Mode Register -------- */
83 #define SSC_CMR_DIV_Pos 0
84 #define SSC_CMR_DIV_Msk (0xfffu << SSC_CMR_DIV_Pos)
85 #define SSC_CMR_DIV(value) ((SSC_CMR_DIV_Msk & ((value) << SSC_CMR_DIV_Pos)))
86 /* -------- SSC_RCMR : (SSC Offset: 0x10) Receive Clock Mode Register -------- */
87 #define SSC_RCMR_CKS_Pos 0
88 #define SSC_RCMR_CKS_Msk (0x3u << SSC_RCMR_CKS_Pos)
89 #define SSC_RCMR_CKS_MCK (0x0u << 0)
90 #define SSC_RCMR_CKS_TK (0x1u << 0)
91 #define SSC_RCMR_CKS_RK (0x2u << 0)
92 #define SSC_RCMR_CKO_Pos 2
93 #define SSC_RCMR_CKO_Msk (0x7u << SSC_RCMR_CKO_Pos)
94 #define SSC_RCMR_CKO_NONE (0x0u << 2)
95 #define SSC_RCMR_CKO_CONTINUOUS (0x1u << 2)
96 #define SSC_RCMR_CKO_TRANSFER (0x2u << 2)
97 #define SSC_RCMR_CKI (0x1u << 5)
98 #define SSC_RCMR_CKG_Pos 6
99 #define SSC_RCMR_CKG_Msk (0x3u << SSC_RCMR_CKG_Pos)
100 #define SSC_RCMR_CKG_NONE (0x0u << 6)
101 #define SSC_RCMR_CKG_CONTINUOUS (0x1u << 6)
102 #define SSC_RCMR_CKG_TRANSFER (0x2u << 6)
103 #define SSC_RCMR_START_Pos 8
104 #define SSC_RCMR_START_Msk (0xfu << SSC_RCMR_START_Pos)
105 #define SSC_RCMR_START_CONTINUOUS (0x0u << 8)
106 #define SSC_RCMR_START_TRANSMIT (0x1u << 8)
107 #define SSC_RCMR_START_RF_LOW (0x2u << 8)
108 #define SSC_RCMR_START_RF_HIGH (0x3u << 8)
109 #define SSC_RCMR_START_RF_FALLING (0x4u << 8)
110 #define SSC_RCMR_START_RF_RISING (0x5u << 8)
111 #define SSC_RCMR_START_RF_LEVEL (0x6u << 8)
112 #define SSC_RCMR_START_RF_EDGE (0x7u << 8)
113 #define SSC_RCMR_START_CMP_0 (0x8u << 8)
114 #define SSC_RCMR_STOP (0x1u << 12)
115 #define SSC_RCMR_STTDLY_Pos 16
116 #define SSC_RCMR_STTDLY_Msk (0xffu << SSC_RCMR_STTDLY_Pos)
117 #define SSC_RCMR_STTDLY(value) ((SSC_RCMR_STTDLY_Msk & ((value) << SSC_RCMR_STTDLY_Pos)))
118 #define SSC_RCMR_PERIOD_Pos 24
119 #define SSC_RCMR_PERIOD_Msk (0xffu << SSC_RCMR_PERIOD_Pos)
120 #define SSC_RCMR_PERIOD(value) ((SSC_RCMR_PERIOD_Msk & ((value) << SSC_RCMR_PERIOD_Pos)))
121 /* -------- SSC_RFMR : (SSC Offset: 0x14) Receive Frame Mode Register -------- */
122 #define SSC_RFMR_DATLEN_Pos 0
123 #define SSC_RFMR_DATLEN_Msk (0x1fu << SSC_RFMR_DATLEN_Pos)
124 #define SSC_RFMR_DATLEN(value) ((SSC_RFMR_DATLEN_Msk & ((value) << SSC_RFMR_DATLEN_Pos)))
125 #define SSC_RFMR_LOOP (0x1u << 5)
126 #define SSC_RFMR_MSBF (0x1u << 7)
127 #define SSC_RFMR_DATNB_Pos 8
128 #define SSC_RFMR_DATNB_Msk (0xfu << SSC_RFMR_DATNB_Pos)
129 #define SSC_RFMR_DATNB(value) ((SSC_RFMR_DATNB_Msk & ((value) << SSC_RFMR_DATNB_Pos)))
130 #define SSC_RFMR_FSLEN_Pos 16
131 #define SSC_RFMR_FSLEN_Msk (0xfu << SSC_RFMR_FSLEN_Pos)
132 #define SSC_RFMR_FSLEN(value) ((SSC_RFMR_FSLEN_Msk & ((value) << SSC_RFMR_FSLEN_Pos)))
133 #define SSC_RFMR_FSOS_Pos 20
134 #define SSC_RFMR_FSOS_Msk (0x7u << SSC_RFMR_FSOS_Pos)
135 #define SSC_RFMR_FSOS_NONE (0x0u << 20)
136 #define SSC_RFMR_FSOS_NEGATIVE (0x1u << 20)
137 #define SSC_RFMR_FSOS_POSITIVE (0x2u << 20)
138 #define SSC_RFMR_FSOS_LOW (0x3u << 20)
139 #define SSC_RFMR_FSOS_HIGH (0x4u << 20)
140 #define SSC_RFMR_FSOS_TOGGLING (0x5u << 20)
141 #define SSC_RFMR_FSEDGE (0x1u << 24)
142 #define SSC_RFMR_FSEDGE_POSITIVE (0x0u << 24)
143 #define SSC_RFMR_FSEDGE_NEGATIVE (0x1u << 24)
144 #define SSC_RFMR_FSLEN_EXT_Pos 28
145 #define SSC_RFMR_FSLEN_EXT_Msk (0xfu << SSC_RFMR_FSLEN_EXT_Pos)
146 #define SSC_RFMR_FSLEN_EXT(value) ((SSC_RFMR_FSLEN_EXT_Msk & ((value) << SSC_RFMR_FSLEN_EXT_Pos)))
147 /* -------- SSC_TCMR : (SSC Offset: 0x18) Transmit Clock Mode Register -------- */
148 #define SSC_TCMR_CKS_Pos 0
149 #define SSC_TCMR_CKS_Msk (0x3u << SSC_TCMR_CKS_Pos)
150 #define SSC_TCMR_CKS_MCK (0x0u << 0)
151 #define SSC_TCMR_CKS_TK (0x1u << 0)
152 #define SSC_TCMR_CKS_RK (0x2u << 0)
153 #define SSC_TCMR_CKO_Pos 2
154 #define SSC_TCMR_CKO_Msk (0x7u << SSC_TCMR_CKO_Pos)
155 #define SSC_TCMR_CKO_NONE (0x0u << 2)
156 #define SSC_TCMR_CKO_CONTINUOUS (0x1u << 2)
157 #define SSC_TCMR_CKO_TRANSFER (0x2u << 2)
158 #define SSC_TCMR_CKI (0x1u << 5)
159 #define SSC_TCMR_CKG_Pos 6
160 #define SSC_TCMR_CKG_Msk (0x3u << SSC_TCMR_CKG_Pos)
161 #define SSC_TCMR_CKG_NONE (0x0u << 6)
162 #define SSC_TCMR_CKG_CONTINUOUS (0x1u << 6)
163 #define SSC_TCMR_CKG_TRANSFER (0x2u << 6)
164 #define SSC_TCMR_START_Pos 8
165 #define SSC_TCMR_START_Msk (0xfu << SSC_TCMR_START_Pos)
166 #define SSC_TCMR_START_CONTINUOUS (0x0u << 8)
167 #define SSC_TCMR_START_RECEIVE (0x1u << 8)
168 #define SSC_TCMR_START_RF_LOW (0x2u << 8)
169 #define SSC_TCMR_START_RF_HIGH (0x3u << 8)
170 #define SSC_TCMR_START_RF_FALLING (0x4u << 8)
171 #define SSC_TCMR_START_RF_RISING (0x5u << 8)
172 #define SSC_TCMR_START_RF_LEVEL (0x6u << 8)
173 #define SSC_TCMR_START_RF_EDGE (0x7u << 8)
174 #define SSC_TCMR_START_CMP_0 (0x8u << 8)
175 #define SSC_TCMR_STTDLY_Pos 16
176 #define SSC_TCMR_STTDLY_Msk (0xffu << SSC_TCMR_STTDLY_Pos)
177 #define SSC_TCMR_STTDLY(value) ((SSC_TCMR_STTDLY_Msk & ((value) << SSC_TCMR_STTDLY_Pos)))
178 #define SSC_TCMR_PERIOD_Pos 24
179 #define SSC_TCMR_PERIOD_Msk (0xffu << SSC_TCMR_PERIOD_Pos)
180 #define SSC_TCMR_PERIOD(value) ((SSC_TCMR_PERIOD_Msk & ((value) << SSC_TCMR_PERIOD_Pos)))
181 /* -------- SSC_TFMR : (SSC Offset: 0x1C) Transmit Frame Mode Register -------- */
182 #define SSC_TFMR_DATLEN_Pos 0
183 #define SSC_TFMR_DATLEN_Msk (0x1fu << SSC_TFMR_DATLEN_Pos)
184 #define SSC_TFMR_DATLEN(value) ((SSC_TFMR_DATLEN_Msk & ((value) << SSC_TFMR_DATLEN_Pos)))
185 #define SSC_TFMR_DATDEF (0x1u << 5)
186 #define SSC_TFMR_MSBF (0x1u << 7)
187 #define SSC_TFMR_DATNB_Pos 8
188 #define SSC_TFMR_DATNB_Msk (0xfu << SSC_TFMR_DATNB_Pos)
189 #define SSC_TFMR_DATNB(value) ((SSC_TFMR_DATNB_Msk & ((value) << SSC_TFMR_DATNB_Pos)))
190 #define SSC_TFMR_FSLEN_Pos 16
191 #define SSC_TFMR_FSLEN_Msk (0xfu << SSC_TFMR_FSLEN_Pos)
192 #define SSC_TFMR_FSLEN(value) ((SSC_TFMR_FSLEN_Msk & ((value) << SSC_TFMR_FSLEN_Pos)))
193 #define SSC_TFMR_FSOS_Pos 20
194 #define SSC_TFMR_FSOS_Msk (0x7u << SSC_TFMR_FSOS_Pos)
195 #define SSC_TFMR_FSOS_NONE (0x0u << 20)
196 #define SSC_TFMR_FSOS_NEGATIVE (0x1u << 20)
197 #define SSC_TFMR_FSOS_POSITIVE (0x2u << 20)
198 #define SSC_TFMR_FSOS_LOW (0x3u << 20)
199 #define SSC_TFMR_FSOS_HIGH (0x4u << 20)
200 #define SSC_TFMR_FSOS_TOGGLING (0x5u << 20)
201 #define SSC_TFMR_FSDEN (0x1u << 23)
202 #define SSC_TFMR_FSEDGE (0x1u << 24)
203 #define SSC_TFMR_FSEDGE_POSITIVE (0x0u << 24)
204 #define SSC_TFMR_FSEDGE_NEGATIVE (0x1u << 24)
205 #define SSC_TFMR_FSLEN_EXT_Pos 28
206 #define SSC_TFMR_FSLEN_EXT_Msk (0xfu << SSC_TFMR_FSLEN_EXT_Pos)
207 #define SSC_TFMR_FSLEN_EXT(value) ((SSC_TFMR_FSLEN_EXT_Msk & ((value) << SSC_TFMR_FSLEN_EXT_Pos)))
208 /* -------- SSC_RHR : (SSC Offset: 0x20) Receive Holding Register -------- */
209 #define SSC_RHR_RDAT_Pos 0
210 #define SSC_RHR_RDAT_Msk (0xffffffffu << SSC_RHR_RDAT_Pos)
211 /* -------- SSC_THR : (SSC Offset: 0x24) Transmit Holding Register -------- */
212 #define SSC_THR_TDAT_Pos 0
213 #define SSC_THR_TDAT_Msk (0xffffffffu << SSC_THR_TDAT_Pos)
214 #define SSC_THR_TDAT(value) ((SSC_THR_TDAT_Msk & ((value) << SSC_THR_TDAT_Pos)))
215 /* -------- SSC_RSHR : (SSC Offset: 0x30) Receive Sync. Holding Register -------- */
216 #define SSC_RSHR_RSDAT_Pos 0
217 #define SSC_RSHR_RSDAT_Msk (0xffffu << SSC_RSHR_RSDAT_Pos)
218 /* -------- SSC_TSHR : (SSC Offset: 0x34) Transmit Sync. Holding Register -------- */
219 #define SSC_TSHR_TSDAT_Pos 0
220 #define SSC_TSHR_TSDAT_Msk (0xffffu << SSC_TSHR_TSDAT_Pos)
221 #define SSC_TSHR_TSDAT(value) ((SSC_TSHR_TSDAT_Msk & ((value) << SSC_TSHR_TSDAT_Pos)))
222 /* -------- SSC_RC0R : (SSC Offset: 0x38) Receive Compare 0 Register -------- */
223 #define SSC_RC0R_CP0_Pos 0
224 #define SSC_RC0R_CP0_Msk (0xffffu << SSC_RC0R_CP0_Pos)
225 #define SSC_RC0R_CP0(value) ((SSC_RC0R_CP0_Msk & ((value) << SSC_RC0R_CP0_Pos)))
226 /* -------- SSC_RC1R : (SSC Offset: 0x3C) Receive Compare 1 Register -------- */
227 #define SSC_RC1R_CP1_Pos 0
228 #define SSC_RC1R_CP1_Msk (0xffffu << SSC_RC1R_CP1_Pos)
229 #define SSC_RC1R_CP1(value) ((SSC_RC1R_CP1_Msk & ((value) << SSC_RC1R_CP1_Pos)))
230 /* -------- SSC_SR : (SSC Offset: 0x40) Status Register -------- */
231 #define SSC_SR_TXRDY (0x1u << 0)
232 #define SSC_SR_TXEMPTY (0x1u << 1)
233 #define SSC_SR_ENDTX (0x1u << 2)
234 #define SSC_SR_TXBUFE (0x1u << 3)
235 #define SSC_SR_RXRDY (0x1u << 4)
236 #define SSC_SR_OVRUN (0x1u << 5)
237 #define SSC_SR_ENDRX (0x1u << 6)
238 #define SSC_SR_RXBUFF (0x1u << 7)
239 #define SSC_SR_CP0 (0x1u << 8)
240 #define SSC_SR_CP1 (0x1u << 9)
241 #define SSC_SR_TXSYN (0x1u << 10)
242 #define SSC_SR_RXSYN (0x1u << 11)
243 #define SSC_SR_TXEN (0x1u << 16)
244 #define SSC_SR_RXEN (0x1u << 17)
245 /* -------- SSC_IER : (SSC Offset: 0x44) Interrupt Enable Register -------- */
246 #define SSC_IER_TXRDY (0x1u << 0)
247 #define SSC_IER_TXEMPTY (0x1u << 1)
248 #define SSC_IER_ENDTX (0x1u << 2)
249 #define SSC_IER_TXBUFE (0x1u << 3)
250 #define SSC_IER_RXRDY (0x1u << 4)
251 #define SSC_IER_OVRUN (0x1u << 5)
252 #define SSC_IER_ENDRX (0x1u << 6)
253 #define SSC_IER_RXBUFF (0x1u << 7)
254 #define SSC_IER_CP0 (0x1u << 8)
255 #define SSC_IER_CP1 (0x1u << 9)
256 #define SSC_IER_TXSYN (0x1u << 10)
257 #define SSC_IER_RXSYN (0x1u << 11)
258 /* -------- SSC_IDR : (SSC Offset: 0x48) Interrupt Disable Register -------- */
259 #define SSC_IDR_TXRDY (0x1u << 0)
260 #define SSC_IDR_TXEMPTY (0x1u << 1)
261 #define SSC_IDR_ENDTX (0x1u << 2)
262 #define SSC_IDR_TXBUFE (0x1u << 3)
263 #define SSC_IDR_RXRDY (0x1u << 4)
264 #define SSC_IDR_OVRUN (0x1u << 5)
265 #define SSC_IDR_ENDRX (0x1u << 6)
266 #define SSC_IDR_RXBUFF (0x1u << 7)
267 #define SSC_IDR_CP0 (0x1u << 8)
268 #define SSC_IDR_CP1 (0x1u << 9)
269 #define SSC_IDR_TXSYN (0x1u << 10)
270 #define SSC_IDR_RXSYN (0x1u << 11)
271 /* -------- SSC_IMR : (SSC Offset: 0x4C) Interrupt Mask Register -------- */
272 #define SSC_IMR_TXRDY (0x1u << 0)
273 #define SSC_IMR_TXEMPTY (0x1u << 1)
274 #define SSC_IMR_ENDTX (0x1u << 2)
275 #define SSC_IMR_TXBUFE (0x1u << 3)
276 #define SSC_IMR_RXRDY (0x1u << 4)
277 #define SSC_IMR_OVRUN (0x1u << 5)
278 #define SSC_IMR_ENDRX (0x1u << 6)
279 #define SSC_IMR_RXBUFF (0x1u << 7)
280 #define SSC_IMR_CP0 (0x1u << 8)
281 #define SSC_IMR_CP1 (0x1u << 9)
282 #define SSC_IMR_TXSYN (0x1u << 10)
283 #define SSC_IMR_RXSYN (0x1u << 11)
284 /* -------- SSC_WPMR : (SSC Offset: 0xE4) Write Protect Mode Register -------- */
285 #define SSC_WPMR_WPEN (0x1u << 0)
286 #define SSC_WPMR_WPKEY_Pos 8
287 #define SSC_WPMR_WPKEY_Msk (0xffffffu << SSC_WPMR_WPKEY_Pos)
288 #define SSC_WPMR_WPKEY(value) ((SSC_WPMR_WPKEY_Msk & ((value) << SSC_WPMR_WPKEY_Pos)))
289 /* -------- SSC_WPSR : (SSC Offset: 0xE8) Write Protect Status Register -------- */
290 #define SSC_WPSR_WPVS (0x1u << 0)
291 #define SSC_WPSR_WPVSRC_Pos 8
292 #define SSC_WPSR_WPVSRC_Msk (0xffffu << SSC_WPSR_WPVSRC_Pos)
293 /* -------- SSC_RPR : (SSC Offset: 0x100) Receive Pointer Register -------- */
294 #define SSC_RPR_RXPTR_Pos 0
295 #define SSC_RPR_RXPTR_Msk (0xffffffffu << SSC_RPR_RXPTR_Pos)
296 #define SSC_RPR_RXPTR(value) ((SSC_RPR_RXPTR_Msk & ((value) << SSC_RPR_RXPTR_Pos)))
297 /* -------- SSC_RCR : (SSC Offset: 0x104) Receive Counter Register -------- */
298 #define SSC_RCR_RXCTR_Pos 0
299 #define SSC_RCR_RXCTR_Msk (0xffffu << SSC_RCR_RXCTR_Pos)
300 #define SSC_RCR_RXCTR(value) ((SSC_RCR_RXCTR_Msk & ((value) << SSC_RCR_RXCTR_Pos)))
301 /* -------- SSC_TPR : (SSC Offset: 0x108) Transmit Pointer Register -------- */
302 #define SSC_TPR_TXPTR_Pos 0
303 #define SSC_TPR_TXPTR_Msk (0xffffffffu << SSC_TPR_TXPTR_Pos)
304 #define SSC_TPR_TXPTR(value) ((SSC_TPR_TXPTR_Msk & ((value) << SSC_TPR_TXPTR_Pos)))
305 /* -------- SSC_TCR : (SSC Offset: 0x10C) Transmit Counter Register -------- */
306 #define SSC_TCR_TXCTR_Pos 0
307 #define SSC_TCR_TXCTR_Msk (0xffffu << SSC_TCR_TXCTR_Pos)
308 #define SSC_TCR_TXCTR(value) ((SSC_TCR_TXCTR_Msk & ((value) << SSC_TCR_TXCTR_Pos)))
309 /* -------- SSC_RNPR : (SSC Offset: 0x110) Receive Next Pointer Register -------- */
310 #define SSC_RNPR_RXNPTR_Pos 0
311 #define SSC_RNPR_RXNPTR_Msk (0xffffffffu << SSC_RNPR_RXNPTR_Pos)
312 #define SSC_RNPR_RXNPTR(value) ((SSC_RNPR_RXNPTR_Msk & ((value) << SSC_RNPR_RXNPTR_Pos)))
313 /* -------- SSC_RNCR : (SSC Offset: 0x114) Receive Next Counter Register -------- */
314 #define SSC_RNCR_RXNCTR_Pos 0
315 #define SSC_RNCR_RXNCTR_Msk (0xffffu << SSC_RNCR_RXNCTR_Pos)
316 #define SSC_RNCR_RXNCTR(value) ((SSC_RNCR_RXNCTR_Msk & ((value) << SSC_RNCR_RXNCTR_Pos)))
317 /* -------- SSC_TNPR : (SSC Offset: 0x118) Transmit Next Pointer Register -------- */
318 #define SSC_TNPR_TXNPTR_Pos 0
319 #define SSC_TNPR_TXNPTR_Msk (0xffffffffu << SSC_TNPR_TXNPTR_Pos)
320 #define SSC_TNPR_TXNPTR(value) ((SSC_TNPR_TXNPTR_Msk & ((value) << SSC_TNPR_TXNPTR_Pos)))
321 /* -------- SSC_TNCR : (SSC Offset: 0x11C) Transmit Next Counter Register -------- */
322 #define SSC_TNCR_TXNCTR_Pos 0
323 #define SSC_TNCR_TXNCTR_Msk (0xffffu << SSC_TNCR_TXNCTR_Pos)
324 #define SSC_TNCR_TXNCTR(value) ((SSC_TNCR_TXNCTR_Msk & ((value) << SSC_TNCR_TXNCTR_Pos)))
325 /* -------- SSC_PTCR : (SSC Offset: 0x120) Transfer Control Register -------- */
326 #define SSC_PTCR_RXTEN (0x1u << 0)
327 #define SSC_PTCR_RXTDIS (0x1u << 1)
328 #define SSC_PTCR_TXTEN (0x1u << 8)
329 #define SSC_PTCR_TXTDIS (0x1u << 9)
330 /* -------- SSC_PTSR : (SSC Offset: 0x124) Transfer Status Register -------- */
331 #define SSC_PTSR_RXTEN (0x1u << 0)
332 #define SSC_PTSR_TXTEN (0x1u << 8)
335 
336 
337 #endif /* _SAM3S8_SSC_COMPONENT_ */
volatile uint32_t RwReg
Definition: sam3n00a.h:54
Ssc hardware registers.
Definition: component_ssc.h:41
volatile uint32_t WoReg
Definition: sam3n00a.h:53
volatile const uint32_t RoReg
Definition: sam3n00a.h:49