Go to the documentation of this file.
35 #ifndef PHY128RFA1_REGISTERMAP_EXTERNAL_H
36 #define PHY128RFA1_REGISTERMAP_EXTERNAL_H
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
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
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
87 #define HAVE_REGISTER_MAP (1)
89 #define RG_TRX_STATUS (0x01)
91 #define SR_CCA_DONE 0x01, 0x80, 7
93 #define SR_CCA_STATUS 0x01, 0x40, 6
94 #define SR_reserved_01_3 0x01, 0x20, 5
96 #define SR_TRX_STATUS 0x01, 0x1f, 0
112 #define BUSY_RX_AACK (17)
114 #define BUSY_TX_ARET (18)
116 #define RX_AACK_ON (22)
118 #define TX_ARET_ON (25)
120 #define RX_ON_NOCLK (28)
122 #define RX_AACK_ON_NOCLK (29)
124 #define BUSY_RX_AACK_NOCLK (30)
126 #define STATE_TRANSITION (31)
129 #define RG_TRX_STATE (0x02)
131 #define SR_TRAC_STATUS 0x02, 0xe0, 5
133 #define SR_TRX_CMD 0x02, 0x1f, 0
137 #define CMD_TX_START (2)
139 #define CMD_FORCE_TRX_OFF (3)
141 #define CMD_RX_ON (6)
143 #define CMD_TRX_OFF (8)
145 #define CMD_PLL_ON (9)
147 #define CMD_RX_AACK_ON (22)
149 #define CMD_TX_ARET_ON (25)
151 #define RG_TRX_CTRL_0 (0x03)
153 #define RG_TRX_CTRL_1 (0x04)
155 #define SR_PAD_IO 0x03, 0xc0, 6
157 #define SR_PAD_IO_CLKM 0x03, 0x30, 4
167 #define SR_CLKM_SHA_SEL 0x03, 0x08, 3
169 #define SR_CLKM_CTRL 0x03, 0x07, 0
171 #define CLKM_no_clock (0)
173 #define CLKM_1MHz (1)
175 #define CLKM_2MHz (2)
177 #define CLKM_4MHz (3)
179 #define CLKM_8MHz (4)
181 #define CLKM_16MHz (5)
183 #define RG_PHY_TX_PWR (0x05)
185 #define SR_TX_AUTO_CRC_ON 0x05, 0x80, 7
186 #define SR_reserved_05_2 0x05, 0x70, 4
188 #define SR_TX_PWR 0x05, 0x0f, 0
190 #define RG_PHY_RSSI (0x06)
191 #define SR_reserved_06_1 0x06, 0xe0, 5
193 #define SR_RSSI 0x06, 0x1f, 0
195 #define RG_PHY_ED_LEVEL (0x07)
197 #define SR_ED_LEVEL 0x07, 0xff, 0
199 #define RG_PHY_CC_CCA (0x08)
201 #define SR_CCA_REQUEST 0x08, 0x80, 7
203 #define SR_CCA_MODE 0x08, 0x60, 5
205 #define SR_CHANNEL 0x08, 0x1f, 0
207 #define RG_CCA_THRES (0x09)
209 #define SR_CCA_CS_THRES 0x09, 0xf0, 4
211 #define SR_CCA_ED_THRES 0x09, 0x0f, 0
213 #define RG_IRQ_MASK (0x0e)
215 #define SR_IRQ_MASK 0x0e, 0xff, 0
217 #define RG_IRQ_STATUS (0x0f)
219 #define SR_IRQ_7_BAT_LOW 0x0f, 0x80, 7
221 #define SR_IRQ_6_TRX_UR 0x0f, 0x40, 6
223 #define SR_IRQ_5 0x0f, 0x20, 5
225 #define SR_IRQ_4 0x0f, 0x10, 4
227 #define SR_IRQ_3_TRX_END 0x0f, 0x08, 3
229 #define SR_IRQ_2_RX_START 0x0f, 0x04, 2
231 #define SR_IRQ_1_PLL_UNLOCK 0x0f, 0x02, 1
233 #define SR_IRQ_0_PLL_LOCK 0x0f, 0x01, 0
235 #define RG_VREG_CTRL (0x10)
237 #define SR_AVREG_EXT 0x10, 0x80, 7
239 #define SR_AVDD_OK 0x10, 0x40, 6
241 #define SR_AVREG_TRIM 0x10, 0x30, 4
243 #define AVREG_1_80V (0)
245 #define AVREG_1_75V (1)
247 #define AVREG_1_84V (2)
249 #define AVREG_1_88V (3)
251 #define SR_DVREG_EXT 0x10, 0x08, 3
253 #define SR_DVDD_OK 0x10, 0x04, 2
255 #define SR_DVREG_TRIM 0x10, 0x03, 0
257 #define DVREG_1_80V (0)
259 #define DVREG_1_75V (1)
261 #define DVREG_1_84V (2)
263 #define DVREG_1_88V (3)
265 #define RG_BATMON (0x11)
266 #define SR_reserved_11_1 0x11, 0xc0, 6
268 #define SR_BATMON_OK 0x11, 0x20, 5
270 #define SR_BATMON_HR 0x11, 0x10, 4
272 #define SR_BATMON_VTH 0x11, 0x0f, 0
274 #define RG_XOSC_CTRL (0x12)
276 #define RG_RX_SYN 0x15
278 #define RG_XAH_CTRL_1 0x17
280 #define SR_XTAL_MODE 0x12, 0xf0, 4
282 #define SR_XTAL_TRIM 0x12, 0x0f, 0
284 #define RG_FTN_CTRL (0x18)
286 #define SR_FTN_START 0x18, 0x80, 7
287 #define SR_reserved_18_2 0x18, 0x40, 6
289 #define SR_FTNV 0x18, 0x3f, 0
291 #define RG_PLL_CF (0x1a)
293 #define SR_PLL_CF_START 0x1a, 0x80, 7
294 #define SR_reserved_1a_2 0x1a, 0x70, 4
296 #define SR_PLL_CF 0x1a, 0x0f, 0
298 #define RG_PLL_DCU (0x1b)
300 #define SR_PLL_DCU_START 0x1b, 0x80, 7
301 #define SR_reserved_1b_2 0x1b, 0x40, 6
303 #define SR_PLL_DCUW 0x1b, 0x3f, 0
305 #define RG_PART_NUM (0x1c)
307 #define SR_PART_NUM 0x1c, 0xff, 0
311 #define RG_VERSION_NUM (0x1d)
313 #define SR_VERSION_NUM 0x1d, 0xff, 0
315 #define RG_MAN_ID_0 (0x1e)
317 #define SR_MAN_ID_0 0x1e, 0xff, 0
319 #define RG_MAN_ID_1 (0x1f)
321 #define SR_MAN_ID_1 0x1f, 0xff, 0
323 #define RG_SHORT_ADDR_0 (0x20)
325 #define SR_SHORT_ADDR_0 0x20, 0xff, 0
327 #define RG_SHORT_ADDR_1 (0x21)
329 #define SR_SHORT_ADDR_1 0x21, 0xff, 0
331 #define RG_PAN_ID_0 (0x22)
333 #define SR_PAN_ID_0 0x22, 0xff, 0
335 #define RG_PAN_ID_1 (0x23)
337 #define SR_PAN_ID_1 0x23, 0xff, 0
339 #define RG_IEEE_ADDR_0 (0x24)
341 #define SR_IEEE_ADDR_0 0x24, 0xff, 0
343 #define RG_IEEE_ADDR_1 (0x25)
345 #define SR_IEEE_ADDR_1 0x25, 0xff, 0
347 #define RG_IEEE_ADDR_2 (0x26)
349 #define SR_IEEE_ADDR_2 0x26, 0xff, 0
351 #define RG_IEEE_ADDR_3 (0x27)
353 #define SR_IEEE_ADDR_3 0x27, 0xff, 0
355 #define RG_IEEE_ADDR_4 (0x28)
357 #define SR_IEEE_ADDR_4 0x28, 0xff, 0
359 #define RG_IEEE_ADDR_5 (0x29)
361 #define SR_IEEE_ADDR_5 0x29, 0xff, 0
363 #define RG_IEEE_ADDR_6 (0x2a)
365 #define SR_IEEE_ADDR_6 0x2a, 0xff, 0
367 #define RG_IEEE_ADDR_7 (0x2b)
369 #define SR_IEEE_ADDR_7 0x2b, 0xff, 0
371 #define RG_XAH_CTRL_0 (0x2c)
373 #define SR_MAX_FRAME_RETRIES 0x2c, 0xf0, 4
375 #define SR_MAX_CSMA_RETRIES 0x2c, 0x0e, 1
376 #define SR_reserved_2c_3 0x2c, 0x01, 0
378 #define RG_CSMA_SEED_0 (0x2d)
380 #define SR_CSMA_SEED_0 0x2d, 0xff, 0
382 #define RG_CSMA_SEED_1 (0x2e)
384 #define RG_CSMA_BE 0x2f
386 #define SR_MIN_BE 0x2e, 0xc0, 6
387 #define SR_reserved_2e_2 0x2e, 0x30, 4
389 #define SR_I_AM_COORD 0x2e, 0x08, 3
391 #define SR_CSMA_SEED_1 0x2e, 0x07, 0