61 #define MKW2XDRF_REG_READ (uint8_t)(1 << 7)
64 #define MKW2XDRF_REG_WRITE (uint8_t)(0)
67 #define MKW2XDRF_BUF_READ (uint8_t)(1 << 7 | 1 << 6)
70 #define MKW2XDRF_BUF_WRITE (uint8_t)(1 << 6)
73 #define MKW2XDRF_BUF_BYTE_READ (uint8_t)(1 << 7 | 1 << 6 | 1 << 5)
76 #define MKW2XDRF_BUF_BYTE_WRITE (uint8_t)(1 << 6 | 1 << 5)
85 XCVSEQ_CONTINUOUS_CCA,
129 MKW2XDM_ASM_CTRL1 = 0x28,
130 MKW2XDM_ASM_CTRL2 = 0x29,
131 MKW2XDM_ASM_DATA_0 = 0x2A,
132 MKW2XDM_ASM_DATA_1 = 0x2B,
133 MKW2XDM_ASM_DATA_2 = 0x2C,
134 MKW2XDM_ASM_DATA_3 = 0x2D,
135 MKW2XDM_ASM_DATA_4 = 0x2E,
136 MKW2XDM_ASM_DATA_5 = 0x2F,
137 MKW2XDM_ASM_DATA_6 = 0x30,
138 MKW2XDM_ASM_DATA_7 = 0x31,
139 MKW2XDM_ASM_DATA_8 = 0x32,
140 MKW2XDM_ASM_DATA_9 = 0x33,
141 MKW2XDM_ASM_DATA_A = 0x34,
142 MKW2XDM_ASM_DATA_B = 0x35,
143 MKW2XDM_ASM_DATA_C = 0x36,
144 MKW2XDM_ASM_DATA_D = 0x37,
145 MKW2XDM_ASM_DATA_E = 0x38,
146 MKW2XDM_ASM_DATA_F = 0x39,
154 #define MKW2XDM_IRQSTS1_RX_FRM_PEND (1 << 7)
155 #define MKW2XDM_IRQSTS1_PLL_UNLOCK_IRQ (1 << 6)
156 #define MKW2XDM_IRQSTS1_FILTERFAIL_IRQ (1 << 5)
157 #define MKW2XDM_IRQSTS1_RXWTRMRKIRQ (1 << 4)
158 #define MKW2XDM_IRQSTS1_CCAIRQ (1 << 3)
159 #define MKW2XDM_IRQSTS1_RXIRQ (1 << 2)
160 #define MKW2XDM_IRQSTS1_TXIRQ (1 << 1)
161 #define MKW2XDM_IRQSTS1_SEQIRQ (1 << 0)
163 #define MKW2XDM_IRQSTS2_CRCVALID (1 << 7)
164 #define MKW2XDM_IRQSTS2_CCA (1 << 6)
165 #define MKW2XDM_IRQSTS2_SRCADDR (1 << 5)
166 #define MKW2XDM_IRQSTS2_PI (1 << 4)
167 #define MKW2XDM_IRQSTS2_TMRSTATUS (1 << 3)
168 #define MKW2XDM_IRQSTS2_PB_ERR_IRQ (1 << 1)
169 #define MKW2XDM_IRQSTS2_WAKE_IRQ (1 << 0)
171 #define MKW2XDM_IRQSTS3_TMR4MSK (1 << 7)
172 #define MKW2XDM_IRQSTS3_TMR3MSK (1 << 6)
173 #define MKW2XDM_IRQSTS3_TMR2MSK (1 << 5)
174 #define MKW2XDM_IRQSTS3_TMR1MSK (1 << 4)
175 #define MKW2XDM_IRQSTS3_TMR4IRQ (1 << 3)
176 #define MKW2XDM_IRQSTS3_TMR3IRQ (1 << 2)
177 #define MKW2XDM_IRQSTS3_TMR2IRQ (1 << 1)
178 #define MKW2XDM_IRQSTS3_TMR1IRQ (1 << 0)
179 #define MKW2XDM_IRQSTS3_TMR_IRQ_MASK 0xfu
180 #define MKW2XDM_IRQSTS3_TMR_IRQ_SHIFT 0x0u
181 #define MKW2XDM_IRQSTS3_TMR_IRQ(x) (((uint8_t)(((uint8_t)(x))<<MKW2XDM_IRQSTS3_TMR_IRQ_SHIFT))&MKW2XDM_IRQSTS3_TMR_IRQ_MASK)
183 #define MKW2XDM_PHY_CTRL1_TMRTRIGEN (1 << 7)
184 #define MKW2XDM_PHY_CTRL1_SLOTTED (1 << 6)
185 #define MKW2XDM_PHY_CTRL1_CCABFRTX (1 << 5)
186 #define MKW2XDM_PHY_CTRL1_RXACKRQD (1 << 4)
187 #define MKW2XDM_PHY_CTRL1_AUTOACK (1 << 3)
188 #define MKW2XDM_PHY_CTRL1_XCVSEQ_MASK 0x07u
189 #define MKW2XDM_PHY_CTRL1_XCVSEQ(x) (((uint8_t)(((uint8_t)(x))<<0))&MKW2XDM_PHY_CTRL1_XCVSEQ_MASK)
191 #define MKW2XDM_PHY_CTRL2_CRC_MSK (1 << 7)
192 #define MKW2XDM_PHY_CTRL2_PLL_UNLOCK_MSK (1 << 6)
193 #define MKW2XDM_PHY_CTRL2_FILTERFAIL_MSK (1 << 5)
194 #define MKW2XDM_PHY_CTRL2_RX_WMRK_MSK (1 << 4)
195 #define MKW2XDM_PHY_CTRL2_CCAMSK (1 << 3)
196 #define MKW2XDM_PHY_CTRL2_RXMSK (1 << 2)
197 #define MKW2XDM_PHY_CTRL2_TXMSK (1 << 1)
198 #define MKW2XDM_PHY_CTRL2_SEQMSK (1 << 0)
200 #define MKW2XDM_PHY_CTRL3_TMR4CMP_EN (1 << 7)
201 #define MKW2XDM_PHY_CTRL3_TMR3CMP_EN (1 << 6)
202 #define MKW2XDM_PHY_CTRL3_TMR2CMP_EN (1 << 5)
203 #define MKW2XDM_PHY_CTRL3_TMR1CMP_EN (1 << 4)
204 #define MKW2XDM_PHY_CTRL3_PB_ERR_MSK (1 << 1)
205 #define MKW2XDM_PHY_CTRL3_WAKE_MSK (1 << 0)
207 #define MKW2XDM_RX_FRM_LENGTH_MASK 0x7Fu
209 #define MKW2XDM_PHY_CTRL4_TRCV_MSK (1 << 7)
210 #define MKW2XDM_PHY_CTRL4_TC3TMOUT (1 << 6)
211 #define MKW2XDM_PHY_CTRL4_PANCORDNTR0 (1 << 5)
212 #define MKW2XDM_PHY_CTRL4_CCATYPE_MASK 0x18u
213 #define MKW2XDM_PHY_CTRL4_CCATYPE_SHIFT 3
214 #define MKW2XDM_PHY_CTRL4_CCATYPE(x) (((uint8_t)(((uint8_t)(x))<<MKW2XDM_PHY_CTRL4_CCATYPE_SHIFT))&MKW2XDM_PHY_CTRL4_CCATYPE_MASK)
215 #define MKW2XDM_PHY_CTRL4_TMRLOAD (1 << 2)
216 #define MKW2XDM_PHY_CTRL4_PROMISCUOUS (1 << 1)
217 #define MKW2XDM_PHY_CTRL4_TC2PRIME_EN (1 << 0)
219 #define MKW2XDM_SRC_CTRL_INDEX_MASK 0xF0u
220 #define MKW2XDM_SRC_CTRL_INDEX_SHIFT 4
221 #define MKW2XDM_SRC_CTRL_ACK_FRM_PND (1 << 3)
222 #define MKW2XDM_SRC_CTRL_SRCADDR_EN (1 << 2)
223 #define MKW2XDM_SRC_CTRL_INDEX_EN (1 << 1)
224 #define MKW2XDM_SRC_CTRL_INDEX_DISABLE (1 << 0)
226 #define MKW2XDM_PLL_INT0_MASK 0x1Fu
227 #define MKW2XDM_PLL_INT0_VAL(x) (((uint8_t)(((uint8_t)(x))<<0))&MKW2XDM_PLL_INT0_MASK)
229 #define MKW2XDM_PA_PWR_MASK 0x1Fu
230 #define MKW2XDM_PA_PWR(x) (((uint8_t)(((uint8_t)(x))<<0))&MKW2XDM_PA_PWR_MASK)
232 #define MKW2XDM_CLK_OUT_EXTEND (1 << 7)
233 #define MKW2XDM_CLK_OUT_HIZ (1 << 6)
234 #define MKW2XDM_CLK_OUT_SR (1 << 5)
235 #define MKW2XDM_CLK_OUT_DS (1 << 4)
236 #define MKW2XDM_CLK_OUT_EN (1 << 3)
237 #define MKW2XDM_CLK_OUT_DIV_MASK 0x03u
238 #define MKW2XDM_CLK_OUT_DIV(x) (((uint8_t)(((uint8_t)(x))<<0))&MKW2XDM_CLK_OUT_DIV_MASK)
240 #define MKW2XDM_PWR_MODES_XTAL_READY (1 << 5)
241 #define MKW2XDM_PWR_MODES_XTALEN (1 << 4)
242 #define MKW2XDM_PWR_MODES_AUTODOZE (1 << 1)
243 #define MKW2XDM_PWR_MODES_PMC_MODE (1 << 0)
293 MKW2XDMI_BSM_CTRL = 0x32,
294 MKW2XDMI__RNG = 0x34,
295 MKW2XDMI_RX_BYTE_COUNT = 0x35,
296 MKW2XDMI_RX_WTR_MARK = 0x36,
297 MKW2XDMI_SOFT_RESET = 0x37,
298 MKW2XDMI_TXDELAY = 0x38,
299 MKW2XDMI_ACKDELAY = 0x39,
300 MKW2XDMI_SEQ_MGR_CTRL = 0x3A,
301 MKW2XDMI_SEQ_MGR_STS = 0x3B,
302 MKW2XDMI_SEQ_T_STS = 0x3C,
303 MKW2XDMI_ABORT_STS = 0x3D,
304 MKW2XDMI_CCCA_BUSY_CNT = 0x3E,
305 MKW2XDMI_SRC_ADDR_CHECKSUM1 = 0x3F,
306 MKW2XDMI_SRC_ADDR_CHECKSUM2 = 0x40,
307 MKW2XDMI_SRC_TBL_VALID1 = 0x41,
308 MKW2XDMI_SRC_TBL_VALID2 = 0x42,
309 MKW2XDMI_FILTERFAIL_CODE1 = 0x43,
310 MKW2XDMI_FILTERFAIL_CODE2 = 0x44,
311 MKW2XDMI_SLOT_PRELOAD = 0x45,
312 MKW2XDMI_CORR_VT = 0x47,
313 MKW2XDMI_SYNC_CTRL = 0x48,
314 MKW2XDMI_PN_LSB_0 = 0x49,
315 MKW2XDMI_PN_LSB_1 = 0x4A,
316 MKW2XDMI_PN_MSB_0 = 0x4B,
317 MKW2XDMI_PN_MSB_1 = 0x4C,
318 MKW2XDMI_CORR_NVAL = 0x4D,
319 MKW2XDMI_TX_MODE_CTRL = 0x4E,
320 MKW2XDMI_SNF_THR = 0x4F,
321 MKW2XDMI_FAD_THR = 0x50,
323 MKW2XDMI_AGC_THR1 = 0x52,
324 MKW2XDMI_AGC_THR2 = 0x53,
325 MKW2XDMI_AGC_HYS = 0x54,
328 MKW2XDMI_PHY_STS = 0x58,
329 MKW2XDMI_RX_MAX_CORR = 0x59,
330 MKW2XDMI_RX_MAX_PREAMBLE = 0x5A,
331 MKW2XDMI_RSSI = 0x5B,
332 MKW2XDMI_PLL_DIG_CTRL = 0x5E,
333 MKW2XDMI_VCO_CAL = 0x5F,
334 MKW2XDMI_VCO_BEST_DIFF = 0x60,
335 MKW2XDMI_VCO_BIAS = 0x61,
336 MKW2XDMI_KMOD_CTRL = 0x62,
337 MKW2XDMI_KMOD_CAL = 0x63,
338 MKW2XDMI_PA_CAL = 0x64,
339 MKW2XDMI_PA_PWRCAL = 0x65,
340 MKW2XDMI_ATT_RSSI1 = 0x66,
341 MKW2XDMI_ATT_RSSI2 = 0x67,
342 MKW2XDMI_RSSI_OFFSET = 0x68,
343 MKW2XDMI_RSSI_SLOPE = 0x69,
344 MKW2XDMI_RSSI_CAL1 = 0x6A,
345 MKW2XDMI_RSSI_CAL2 = 0x6B,
346 MKW2XDMI_XTAL_CTRL = 0x6E,
347 MKW2XDMI_XTAL_COMP_MIN = 0x6F,
348 MKW2XDMI_XTAL_COMP_MAX = 0x70,
349 MKW2XDMI_XTAL_GM = 0x71,
350 MKW2XDMI_LNA_TUNE = 0x74,
351 MKW2XDMI_LNA_AGCGAIN = 0x75,
352 MKW2XDMI_CHF_PMA_GAIN = 0x78,
353 MKW2XDMI_CHF_IBUF = 0x79,
354 MKW2XDMI_CHF_QBUF = 0x7A,
355 MKW2XDMI_CHF_IRIN = 0x7B,
356 MKW2XDMI_CHF_QRIN = 0x7C,
357 MKW2XDMI_CHF_IL = 0x7D,
358 MKW2XDMI_CHF_QL = 0x7E,
359 MKW2XDMI_CHF_CC1 = 0x7F,
360 MKW2XDMI_CHF_CCL = 0x80,
361 MKW2XDMI_CHF_CC2 = 0x81,
362 MKW2XDMI_CHF_IROUT = 0x82,
363 MKW2XDMI_CHF_QROUT = 0x83,
364 MKW2XDMI_RSSI_CTRL = 0x86,
365 MKW2XDMI_PA_BIAS = 0x89,
366 MKW2XDMI_PA_TUNING = 0x8A,
367 MKW2XDMI_PMC_HP_TRIM = 0x8D,
368 MKW2XDMI_VREGA_TRIM = 0x8E,
369 MKW2XDMI_VCO_CTRL1 = 0x91,
370 MKW2XDMI_VCO_CTRL2 = 0x92,
371 MKW2XDMI_ANA_SPARE_OUT1 = 0x95,
372 MKW2XDMI_ANA_SPARE_OUT2 = 0x96,
373 MKW2XDMI_ANA_SPARE_IN = 0x97,
374 MKW2XDMI_MISCELLANEOUS = 0x98,
375 MKW2XDMI_SEQ_MGR_OVRD0 = 0x9A,
376 MKW2XDMI_SEQ_MGR_OVRD1 = 0x9B,
377 MKW2XDMI_SEQ_MGR_OVRD2 = 0x9C,
378 MKW2XDMI_SEQ_MGR_OVRD3 = 0x9D,
379 MKW2XDMI_SEQ_MGR_OVRD4 = 0x9E,
380 MKW2XDMI_SEQ_MGR_OVRD5 = 0x9F,
381 MKW2XDMI_SEQ_MGR_OVRD6 = 0xA0,
382 MKW2XDMI_SEQ_MGR_OVRD7 = 0xA1,
383 MKW2XDMI_TESTMODE_CTRL = 0xA3,
384 MKW2XDMI_DTM_CTRL1= 0xA4,
385 MKW2XDMI_DTM_CTRL2= 0xA5,
386 MKW2XDMI_ATM_CTRL1= 0xA6,
387 MKW2XDMI_ATM_CTRL2= 0xA7,
388 MKW2XDMI_ATM_CTRL3= 0xA8,
389 MKW2XDMI_LIM_FE_TEST_CTRL = 0xAA,
390 MKW2XDMI_CHF_TEST_CTRL = 0xAB,
391 MKW2XDMI_VCO_TEST_CTRL = 0xAC,
392 MKW2XDMI_PLL_TEST_CTRL = 0xAD,
393 MKW2XDMI_PA_TEST_CTRL = 0xAE,
394 MKW2XDMI_PMC_TEST_CTRL = 0xAF,
395 MKW2XDMI_SCAN_DTM_PROTECT_1 = 0xFE,
396 MKW2XDMI_SCAN_DTM_PROTECT_0 = 0xFF,
399 #define MKW2XDMI_PART_ID_MANUF_ID_MASK 0x60u
400 #define MKW2XDMI_PART_ID_VERSION_MASK 0x1Cu
401 #define MKW2XDMI_PART_ID_MASK_SET_MASK 0x07u
403 #define MKW2XDMI_RX_FRAME_FILTER_FRM_VER_MASK 0xC0u
404 #define MKW2XDMI_RX_FRAME_FILTER_FRM_VER_SHIFT 6
405 #define MKW2XDMI_RX_FRAME_FILTER_FRM_VER(x) (((uint8_t)(((uint8_t)(x))<<MKW2XDMI_RX_FRAME_FILTER_FRM_VER_SHIFT))&MKW2XDMI_RX_FRAME_FILTER_FRM_VER_MASK)
406 #define MKW2XDMI_RX_FRAME_FILTER_ACTIVE_PROMISCUOUS (1 << 5)
407 #define MKW2XDMI_RX_FRAME_FILTER_NS_FT (1 << 4)
408 #define MKW2XDMI_RX_FRAME_FILTER_CMD_FT (1 << 3)
409 #define MKW2XDMI_RX_FRAME_FILTER_ACK_FT (1 << 2)
410 #define MKW2XDMI_RX_FRAME_FILTER_DATA_FT (1 << 1)
411 #define MKW2XDMI_RX_FRAME_FILTER_BEACON_FT (1 << 0)
413 #define MKW2XDMI_PLL_INT1_MASK 0x1Fu
415 #define MKW2XDMI_DUAL_PAN_CTRL_DUAL_PAN_SAM_LVL_MASK 0xF0
416 #define MKW2XDMI_DUAL_PAN_CTRL_DUAL_PAN_SAM_LVL_SHIFT 4
417 #define MKW2XDMI_DUAL_PAN_CTRL_DUAL_PAN_SAM_LVL(x) (((uint8_t)(((uint8_t)(x))<<MKW2XDMI_DUAL_PAN_CTRL_DUAL_PAN_SAM_LVL_SHIFT))&MKW2XDMI_DUAL_PAN_CTRL_DUAL_PAN_SAM_LVL_MASK)
418 #define MKW2XDMI_DUAL_PAN_CTRL_CURRENT_NETWORK (1 << 3)
419 #define MKW2XDMI_DUAL_PAN_CTRL_PANCORDNTR1 (1 << 2)
420 #define MKW2XDMI_DUAL_PAN_CTRL_DUAL_PAN_AUTO (1 << 1)
421 #define MKW2XDMI_DUAL_PAN_CTRL_ACTIVE_NETWORK (1 << 0)
423 #define MKW2XDMI_DUAL_PAN_STS_RECD_ON_PAN1 (1 << 7)
424 #define MKW2XDMI_DUAL_PAN_STS_RECD_ON_PAN0 (1 << 6)
425 #define MKW2XDMI_DUAL_PAN_STS_DUAL_PAN_REMAIN_MASK 0x3Fu
427 #define MKW2XDMI_CCA_CTRL_AGC_FRZ_EN (1 << 6)
428 #define MKW2XDMI_CCA_CTRL_CONT_RSSI_EN (1 << 5)
429 #define MKW2XDMI_CCA_CTRL_QI_RSSI_NOT_CORR (1 << 4)
430 #define MKW2XDMI_CCA_CTRL_CCA3_AND_NOT_OR (1 << 3)
431 #define MKW2XDMI_CCA_CTRL_OWER_COMP_EN_LQI (1 << 2)
432 #define MKW2XDMI_CCA_CTRL_OWER_COMP_EN_ED (1 << 1)
433 #define MKW2XDMI_CCA_CTRL_OWER_COMP_EN_CCA1 (1 << 0)
435 #define MKW2XDMI_CCA2_CORR_PEAKS_CCA2_MIN_NUM_CORR_TH_MASK 0x70u
436 #define MKW2XDMI_CCA2_CORR_PEAKS_CCA2_MIN_NUM_CORR_TH_SHIFT 4
437 #define MKW2XDMI_CCA2_CORR_PEAKS_CCA2_MIN_NUM_CORR_TH(x) (((uint8_t)(((uint8_t)(x))<<MKW2XDMI_CCA2_CORR_PEAKS_CCA2_MIN_NUM_CORR_TH_SHIFT))&MKW2XDMI_CCA2_CORR_PEAKS_CCA2_MIN_NUM_CORR_TH_MASK)
438 #define MKW2XDMI_CCA2_CORR_PEAKS_CCA2_NUM_CORR_PEAKS_MASK 0x0Fu
440 #define MKW2XDMI_TMR_PRESCALE_MASK 0x7u
441 #define MKW2XDMI_TMR_PRESCALE_SHIFT 0x0u
442 #define MKW2XDMI_TMR_PRESCALE_SET(x) (((uint8_t)(((uint8_t)(x))<<MKW2XDMI_TMR_PRESCALE_SHIFT))&MKW2XDMI_TMR_PRESCALE_MASK)
444 #define MKW2XDMI_GPIO_DATA8 (1 << 7)
445 #define MKW2XDMI_GPIO_DATA7 (1 << 6)
446 #define MKW2XDMI_GPIO_DATA6 (1 << 5)
447 #define MKW2XDMI_GPIO_DATA5 (1 << 4)
448 #define MKW2XDMI_GPIO_DATA4 (1 << 3)
449 #define MKW2XDMI_GPIO_DATA3 (1 << 2)
450 #define MKW2XDMI_GPIO_DATA2 (1 << 1)
451 #define MKW2XDMI_GPIO_DATA1 (1 << 0)
453 #define MKW2XDMI_GPIO_DIR8 (1 << 7)
454 #define MKW2XDMI_GPIO_DIR7 (1 << 6)
455 #define MKW2XDMI_GPIO_DIR6 (1 << 5)
456 #define MKW2XDMI_GPIO_DIR5 (1 << 4)
457 #define MKW2XDMI_GPIO_DIR4 (1 << 3)
458 #define MKW2XDMI_GPIO_DIR3 (1 << 2)
459 #define MKW2XDMI_GPIO_DIR2 (1 << 1)
460 #define MKW2XDMI_GPIO_DIR1 (1 << 0)
462 #define MKW2XDMI_GPIO_PUL_EN8 (1 << 7)
463 #define MKW2XDMI_GPIO_PUL_EN7 (1 << 6)
464 #define MKW2XDMI_GPIO_PUL_EN6 (1 << 5)
465 #define MKW2XDMI_GPIO_PUL_EN5 (1 << 4)
466 #define MKW2XDMI_GPIO_PUL_EN4 (1 << 3)
467 #define MKW2XDMI_GPIO_PUL_EN3 (1 << 2)
468 #define MKW2XDMI_GPIO_PUL_EN2 (1 << 1)
469 #define MKW2XDMI_GPIO_PUL_EN1 (1 << 0)
471 #define MKW2XDMI_GPIO_PUL_SEL8 (1 << 7)
472 #define MKW2XDMI_GPIO_PUL_SEL7 (1 << 6)
473 #define MKW2XDMI_GPIO_PUL_SEL6 (1 << 5)
474 #define MKW2XDMI_GPIO_PUL_SEL5 (1 << 4)
475 #define MKW2XDMI_GPIO_PUL_SEL4 (1 << 3)
476 #define MKW2XDMI_GPIO_PUL_SEL3 (1 << 2)
477 #define MKW2XDMI_GPIO_PUL_SEL2 (1 << 1)
478 #define MKW2XDMI_GPIO_PUL_SEL1 (1 << 0)
480 #define MKW2XDMI_GPIO_DS8 (1 << 7)
481 #define MKW2XDMI_GPIO_DS7 (1 << 6)
482 #define MKW2XDMI_GPIO_DS6 (1 << 5)
483 #define MKW2XDMI_GPIO_DS5 (1 << 4)
484 #define MKW2XDMI_GPIO_DS4 (1 << 3)
485 #define MKW2XDMI_GPIO_DS3 (1 << 2)
486 #define MKW2XDMI_GPIO_DS2 (1 << 1)
487 #define MKW2XDMI_GPIO_DS1 (1 << 0)
489 #define MKW2XDMI_ANT_PAD_CTRL_ANTX_POL3 (1 << 7)
490 #define MKW2XDMI_ANT_PAD_CTRL_ANTX_POL2 (1 << 6)
491 #define MKW2XDMI_ANT_PAD_CTRL_ANTX_POL1 (1 << 5)
492 #define MKW2XDMI_ANT_PAD_CTRL_ANTX_POL0 (1 << 4)
493 #define MKW2XDMI_ANT_PAD_CTRL_ANTX_CTRLMODE (1 << 3)
494 #define MKW2XDMI_ANT_PAD_CTRL_ANTX_HZ (1 << 2)
495 #define MKW2XDMI_ANT_PAD_CTRL_ANTX_EN_MASK 0x03u
496 #define MKW2XDMI_ANT_PAD_CTRL_ANTX_EN(x) (((uint8_t)(((uint8_t)(x))<<0))&MKW2XDMI_ANT_PAD_CTRL_ANTX_EN_MASK)
498 #define MKW2XDMI_MISC_PAD_CTRL_MISO_HIZ_EN (1 << 3)
499 #define MKW2XDMI_MISC_PAD_CTRL_IRQ_B_OD (1 << 2)
500 #define MKW2XDMI_MISC_PAD_CTRL_NON_GPIO_DS (1 << 1)
501 #define MKW2XDMI_MISC_PAD_CTRL_ANTX_CURR (1 << 0)
503 #define MKW2XDMI_ANT_AGC_CTRL_SNF_EN (1 << 7)
504 #define MKW2XDMI_ANT_AGC_CTRL_AGC_EN (1 << 6)
505 #define MKW2XDMI_ANT_AGC_CTRL_AGC_LEVEL_MASK 0x30u
506 #define MKW2XDMI_ANT_AGC_CTRL_AGC_LEVEL_SHIFT 4
507 #define MKW2XDMI_ANT_AGC_CTRL_AGC_LEVEL(x) (((uint8_t)(((uint8_t)(x))<<MKW2XDMI_ANT_AGC_CTRL_AGC_LEVEL_SHIFT))&MKW2XDMI_ANT_AGC_CTRL_AGC_LEVEL_MASK)
508 #define MKW2XDMI_ANT_AGC_CTRL_ANTX (1 << 1)
509 #define MKW2XDMI_ANT_AGC_CTRL_AD_EN (1 << 0)
511 #define MKW2XDMI_LPPS_CTRL_LPPS_EN (1 << 0)
513 #define MKW2XDMI_SOFT_RESET_SOG_RST (1 << 7)
514 #define MKW2XDMI_SOFT_RESET_REGS_RST (1 << 4)
515 #define MKW2XDMI_SOFT_RESET_PLL_RST (1 << 3)
516 #define MKW2XDMI_SOFT_RESET_TX_RST (1 << 2)
517 #define MKW2XDMI_SOFT_RESET_RX_RST (1 << 1)
518 #define MKW2XDMI_SOFT_RESET_SEQ_MGR_RST (1 << 0)
520 #define MKW2XDMI_SEQ_MGR_CTRL_SEQ_STATE_CTRL_MASK 0x3
521 #define MKW2XDMI_SEQ_MGR_CTRL_SEQ_STATE_CTRL_SHIFT 6
522 #define MKW2XDMI_SEQ_MGR_CTRL_NO_RX_RECYCLE (1 << 5)
523 #define MKW2XDMI_SEQ_MGR_CTRL_LATCH_PREAMBLE (1 << 4)
524 #define MKW2XDMI_SEQ_MGR_CTRL_EVENT_TMR_DO_NOT_LATCH (1 << 3)
525 #define MKW2XDMI_SEQ_MGR_CTRL_CLR_NEW_SEQ_INHIBIT (1 << 2)
526 #define MKW2XDMI_SEQ_MGR_CTRL_PSM_LOCK_DIS (1 << 1)
527 #define MKW2XDMI_SEQ_MGR_CTRL_PLL_ABORT_OVRD (1 << 0)
529 #define MKW2XDMI_SEQ_MGR_STS_TMR2_SEQ_TRIG_ARMED (1 << 7)
530 #define MKW2XDMI_SEQ_MGR_STS_RX_MODE (1 << 6)
531 #define MKW2XDMI_SEQ_MGR_STS_RX_TIMEOUT_PENDING (1 << 5)
532 #define MKW2XDMI_SEQ_MGR_STS_NEW_SEQ_INHIBIT (1 << 4)
533 #define MKW2XDMI_SEQ_MGR_STS_SEQ_IDLE (1 << 3)
534 #define MKW2XDMI_SEQ_MGR_STS_XCVSEQ_ACTUAL_MASK 7
536 #define MKW2XDMI_ABORT_STS_PLL_ABORTED (1 << 2)
537 #define MKW2XDMI_ABORT_STS_TC3_ABORTED (1 << 1)
538 #define MKW2XDMI_ABORT_STS_SW_ABORTED (1 << 0)
540 #define MKW2XDMI_TESTMODE_CTRL_HOT_ANT (1 << 4)
541 #define MKW2XDMI_TESTMODE_CTRL_IDEAL_RSSI_EN (1 << 3)
542 #define MKW2XDMI_TESTMODE_CTRL_IDEAL_PFC_EN (1 << 2)
543 #define MKW2XDMI_TESTMODE_CTRL_CONTINUOUS_EN (1 << 1)
544 #define MKW2XDMI_TESTMODE_CTRL_FPGA_EN (1 << 0)
546 #define MKW2XDMI_DTM_CTRL1_ATM_LOCKED (1 << 7)
547 #define MKW2XDMI_DTM_CTRL1_DTM_EN (1 << 6)
548 #define MKW2XDMI_DTM_CTRL1_PAGE5 (1 << 5)
549 #define MKW2XDMI_DTM_CTRL1_PAGE4 (1 << 4)
550 #define MKW2XDMI_DTM_CTRL1_PAGE3 (1 << 3)
551 #define MKW2XDMI_DTM_CTRL1_PAGE2 (1 << 2)
552 #define MKW2XDMI_DTM_CTRL1_PAGE1 (1 << 1)
553 #define MKW2XDMI_DTM_CTRL1_PAGE0 (1 << 0)
555 #define MKW2XDMI_TX_MODE_CTRL_TX_INV (1 << 4)
556 #define MKW2XDMI_TX_MODE_CTRL_BT_EN (1 << 3)
557 #define MKW2XDMI_TX_MODE_CTRL_DTS2 (1 << 2)
558 #define MKW2XDMI_TX_MODE_CTRL_DTS1 (1 << 1)
559 #define MKW2XDMI_TX_MODE_CTRL_DTS0 (1 << 0)
560 #define MKW2XDMI_TX_MODE_CTRL_DTS_MASK 7