123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139 |
- /*****************************************************************************
- Copyright(c) 2012 FCI Inc. All Rights Reserved
- File name : fc8150_regs.h
- Description : Baseband register header
- *******************************************************************************/
- #ifndef __FC8150_REGS_H__
- #define __FC8150_REGS_H__
- #ifdef __cplusplus
- extern "C" {
- #endif
- /* #define FEATURE_INT_AUTO_MODE */
- /* #define BBM_XTAL_FREQ 16000 */
- /* #define BBM_XTAL_FREQ 16384 */
- /* #define BBM_XTAL_FREQ 18000 */
- /* #define BBM_XTAL_FREQ 19200 */
- /* #define BBM_XTAL_FREQ 24000 */
- #define BBM_XTAL_FREQ 26000
- /* #define BBM_XTAL_FREQ 27000 */
- /* #define BBM_XTAL_FREQ 27120 */
- /* #define BBM_XTAL_FREQ 24576 */
- /* #define BBM_XTAL_FREQ 32000 */
- /* #define BBM_XTAL_FREQ 37400 */
- /* #define BBM_XTAL_FREQ 38400 */
- #define BBM_BAND_WIDTH 6 /* BW = 6M */
- /* #define BBM_BAND_WIDTH 7 */ /* BW = 7M */
- /* #define BBM_BAND_WIDTH 8 */ /* BW = 8M */
- /* Host register */
- #define BBM_ADDRESS_REG 0x00
- #define BBM_COMMAND_REG 0x01
- #define BBM_DATA_REG 0x02
- /* Common */
- #define BBM_AP2APB_LT 0x0000
- #define BBM_SW_RESET 0x0001
- #define BBM_INT_STATUS 0x0002
- #define BBM_INT_MASK 0x0003
- #define BBM_INT_STS_EN 0x0006
- #define BBM_AC_DATA 0x0007
- #define BBM_TS_DATA 0x0008
- #define BBM_TS_CLK_DIV 0x0010
- #define BBM_TS_CTRL 0x0011
- #define BBM_MD_MISO 0x0012
- #define BBM_TS_SEL 0x0013
- #define BBM_TS_PAUSE 0x0014
- #define BBM_RF_DEVID 0x0015
- #define BBM_INT_AUTO_CLEAR 0x0017
- #define BBM_INT_PERIOD 0x0018
- #define BBM_NON_AUTO_INT_PERIOD 0x0019
- #define BBM_STATUS_AUTO_CLEAR_EN 0x001a
- #define BBM_INT_POLAR_SEL 0x0020
- #define BBM_PATTERN_MODE 0x0021
- #define BBM_CHIP_ID_L 0x0026
- #define BBM_CHIP_VERSION 0x0028
- #define BBM_TS_PAT_L 0x00a0
- #define BBM_AC_PAT_L 0x00a2
- #define BBM_VERIFY_TEST 0x00a4
- /* I2C */
- #define BBM_I2C_PR_L 0x0030
- #define BBM_I2C_PR_H 0x0031
- #define BBM_I2C_CTR 0x0032
- #define BBM_I2C_RXR 0x0033
- #define BBM_I2C_SR 0x0034
- #define BBM_I2C_TXR 0x0035
- #define BBM_I2C_CR 0x0036
- /* DM Control */
- #define BBM_DM_AUTO_ENABLE 0x0040
- #define BBM_DM_READ_SIZE 0x0041
- #define BBM_DM_START_ADDR 0x0042
- #define BBM_DM_TIMER_GAP 0x0043
- #define BBM_DM_BUSY 0x0044
- /* RSSI */
- #define BBM_RSSI 0x0100
- /* CE */
- #define BBM_WSCN_MSQ 0x4063
- /* FEC */
- #define BBM_REQ_BER 0x5000
- #define BBM_MAIN_BER_RXD_RSPS 0x5020
- #define BBM_MAIN_BER_ERR_RSPS 0x5022
- #define BBM_MAIN_BER_ERR_BITS 0x5024
- #define BBM_BER_RXD_RSPS 0x5030
- #define BBM_BER_ERR_RSPS 0x5032
- #define BBM_BER_ERR_BITS 0x5034
- #define BBM_DMP_BER_RXD_BITS 0x5040
- #define BBM_DMP_BER_ERR_BITS 0x5044
- /* Buffer */
- #define BBM_BUF_STATUS 0x8000
- #define BBM_BUF_OVERRUN 0x8001
- #define BBM_BUF_ENABLE 0x8002
- #define BBM_BUF_INT 0x8003
- #define BBM_RS_FAIL_TX 0x8004
- #define BBM_SYNC_RELATED_INT_STATUS 0x8006
- #define BBM_SYNC_RELATED_INT_ENABLE 0x8007
- #define BBM_HANGING_TS 0x800A
- #define BBM_HANGING_AC 0x800B
- #define BBM_HANGING_ENABLE 0x800C
- #define BBM_BUF_TS_START 0x8010
- #define BBM_BUF_AC_START 0x8012
- #define BBM_BUF_TS_END 0x8020
- #define BBM_BUF_AC_END 0x8022
- #define BBM_BUF_TS_THR 0x8030
- #define BBM_BUF_AC_THR 0x8032
- /* DM */
- #define BBM_DM_DATA 0xf001
- /* Buffer Configuration */
- #define TS_BUF_SIZE (188*32*2)
- #define TS_BUF_START (0)
- #define TS_BUF_END (TS_BUF_START+TS_BUF_SIZE-1)
- #define TS_BUF_THR ((TS_BUF_SIZE>>1)-1)
- #define AC_BUF_SIZE (204*2)
- #define AC_BUF_START (TS_BUF_START+TS_BUF_SIZE)
- #define AC_BUF_END (AC_BUF_START+AC_BUF_SIZE-1)
- #define AC_BUF_THR ((AC_BUF_SIZE>>1)-1)
- #ifdef __cplusplus
- }
- #endif
- #endif
|