Go to the documentation of this file.
46 #ifndef PHY230_REGISTERMAP_EXTERNAL_H
47 #define PHY230_REGISTERMAP_EXTERNAL_H
49 #define HAVE_REGISTER_MAP (1)
51 #define RG_TRX_STATUS (0x01)
53 #define SR_CCA_DONE 0x01, 0x80, 7
55 #define SR_CCA_STATUS 0x01, 0x40, 6
56 #define SR_reserved_01_3 0x01, 0x20, 5
58 #define SR_TRX_STATUS 0x01, 0x1f, 0
74 #define BUSY_RX_AACK (17)
76 #define BUSY_TX_ARET (18)
78 #define RX_AACK_ON (22)
80 #define TX_ARET_ON (25)
82 #define RX_ON_NOCLK (28)
84 #define RX_AACK_ON_NOCLK (29)
86 #define BUSY_RX_AACK_NOCLK (30)
88 #define STATE_TRANSITION (31)
90 #define RG_TRX_STATE (0x02)
92 #define SR_TRAC_STATUS 0x02, 0xe0, 5
94 #define SR_TRX_CMD 0x02, 0x1f, 0
98 #define CMD_TX_START (2)
100 #define CMD_FORCE_TRX_OFF (3)
102 #define CMD_RX_ON (6)
104 #define CMD_TRX_OFF (8)
106 #define CMD_PLL_ON (9)
108 #define CMD_RX_AACK_ON (22)
110 #define CMD_TX_ARET_ON (25)
112 #define RG_TRX_CTRL_0 (0x03)
114 #define RG_TRX_CTRL_1 (0x04)
116 #define SR_PAD_IO 0x03, 0xc0, 6
118 #define SR_PAD_IO_CLKM 0x03, 0x30, 4
128 #define SR_CLKM_SHA_SEL 0x03, 0x08, 3
130 #define SR_CLKM_CTRL 0x03, 0x07, 0
132 #define CLKM_no_clock (0)
134 #define CLKM_1MHz (1)
136 #define CLKM_2MHz (2)
138 #define CLKM_4MHz (3)
140 #define CLKM_8MHz (4)
142 #define CLKM_16MHz (5)
144 #define RG_PHY_TX_PWR (0x05)
146 #define SR_TX_AUTO_CRC_ON 0x05, 0x80, 7
147 #define SR_reserved_05_2 0x05, 0x70, 4
149 #define SR_TX_PWR 0x05, 0x0f, 0
151 #define RG_PHY_RSSI (0x06)
152 #define SR_reserved_06_1 0x06, 0xe0, 5
154 #define SR_RSSI 0x06, 0x1f, 0
156 #define RG_PHY_ED_LEVEL (0x07)
158 #define SR_ED_LEVEL 0x07, 0xff, 0
160 #define RG_PHY_CC_CCA (0x08)
162 #define SR_CCA_REQUEST 0x08, 0x80, 7
164 #define SR_CCA_MODE 0x08, 0x60, 5
166 #define SR_CHANNEL 0x08, 0x1f, 0
168 #define RG_CCA_THRES (0x09)
170 #define SR_CCA_CS_THRES 0x09, 0xf0, 4
172 #define SR_CCA_ED_THRES 0x09, 0x0f, 0
174 #define RG_IRQ_MASK (0x0e)
176 #define SR_IRQ_MASK 0x0e, 0xff, 0
178 #define RG_IRQ_STATUS (0x0f)
180 #define SR_IRQ_7_BAT_LOW 0x0f, 0x80, 7
182 #define SR_IRQ_6_TRX_UR 0x0f, 0x40, 6
184 #define SR_IRQ_5 0x0f, 0x20, 5
186 #define SR_IRQ_4 0x0f, 0x10, 4
188 #define SR_IRQ_3_TRX_END 0x0f, 0x08, 3
190 #define SR_IRQ_2_RX_START 0x0f, 0x04, 2
192 #define SR_IRQ_1_PLL_UNLOCK 0x0f, 0x02, 1
194 #define SR_IRQ_0_PLL_LOCK 0x0f, 0x01, 0
196 #define RG_VREG_CTRL (0x10)
198 #define SR_AVREG_EXT 0x10, 0x80, 7
200 #define SR_AVDD_OK 0x10, 0x40, 6
202 #define SR_AVREG_TRIM 0x10, 0x30, 4
204 #define AVREG_1_80V (0)
206 #define AVREG_1_75V (1)
208 #define AVREG_1_84V (2)
210 #define AVREG_1_88V (3)
212 #define SR_DVREG_EXT 0x10, 0x08, 3
214 #define SR_DVDD_OK 0x10, 0x04, 2
216 #define SR_DVREG_TRIM 0x10, 0x03, 0
218 #define DVREG_1_80V (0)
220 #define DVREG_1_75V (1)
222 #define DVREG_1_84V (2)
224 #define DVREG_1_88V (3)
226 #define RG_BATMON (0x11)
227 #define SR_reserved_11_1 0x11, 0xc0, 6
229 #define SR_BATMON_OK 0x11, 0x20, 5
231 #define SR_BATMON_HR 0x11, 0x10, 4
233 #define SR_BATMON_VTH 0x11, 0x0f, 0
235 #define RG_XOSC_CTRL (0x12)
237 #define RG_RX_SYN 0x15
239 #define RG_XAH_CTRL_1 0x17
241 #define SR_XTAL_MODE 0x12, 0xf0, 4
243 #define SR_XTAL_TRIM 0x12, 0x0f, 0
245 #define RG_FTN_CTRL (0x18)
247 #define SR_FTN_START 0x18, 0x80, 7
248 #define SR_reserved_18_2 0x18, 0x40, 6
250 #define SR_FTNV 0x18, 0x3f, 0
252 #define RG_PLL_CF (0x1a)
254 #define SR_PLL_CF_START 0x1a, 0x80, 7
255 #define SR_reserved_1a_2 0x1a, 0x70, 4
257 #define SR_PLL_CF 0x1a, 0x0f, 0
259 #define RG_PLL_DCU (0x1b)
261 #define SR_PLL_DCU_START 0x1b, 0x80, 7
262 #define SR_reserved_1b_2 0x1b, 0x40, 6
264 #define SR_PLL_DCUW 0x1b, 0x3f, 0
266 #define RG_PART_NUM (0x1c)
268 #define SR_PART_NUM 0x1c, 0xff, 0
272 #define RG_VERSION_NUM (0x1d)
274 #define SR_VERSION_NUM 0x1d, 0xff, 0
276 #define RG_MAN_ID_0 (0x1e)
278 #define SR_MAN_ID_0 0x1e, 0xff, 0
280 #define RG_MAN_ID_1 (0x1f)
282 #define SR_MAN_ID_1 0x1f, 0xff, 0
284 #define RG_SHORT_ADDR_0 (0x20)
286 #define SR_SHORT_ADDR_0 0x20, 0xff, 0
288 #define RG_SHORT_ADDR_1 (0x21)
290 #define SR_SHORT_ADDR_1 0x21, 0xff, 0
292 #define RG_PAN_ID_0 (0x22)
294 #define SR_PAN_ID_0 0x22, 0xff, 0
296 #define RG_PAN_ID_1 (0x23)
298 #define SR_PAN_ID_1 0x23, 0xff, 0
300 #define RG_IEEE_ADDR_0 (0x24)
302 #define SR_IEEE_ADDR_0 0x24, 0xff, 0
304 #define RG_IEEE_ADDR_1 (0x25)
306 #define SR_IEEE_ADDR_1 0x25, 0xff, 0
308 #define RG_IEEE_ADDR_2 (0x26)
310 #define SR_IEEE_ADDR_2 0x26, 0xff, 0
312 #define RG_IEEE_ADDR_3 (0x27)
314 #define SR_IEEE_ADDR_3 0x27, 0xff, 0
316 #define RG_IEEE_ADDR_4 (0x28)
318 #define SR_IEEE_ADDR_4 0x28, 0xff, 0
320 #define RG_IEEE_ADDR_5 (0x29)
322 #define SR_IEEE_ADDR_5 0x29, 0xff, 0
324 #define RG_IEEE_ADDR_6 (0x2a)
326 #define SR_IEEE_ADDR_6 0x2a, 0xff, 0
328 #define RG_IEEE_ADDR_7 (0x2b)
330 #define SR_IEEE_ADDR_7 0x2b, 0xff, 0
332 #define RG_XAH_CTRL_0 (0x2c)
334 #define SR_MAX_FRAME_RETRIES 0x2c, 0xf0, 4
336 #define SR_MAX_CSMA_RETRIES 0x2c, 0x0e, 1
337 #define SR_reserved_2c_3 0x2c, 0x01, 0
339 #define RG_CSMA_SEED_0 (0x2d)
341 #define SR_CSMA_SEED_0 0x2d, 0xff, 0
343 #define RG_CSMA_SEED_1 (0x2e)
345 #define RG_CSMA_BE 0x2f
347 #define SR_MIN_BE 0x2e, 0xc0, 6
348 #define SR_reserved_2e_2 0x2e, 0x30, 4
350 #define SR_I_AM_COORD 0x2e, 0x08, 3
352 #define SR_CSMA_SEED_1 0x2e, 0x07, 0