fc8150_regs.h 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. /*****************************************************************************
  2. Copyright(c) 2012 FCI Inc. All Rights Reserved
  3. File name : fc8150_regs.h
  4. Description : Baseband register header
  5. *******************************************************************************/
  6. #ifndef __FC8150_REGS_H__
  7. #define __FC8150_REGS_H__
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. /* #define FEATURE_INT_AUTO_MODE */
  12. /* #define BBM_XTAL_FREQ 16000 */
  13. /* #define BBM_XTAL_FREQ 16384 */
  14. /* #define BBM_XTAL_FREQ 18000 */
  15. /* #define BBM_XTAL_FREQ 19200 */
  16. /* #define BBM_XTAL_FREQ 24000 */
  17. #define BBM_XTAL_FREQ 26000
  18. /* #define BBM_XTAL_FREQ 27000 */
  19. /* #define BBM_XTAL_FREQ 27120 */
  20. /* #define BBM_XTAL_FREQ 24576 */
  21. /* #define BBM_XTAL_FREQ 32000 */
  22. /* #define BBM_XTAL_FREQ 37400 */
  23. /* #define BBM_XTAL_FREQ 38400 */
  24. #define BBM_BAND_WIDTH 6 /* BW = 6M */
  25. /* #define BBM_BAND_WIDTH 7 */ /* BW = 7M */
  26. /* #define BBM_BAND_WIDTH 8 */ /* BW = 8M */
  27. /* Host register */
  28. #define BBM_ADDRESS_REG 0x00
  29. #define BBM_COMMAND_REG 0x01
  30. #define BBM_DATA_REG 0x02
  31. /* Common */
  32. #define BBM_AP2APB_LT 0x0000
  33. #define BBM_SW_RESET 0x0001
  34. #define BBM_INT_STATUS 0x0002
  35. #define BBM_INT_MASK 0x0003
  36. #define BBM_INT_STS_EN 0x0006
  37. #define BBM_AC_DATA 0x0007
  38. #define BBM_TS_DATA 0x0008
  39. #define BBM_TS_CLK_DIV 0x0010
  40. #define BBM_TS_CTRL 0x0011
  41. #define BBM_MD_MISO 0x0012
  42. #define BBM_TS_SEL 0x0013
  43. #define BBM_TS_PAUSE 0x0014
  44. #define BBM_RF_DEVID 0x0015
  45. #define BBM_INT_AUTO_CLEAR 0x0017
  46. #define BBM_INT_PERIOD 0x0018
  47. #define BBM_NON_AUTO_INT_PERIOD 0x0019
  48. #define BBM_STATUS_AUTO_CLEAR_EN 0x001a
  49. #define BBM_INT_POLAR_SEL 0x0020
  50. #define BBM_PATTERN_MODE 0x0021
  51. #define BBM_CHIP_ID_L 0x0026
  52. #define BBM_CHIP_VERSION 0x0028
  53. #define BBM_TS_PAT_L 0x00a0
  54. #define BBM_AC_PAT_L 0x00a2
  55. #define BBM_VERIFY_TEST 0x00a4
  56. /* I2C */
  57. #define BBM_I2C_PR_L 0x0030
  58. #define BBM_I2C_PR_H 0x0031
  59. #define BBM_I2C_CTR 0x0032
  60. #define BBM_I2C_RXR 0x0033
  61. #define BBM_I2C_SR 0x0034
  62. #define BBM_I2C_TXR 0x0035
  63. #define BBM_I2C_CR 0x0036
  64. /* DM Control */
  65. #define BBM_DM_AUTO_ENABLE 0x0040
  66. #define BBM_DM_READ_SIZE 0x0041
  67. #define BBM_DM_START_ADDR 0x0042
  68. #define BBM_DM_TIMER_GAP 0x0043
  69. #define BBM_DM_BUSY 0x0044
  70. /* RSSI */
  71. #define BBM_RSSI 0x0100
  72. /* CE */
  73. #define BBM_WSCN_MSQ 0x4063
  74. /* FEC */
  75. #define BBM_REQ_BER 0x5000
  76. #define BBM_MAIN_BER_RXD_RSPS 0x5020
  77. #define BBM_MAIN_BER_ERR_RSPS 0x5022
  78. #define BBM_MAIN_BER_ERR_BITS 0x5024
  79. #define BBM_BER_RXD_RSPS 0x5030
  80. #define BBM_BER_ERR_RSPS 0x5032
  81. #define BBM_BER_ERR_BITS 0x5034
  82. #define BBM_DMP_BER_RXD_BITS 0x5040
  83. #define BBM_DMP_BER_ERR_BITS 0x5044
  84. /* Buffer */
  85. #define BBM_BUF_STATUS 0x8000
  86. #define BBM_BUF_OVERRUN 0x8001
  87. #define BBM_BUF_ENABLE 0x8002
  88. #define BBM_BUF_INT 0x8003
  89. #define BBM_RS_FAIL_TX 0x8004
  90. #define BBM_SYNC_RELATED_INT_STATUS 0x8006
  91. #define BBM_SYNC_RELATED_INT_ENABLE 0x8007
  92. #define BBM_HANGING_TS 0x800A
  93. #define BBM_HANGING_AC 0x800B
  94. #define BBM_HANGING_ENABLE 0x800C
  95. #define BBM_BUF_TS_START 0x8010
  96. #define BBM_BUF_AC_START 0x8012
  97. #define BBM_BUF_TS_END 0x8020
  98. #define BBM_BUF_AC_END 0x8022
  99. #define BBM_BUF_TS_THR 0x8030
  100. #define BBM_BUF_AC_THR 0x8032
  101. /* DM */
  102. #define BBM_DM_DATA 0xf001
  103. /* Buffer Configuration */
  104. #define TS_BUF_SIZE (188*32*2)
  105. #define TS_BUF_START (0)
  106. #define TS_BUF_END (TS_BUF_START+TS_BUF_SIZE-1)
  107. #define TS_BUF_THR ((TS_BUF_SIZE>>1)-1)
  108. #define AC_BUF_SIZE (204*2)
  109. #define AC_BUF_START (TS_BUF_START+TS_BUF_SIZE)
  110. #define AC_BUF_END (AC_BUF_START+AC_BUF_SIZE-1)
  111. #define AC_BUF_THR ((AC_BUF_SIZE>>1)-1)
  112. #ifdef __cplusplus
  113. }
  114. #endif
  115. #endif