1 /*! 2 * Copyright (c) 2015, Freescale Semiconductor, Inc. 3 * All rights reserved. 4 * 5 * \file ZigbeeDefaults.h 6 * This is a header file for the default register values of the transceiver used 7 * for Zigbee mode. 8 * 9 * Redistribution and use in source and binary forms, with or without modification, 10 * are permitted provided that the following conditions are met: 11 * 12 * o Redistributions of source code must retain the above copyright notice, this list 13 * of conditions and the following disclaimer. 14 * 15 * o Redistributions in binary form must reproduce the above copyright notice, this 16 * list of conditions and the following disclaimer in the documentation and/or 17 * other materials provided with the distribution. 18 * 19 * o Neither the name of Freescale Semiconductor, Inc. nor the names of its 20 * contributors may be used to endorse or promote products derived from this 21 * software without specific prior written permission. 22 * 23 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 24 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 25 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 26 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR 27 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 28 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 29 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 30 * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 31 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 32 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 33 */ 34 35 #ifndef __ZIGBEE_DEFAULTS_H__ 36 #define __ZIGBEE_DEFAULTS_H__ 37 38 /*! ********************************************************************************* 39 ************************************************************************************* 40 * Constants 41 ************************************************************************************* 42 ********************************************************************************** */ 43 /* XCVR_CTRL Defaults */ 44 45 /* XCVR_CTRL */ 46 #define Zigbee_TGT_PWR_SRC_def_c 0x02 47 #define Zigbee_PROTOCOL_def_c 0x04 48 49 /* TSM Defaults (no PA ramp)*/ 50 51 /*Analog: BBW Filter */ 52 53 /* XCVR_TZA_CTRL */ 54 #define ZGBE_TZA_CAP_TUNE_def_c 0 55 56 /* XCVR_BBF_CTRL */ 57 #define ZGBE_BBF_CAP_TUNE_def_c 0 58 #define ZGBE_BBF_RES_TUNE2_def_c 0 59 60 /*RX DIG: AGC DCOC and filtering */ 61 62 /*RX_DIG_CTRL*/ 63 #define RX_DEC_FILT_OSR_Zigbee_def_c 0x02 64 #define RX_NORM_EN_Zigbee_def_c 0x01 65 #define RX_CH_FILT_BYPASS_Zigbee_def_c 0x00 66 67 /* AGC_CTRL_0 */ 68 #define FREEZE_AGC_SRC_Zigbee_def_c 0x02 69 70 /* RSSI_CTRL 0*/ 71 #define RSSI_HOLD_SRC_Zigbee_def_c 0x03 72 73 /* DCOC_CTRL_0 */ 74 #define DCOC_CAL_DURATION_Zigbee_def_c 0x15 /* Max: 1F */ 75 #define DCOC_CORR_HOLD_TIME_Zigbee_def_c 0x58 /* 0x7F makes corrections continuous. */ 76 #define DCOC_CORR_DLY_Zigbee_def_c 0x15 77 #define ALPHA_RADIUS_IDX_Zigbee_def_c 0x02 /* 1/4 */ 78 #define ALPHAC_SCALE_IDX_Zigbee_def_c 0x01 /* 1/4 */ 79 #define SIGN_SCALE_IDX_Zigbee_def_c 0x03 /* 1/32 */ 80 #define DCOC_CORRECT_EN_Zigbee_def_c 0x01 81 #define DCOC_TRACK_EN_Zigbee_def_c 0x01 82 #define DCOC_MAN_Zigbee_def_c 0x00 83 84 /*RX_CHF_COEFn*/ 85 /*Dig Channel Setting 2015/05/28 - 860kHz Rx BW: Kaiser 3.0: */ 86 #define RX_CHF_COEF0_Zigbee_def_c 0xFE 87 #define RX_CHF_COEF1_Zigbee_def_c 0xFD 88 #define RX_CHF_COEF2_Zigbee_def_c 0x05 89 #define RX_CHF_COEF3_Zigbee_def_c 0x08 90 #define RX_CHF_COEF4_Zigbee_def_c 0xF5 91 #define RX_CHF_COEF5_Zigbee_def_c 0xEA 92 #define RX_CHF_COEF6_Zigbee_def_c 0x10 93 #define RX_CHF_COEF7_Zigbee_def_c 0x49 94 95 /* DCOC_CAL_IIR */ 96 #define IIR3A_IDX_Zigbee_def_c 0x001 97 #define IIR2A_IDX_Zigbee_def_c 0x002 98 #define IIR1A_IDX_Zigbee_def_c 0x002 99 100 /* CORR_CTRL */ 101 #define CORR_VT_Zigbee_def_c 0x6B 102 #define CORR_NVAL_Zigbee_def_c 3 103 104 105 #endif /* __ZIGBEE_DEFAULTS_H__*/