Contiki 2.5
atmega128rfa1_registermap.h
Go to the documentation of this file.
1 /**
2  * @file
3  * @brief This file contains RF230-formatted register definitions for the atmega128rfa1
4  */
5 /* Copyright (c) 2008, Swedish Institute of Computer Science
6 
7  All rights reserved.
8 
9  Redistribution and use in source and binary forms, with or without
10  modification, are permitted provided that the following conditions are met:
11 
12  * Redistributions of source code must retain the above copyright
13  notice, this list of conditions and the following disclaimer.
14  * Redistributions in binary form must reproduce the above copyright
15  notice, this list of conditions and the following disclaimer in
16  the documentation and/or other materials provided with the
17  distribution.
18  * Neither the name of the copyright holders nor the names of
19  contributors may be used to endorse or promote products derived
20  from this software without specific prior written permission.
21 
22  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25  ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
26  LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
27  CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
28  SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
29  INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
30  CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
31  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32  POSSIBILITY OF SUCH DAMAGE.
33 */
34 
35 #ifndef PHY128RFA1_REGISTERMAP_EXTERNAL_H
36 #define PHY128RFA1_REGISTERMAP_EXTERNAL_H
37 
38 /* RF230 register access is through SPI which transfers 8 bits address/8 bits data.
39  * ATmega128rfa1 registers are defined in I/O space, e.g. in gcc /include/avr/iom128rfa1.h
40  * A typical definition is #define TRX_STATUS _SFR_MEM8(0x141)
41  * Registers can be read with a macro, but the args for subregisters don't expand properly so the actual address
42  * is used with explicit _SFR_MEM8 in the subregister read/write routines.
43  */
44 #define RG_TRX_STATUS TRX_STATUS
45 #define SR_TRX_STATUS 0x141, 0x1f, 0
46 #define SR_TRX_CMD 0x142, 0x1f, 0
47 #define STATE_TRANSITION (31)
48 #define SR_TX_PWR 0x145, 0x0f, 0
49 #define RG_VERSION_NUM VERSION_NUM
50 #define RG_MAN_ID_0 MAN_ID_0
51 #define RG_IRQ_MASK IRQ_MASK
52 #define SR_MAX_FRAME_RETRIES 0x16C, 0xf0, 4
53 #define SR_TX_AUTO_CRC_ON 0x144, 0x20, 5
54 #define SR_TRAC_STATUS 0x142, 0xe0, 5
55 #define SR_CHANNEL 0x148, 0x1f, 0
56 #define RG_PAN_ID_0 PAN_ID_0
57 #define RG_PAN_ID_1 PAN_ID_1
58 #define RG_SHORT_ADDR_0 SHORT_ADDR_0
59 #define RG_SHORT_ADDR_1 SHORT_ADDR_1
60 #define RG_IEEE_ADDR_0 IEEE_ADDR_0
61 #define RG_IEEE_ADDR_1 IEEE_ADDR_1
62 #define RG_IEEE_ADDR_2 IEEE_ADDR_2
63 #define RG_IEEE_ADDR_3 IEEE_ADDR_3
64 #define RG_IEEE_ADDR_4 IEEE_ADDR_4
65 #define RG_IEEE_ADDR_5 IEEE_ADDR_5
66 #define RG_IEEE_ADDR_6 IEEE_ADDR_6
67 #define RG_IEEE_ADDR_7 IEEE_ADDR_7
68 //#define SR_ED_LEVEL 0x147, 0xff, 0
69 #define RG_PHY_ED_LEVEL PHY_ED_LEVEL
70 #define SR_RSSI 0x146, 0x1f, 0
71 #define SR_PLL_CF_START 0x1a, 0x80, 7
72 #define SR_PLL_DCU_START 0x1b, 0x80, 7
73 #define SR_MAX_CSMA_RETRIES 0x2c, 0x0e, 1
74 #define RG_CSMA_BE CSMA_BE
75 #define RG_CSMA_SEED_0 CSMA_SEED_0
76 #define RG_PHY_RSSI PHY_RSSI
77 #define SR_CCA_MODE 0x08, 0x60, 5
78 //#define SR_CCA_CS_THRES 0x09, 0xf0, 4
79 #define SR_CCA_ED_THRES 0x09, 0x0f, 0
80 #define SR_CCA_REQUEST 0x08, 0x80, 7
81 #define SR_CCA_DONE 0x01, 0x80, 7
82 #define SR_CCA_STATUS 0x01, 0x40, 6
83 
84 
85 /* RF230 register assignments, for reference */
86 #if 0
87 #define HAVE_REGISTER_MAP (1)
88 /** Offset for register TRX_STATUS */
89 #define RG_TRX_STATUS (0x01)
90 /** Access parameters for sub-register CCA_DONE in register @ref RG_TRX_STATUS */
91 #define SR_CCA_DONE 0x01, 0x80, 7
92 /** Access parameters for sub-register CCA_STATUS in register @ref RG_TRX_STATUS */
93 #define SR_CCA_STATUS 0x01, 0x40, 6
94 #define SR_reserved_01_3 0x01, 0x20, 5
95 /** Access parameters for sub-register TRX_STATUS in register @ref RG_TRX_STATUS */
96 #define SR_TRX_STATUS 0x01, 0x1f, 0
97 /** Constant P_ON for sub-register @ref SR_TRX_STATUS */
98 #define P_ON (0)
99 /** Constant BUSY_RX for sub-register @ref SR_TRX_STATUS */
100 #define BUSY_RX (1)
101 /** Constant BUSY_TX for sub-register @ref SR_TRX_STATUS */
102 #define BUSY_TX (2)
103 /** Constant RX_ON for sub-register @ref SR_TRX_STATUS */
104 #define RX_ON (6)
105 /** Constant TRX_OFF for sub-register @ref SR_TRX_STATUS */
106 #define TRX_OFF (8)
107 /** Constant PLL_ON for sub-register @ref SR_TRX_STATUS */
108 #define PLL_ON (9)
109 /** Constant SLEEP for sub-register @ref SR_TRX_STATUS */
110 #define SLEEP (15)
111 /** Constant BUSY_RX_AACK for sub-register @ref SR_TRX_STATUS */
112 #define BUSY_RX_AACK (17)
113 /** Constant BUSY_TX_ARET for sub-register @ref SR_TRX_STATUS */
114 #define BUSY_TX_ARET (18)
115 /** Constant RX_AACK_ON for sub-register @ref SR_TRX_STATUS */
116 #define RX_AACK_ON (22)
117 /** Constant TX_ARET_ON for sub-register @ref SR_TRX_STATUS */
118 #define TX_ARET_ON (25)
119 /** Constant RX_ON_NOCLK for sub-register @ref SR_TRX_STATUS */
120 #define RX_ON_NOCLK (28)
121 /** Constant RX_AACK_ON_NOCLK for sub-register @ref SR_TRX_STATUS */
122 #define RX_AACK_ON_NOCLK (29)
123 /** Constant BUSY_RX_AACK_NOCLK for sub-register @ref SR_TRX_STATUS */
124 #define BUSY_RX_AACK_NOCLK (30)
125 /** Constant STATE_TRANSITION for sub-register @ref SR_TRX_STATUS */
126 #define STATE_TRANSITION (31)
127 
128 /** Offset for register TRX_STATE */
129 #define RG_TRX_STATE (0x02)
130 /** Access parameters for sub-register TRAC_STATUS in register @ref RG_TRX_STATE */
131 #define SR_TRAC_STATUS 0x02, 0xe0, 5
132 /** Access parameters for sub-register TRX_CMD in register @ref RG_TRX_STATE */
133 #define SR_TRX_CMD 0x02, 0x1f, 0
134 /** Constant CMD_NOP for sub-register @ref SR_TRX_CMD */
135 #define CMD_NOP (0)
136 /** Constant CMD_TX_START for sub-register @ref SR_TRX_CMD */
137 #define CMD_TX_START (2)
138 /** Constant CMD_FORCE_TRX_OFF for sub-register @ref SR_TRX_CMD */
139 #define CMD_FORCE_TRX_OFF (3)
140 /** Constant CMD_RX_ON for sub-register @ref SR_TRX_CMD */
141 #define CMD_RX_ON (6)
142 /** Constant CMD_TRX_OFF for sub-register @ref SR_TRX_CMD */
143 #define CMD_TRX_OFF (8)
144 /** Constant CMD_PLL_ON for sub-register @ref SR_TRX_CMD */
145 #define CMD_PLL_ON (9)
146 /** Constant CMD_RX_AACK_ON for sub-register @ref SR_TRX_CMD */
147 #define CMD_RX_AACK_ON (22)
148 /** Constant CMD_TX_ARET_ON for sub-register @ref SR_TRX_CMD */
149 #define CMD_TX_ARET_ON (25)
150 /** Offset for register TRX_CTRL_0 */
151 #define RG_TRX_CTRL_0 (0x03)
152 /** Offset for register TRX_CTRL_1 */
153 #define RG_TRX_CTRL_1 (0x04)
154 /** Access parameters for sub-register PAD_IO in register @ref RG_TRX_CTRL_0 */
155 #define SR_PAD_IO 0x03, 0xc0, 6
156 /** Access parameters for sub-register PAD_IO_CLKM in register @ref RG_TRX_CTRL_0 */
157 #define SR_PAD_IO_CLKM 0x03, 0x30, 4
158 /** Constant CLKM_2mA for sub-register @ref SR_PAD_IO_CLKM */
159 #define CLKM_2mA (0)
160 /** Constant CLKM_4mA for sub-register @ref SR_PAD_IO_CLKM */
161 #define CLKM_4mA (1)
162 /** Constant CLKM_6mA for sub-register @ref SR_PAD_IO_CLKM */
163 #define CLKM_6mA (2)
164 /** Constant CLKM_8mA for sub-register @ref SR_PAD_IO_CLKM */
165 #define CLKM_8mA (3)
166 /** Access parameters for sub-register CLKM_SHA_SEL in register @ref RG_TRX_CTRL_0 */
167 #define SR_CLKM_SHA_SEL 0x03, 0x08, 3
168 /** Access parameters for sub-register CLKM_CTRL in register @ref RG_TRX_CTRL_0 */
169 #define SR_CLKM_CTRL 0x03, 0x07, 0
170 /** Constant CLKM_no_clock for sub-register @ref SR_CLKM_CTRL */
171 #define CLKM_no_clock (0)
172 /** Constant CLKM_1MHz for sub-register @ref SR_CLKM_CTRL */
173 #define CLKM_1MHz (1)
174 /** Constant CLKM_2MHz for sub-register @ref SR_CLKM_CTRL */
175 #define CLKM_2MHz (2)
176 /** Constant CLKM_4MHz for sub-register @ref SR_CLKM_CTRL */
177 #define CLKM_4MHz (3)
178 /** Constant CLKM_8MHz for sub-register @ref SR_CLKM_CTRL */
179 #define CLKM_8MHz (4)
180 /** Constant CLKM_16MHz for sub-register @ref SR_CLKM_CTRL */
181 #define CLKM_16MHz (5)
182 /** Offset for register PHY_TX_PWR */
183 #define RG_PHY_TX_PWR (0x05)
184 /** Access parameters for sub-register TX_AUTO_CRC_ON in register @ref RG_PHY_TX_PWR */
185 #define SR_TX_AUTO_CRC_ON 0x05, 0x80, 7
186 #define SR_reserved_05_2 0x05, 0x70, 4
187 /** Access parameters for sub-register TX_PWR in register @ref RG_PHY_TX_PWR */
188 #define SR_TX_PWR 0x05, 0x0f, 0
189 /** Offset for register PHY_RSSI */
190 #define RG_PHY_RSSI (0x06)
191 #define SR_reserved_06_1 0x06, 0xe0, 5
192 /** Access parameters for sub-register RSSI in register @ref RG_PHY_RSSI */
193 #define SR_RSSI 0x06, 0x1f, 0
194 /** Offset for register PHY_ED_LEVEL */
195 #define RG_PHY_ED_LEVEL (0x07)
196 /** Access parameters for sub-register ED_LEVEL in register @ref RG_PHY_ED_LEVEL */
197 #define SR_ED_LEVEL 0x07, 0xff, 0
198 /** Offset for register PHY_CC_CCA */
199 #define RG_PHY_CC_CCA (0x08)
200 /** Access parameters for sub-register CCA_REQUEST in register @ref RG_PHY_CC_CCA */
201 #define SR_CCA_REQUEST 0x08, 0x80, 7
202 /** Access parameters for sub-register CCA_MODE in register @ref RG_PHY_CC_CCA */
203 #define SR_CCA_MODE 0x08, 0x60, 5
204 /** Access parameters for sub-register CHANNEL in register @ref RG_PHY_CC_CCA */
205 #define SR_CHANNEL 0x08, 0x1f, 0
206 /** Offset for register CCA_THRES */
207 #define RG_CCA_THRES (0x09)
208 /** Access parameters for sub-register CCA_CS_THRES in register @ref RG_CCA_THRES */
209 #define SR_CCA_CS_THRES 0x09, 0xf0, 4
210 /** Access parameters for sub-register CCA_ED_THRES in register @ref RG_CCA_THRES */
211 #define SR_CCA_ED_THRES 0x09, 0x0f, 0
212 /** Offset for register IRQ_MASK */
213 #define RG_IRQ_MASK (0x0e)
214 /** Access parameters for sub-register IRQ_MASK in register @ref RG_IRQ_MASK */
215 #define SR_IRQ_MASK 0x0e, 0xff, 0
216 /** Offset for register IRQ_STATUS */
217 #define RG_IRQ_STATUS (0x0f)
218 /** Access parameters for sub-register IRQ_7_BAT_LOW in register @ref RG_IRQ_STATUS */
219 #define SR_IRQ_7_BAT_LOW 0x0f, 0x80, 7
220 /** Access parameters for sub-register IRQ_6_TRX_UR in register @ref RG_IRQ_STATUS */
221 #define SR_IRQ_6_TRX_UR 0x0f, 0x40, 6
222 /** Access parameters for sub-register IRQ_5 in register @ref RG_IRQ_STATUS */
223 #define SR_IRQ_5 0x0f, 0x20, 5
224 /** Access parameters for sub-register IRQ_4 in register @ref RG_IRQ_STATUS */
225 #define SR_IRQ_4 0x0f, 0x10, 4
226 /** Access parameters for sub-register IRQ_3_TRX_END in register @ref RG_IRQ_STATUS */
227 #define SR_IRQ_3_TRX_END 0x0f, 0x08, 3
228 /** Access parameters for sub-register IRQ_2_RX_START in register @ref RG_IRQ_STATUS */
229 #define SR_IRQ_2_RX_START 0x0f, 0x04, 2
230 /** Access parameters for sub-register IRQ_1_PLL_UNLOCK in register @ref RG_IRQ_STATUS */
231 #define SR_IRQ_1_PLL_UNLOCK 0x0f, 0x02, 1
232 /** Access parameters for sub-register IRQ_0_PLL_LOCK in register @ref RG_IRQ_STATUS */
233 #define SR_IRQ_0_PLL_LOCK 0x0f, 0x01, 0
234 /** Offset for register VREG_CTRL */
235 #define RG_VREG_CTRL (0x10)
236 /** Access parameters for sub-register AVREG_EXT in register @ref RG_VREG_CTRL */
237 #define SR_AVREG_EXT 0x10, 0x80, 7
238 /** Access parameters for sub-register AVDD_OK in register @ref RG_VREG_CTRL */
239 #define SR_AVDD_OK 0x10, 0x40, 6
240 /** Access parameters for sub-register AVREG_TRIM in register @ref RG_VREG_CTRL */
241 #define SR_AVREG_TRIM 0x10, 0x30, 4
242 /** Constant AVREG_1_80V for sub-register @ref SR_AVREG_TRIM */
243 #define AVREG_1_80V (0)
244 /** Constant AVREG_1_75V for sub-register @ref SR_AVREG_TRIM */
245 #define AVREG_1_75V (1)
246 /** Constant AVREG_1_84V for sub-register @ref SR_AVREG_TRIM */
247 #define AVREG_1_84V (2)
248 /** Constant AVREG_1_88V for sub-register @ref SR_AVREG_TRIM */
249 #define AVREG_1_88V (3)
250 /** Access parameters for sub-register DVREG_EXT in register @ref RG_VREG_CTRL */
251 #define SR_DVREG_EXT 0x10, 0x08, 3
252 /** Access parameters for sub-register DVDD_OK in register @ref RG_VREG_CTRL */
253 #define SR_DVDD_OK 0x10, 0x04, 2
254 /** Access parameters for sub-register DVREG_TRIM in register @ref RG_VREG_CTRL */
255 #define SR_DVREG_TRIM 0x10, 0x03, 0
256 /** Constant DVREG_1_80V for sub-register @ref SR_DVREG_TRIM */
257 #define DVREG_1_80V (0)
258 /** Constant DVREG_1_75V for sub-register @ref SR_DVREG_TRIM */
259 #define DVREG_1_75V (1)
260 /** Constant DVREG_1_84V for sub-register @ref SR_DVREG_TRIM */
261 #define DVREG_1_84V (2)
262 /** Constant DVREG_1_88V for sub-register @ref SR_DVREG_TRIM */
263 #define DVREG_1_88V (3)
264 /** Offset for register BATMON */
265 #define RG_BATMON (0x11)
266 #define SR_reserved_11_1 0x11, 0xc0, 6
267 /** Access parameters for sub-register BATMON_OK in register @ref RG_BATMON */
268 #define SR_BATMON_OK 0x11, 0x20, 5
269 /** Access parameters for sub-register BATMON_HR in register @ref RG_BATMON */
270 #define SR_BATMON_HR 0x11, 0x10, 4
271 /** Access parameters for sub-register BATMON_VTH in register @ref RG_BATMON */
272 #define SR_BATMON_VTH 0x11, 0x0f, 0
273 /** Offset for register XOSC_CTRL */
274 #define RG_XOSC_CTRL (0x12)
275 /** Offset for register RX_SYN */
276 #define RG_RX_SYN 0x15
277 /** Offset for register XAH_CTRL_1 */
278 #define RG_XAH_CTRL_1 0x17
279 /** Access parameters for sub-register XTAL_MODE in register @ref RG_XOSC_CTRL */
280 #define SR_XTAL_MODE 0x12, 0xf0, 4
281 /** Access parameters for sub-register XTAL_TRIM in register @ref RG_XOSC_CTRL */
282 #define SR_XTAL_TRIM 0x12, 0x0f, 0
283 /** Offset for register FTN_CTRL */
284 #define RG_FTN_CTRL (0x18)
285 /** Access parameters for sub-register FTN_START in register @ref RG_FTN_CTRL */
286 #define SR_FTN_START 0x18, 0x80, 7
287 #define SR_reserved_18_2 0x18, 0x40, 6
288 /** Access parameters for sub-register FTNV in register @ref RG_FTN_CTRL */
289 #define SR_FTNV 0x18, 0x3f, 0
290 /** Offset for register PLL_CF */
291 #define RG_PLL_CF (0x1a)
292 /** Access parameters for sub-register PLL_CF_START in register @ref RG_PLL_CF */
293 #define SR_PLL_CF_START 0x1a, 0x80, 7
294 #define SR_reserved_1a_2 0x1a, 0x70, 4
295 /** Access parameters for sub-register PLL_CF in register @ref RG_PLL_CF */
296 #define SR_PLL_CF 0x1a, 0x0f, 0
297 /** Offset for register PLL_DCU */
298 #define RG_PLL_DCU (0x1b)
299 /** Access parameters for sub-register PLL_DCU_START in register @ref RG_PLL_DCU */
300 #define SR_PLL_DCU_START 0x1b, 0x80, 7
301 #define SR_reserved_1b_2 0x1b, 0x40, 6
302 /** Access parameters for sub-register PLL_DCUW in register @ref RG_PLL_DCU */
303 #define SR_PLL_DCUW 0x1b, 0x3f, 0
304 /** Offset for register PART_NUM */
305 #define RG_PART_NUM (0x1c)
306 /** Access parameters for sub-register PART_NUM in register @ref RG_PART_NUM */
307 #define SR_PART_NUM 0x1c, 0xff, 0
308 /** Constant RF230 for sub-register @ref SR_PART_NUM */
309 #define RF230 (2)
310 /** Offset for register VERSION_NUM */
311 #define RG_VERSION_NUM (0x1d)
312 /** Access parameters for sub-register VERSION_NUM in register @ref RG_VERSION_NUM */
313 #define SR_VERSION_NUM 0x1d, 0xff, 0
314 /** Offset for register MAN_ID_0 */
315 #define RG_MAN_ID_0 (0x1e)
316 /** Access parameters for sub-register MAN_ID_0 in register @ref RG_MAN_ID_0 */
317 #define SR_MAN_ID_0 0x1e, 0xff, 0
318 /** Offset for register MAN_ID_1 */
319 #define RG_MAN_ID_1 (0x1f)
320 /** Access parameters for sub-register MAN_ID_1 in register @ref RG_MAN_ID_1 */
321 #define SR_MAN_ID_1 0x1f, 0xff, 0
322 /** Offset for register SHORT_ADDR_0 */
323 #define RG_SHORT_ADDR_0 (0x20)
324 /** Access parameters for sub-register SHORT_ADDR_0 in register @ref RG_SHORT_ADDR_0 */
325 #define SR_SHORT_ADDR_0 0x20, 0xff, 0
326 /** Offset for register SHORT_ADDR_1 */
327 #define RG_SHORT_ADDR_1 (0x21)
328 /** Access parameters for sub-register SHORT_ADDR_1 in register @ref RG_SHORT_ADDR_1 */
329 #define SR_SHORT_ADDR_1 0x21, 0xff, 0
330 /** Offset for register PAN_ID_0 */
331 #define RG_PAN_ID_0 (0x22)
332 /** Access parameters for sub-register PAN_ID_0 in register @ref RG_PAN_ID_0 */
333 #define SR_PAN_ID_0 0x22, 0xff, 0
334 /** Offset for register PAN_ID_1 */
335 #define RG_PAN_ID_1 (0x23)
336 /** Access parameters for sub-register PAN_ID_1 in register @ref RG_PAN_ID_1 */
337 #define SR_PAN_ID_1 0x23, 0xff, 0
338 /** Offset for register IEEE_ADDR_0 */
339 #define RG_IEEE_ADDR_0 (0x24)
340 /** Access parameters for sub-register IEEE_ADDR_0 in register @ref RG_IEEE_ADDR_0 */
341 #define SR_IEEE_ADDR_0 0x24, 0xff, 0
342 /** Offset for register IEEE_ADDR_1 */
343 #define RG_IEEE_ADDR_1 (0x25)
344 /** Access parameters for sub-register IEEE_ADDR_1 in register @ref RG_IEEE_ADDR_1 */
345 #define SR_IEEE_ADDR_1 0x25, 0xff, 0
346 /** Offset for register IEEE_ADDR_2 */
347 #define RG_IEEE_ADDR_2 (0x26)
348 /** Access parameters for sub-register IEEE_ADDR_2 in register @ref RG_IEEE_ADDR_2 */
349 #define SR_IEEE_ADDR_2 0x26, 0xff, 0
350 /** Offset for register IEEE_ADDR_3 */
351 #define RG_IEEE_ADDR_3 (0x27)
352 /** Access parameters for sub-register IEEE_ADDR_3 in register @ref RG_IEEE_ADDR_3 */
353 #define SR_IEEE_ADDR_3 0x27, 0xff, 0
354 /** Offset for register IEEE_ADDR_4 */
355 #define RG_IEEE_ADDR_4 (0x28)
356 /** Access parameters for sub-register IEEE_ADDR_4 in register @ref RG_IEEE_ADDR_4 */
357 #define SR_IEEE_ADDR_4 0x28, 0xff, 0
358 /** Offset for register IEEE_ADDR_5 */
359 #define RG_IEEE_ADDR_5 (0x29)
360 /** Access parameters for sub-register IEEE_ADDR_5 in register @ref RG_IEEE_ADDR_5 */
361 #define SR_IEEE_ADDR_5 0x29, 0xff, 0
362 /** Offset for register IEEE_ADDR_6 */
363 #define RG_IEEE_ADDR_6 (0x2a)
364 /** Access parameters for sub-register IEEE_ADDR_6 in register @ref RG_IEEE_ADDR_6 */
365 #define SR_IEEE_ADDR_6 0x2a, 0xff, 0
366 /** Offset for register IEEE_ADDR_7 */
367 #define RG_IEEE_ADDR_7 (0x2b)
368 /** Access parameters for sub-register IEEE_ADDR_7 in register @ref RG_IEEE_ADDR_7 */
369 #define SR_IEEE_ADDR_7 0x2b, 0xff, 0
370 /** Offset for register XAH_CTRL */
371 #define RG_XAH_CTRL_0 (0x2c)
372 /** Access parameters for sub-register MAX_FRAME_RETRIES in register @ref RG_XAH_CTRL_0 */
373 #define SR_MAX_FRAME_RETRIES 0x2c, 0xf0, 4
374 /** Access parameters for sub-register MAX_CSMA_RETRIES in register @ref RG_XAH_CTRL_0 */
375 #define SR_MAX_CSMA_RETRIES 0x2c, 0x0e, 1
376 #define SR_reserved_2c_3 0x2c, 0x01, 0
377 /** Offset for register CSMA_SEED_0 */
378 #define RG_CSMA_SEED_0 (0x2d)
379 /** Access parameters for sub-register CSMA_SEED_0 in register @ref RG_CSMA_SEED_0 */
380 #define SR_CSMA_SEED_0 0x2d, 0xff, 0
381 /** Offset for register CSMA_SEED_1 */
382 #define RG_CSMA_SEED_1 (0x2e)
383 /** Offset for register CSMA_BE */
384 #define RG_CSMA_BE 0x2f
385 /** Access parameters for sub-register MIN_BE in register @ref RG_CSMA_SEED_1 */
386 #define SR_MIN_BE 0x2e, 0xc0, 6
387 #define SR_reserved_2e_2 0x2e, 0x30, 4
388 /** Access parameters for sub-register I_AM_COORD in register @ref RG_CSMA_SEED_1 */
389 #define SR_I_AM_COORD 0x2e, 0x08, 3
390 /** Access parameters for sub-register CSMA_SEED_1 in register @ref RG_CSMA_SEED_1 */
391 #define SR_CSMA_SEED_1 0x2e, 0x07, 0
392 #endif
393 #endif /* PHY128RFA1_REGISTERMAP_EXTERNAL_H */