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