my customized lib

Committer:
DuyLionTran
Date:
Sun Nov 26 15:08:14 2017 +0000
Revision:
0:8094b249013c
Initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
DuyLionTran 0:8094b249013c 1 /*!
DuyLionTran 0:8094b249013c 2 * Copyright (c) 2015, Freescale Semiconductor, Inc.
DuyLionTran 0:8094b249013c 3 * All rights reserved.
DuyLionTran 0:8094b249013c 4 *
DuyLionTran 0:8094b249013c 5 * \file MCR20Overwrites.h
DuyLionTran 0:8094b249013c 6 * Description: Overwrites header file for MCR20 Register values
DuyLionTran 0:8094b249013c 7 *
DuyLionTran 0:8094b249013c 8 * Redistribution and use in source and binary forms, with or without modification,
DuyLionTran 0:8094b249013c 9 * are permitted provided that the following conditions are met:
DuyLionTran 0:8094b249013c 10 *
DuyLionTran 0:8094b249013c 11 * o Redistributions of source code must retain the above copyright notice, this list
DuyLionTran 0:8094b249013c 12 * of conditions and the following disclaimer.
DuyLionTran 0:8094b249013c 13 *
DuyLionTran 0:8094b249013c 14 * o Redistributions in binary form must reproduce the above copyright notice, this
DuyLionTran 0:8094b249013c 15 * list of conditions and the following disclaimer in the documentation and/or
DuyLionTran 0:8094b249013c 16 * other materials provided with the distribution.
DuyLionTran 0:8094b249013c 17 *
DuyLionTran 0:8094b249013c 18 * o Neither the name of Freescale Semiconductor, Inc. nor the names of its
DuyLionTran 0:8094b249013c 19 * contributors may be used to endorse or promote products derived from this
DuyLionTran 0:8094b249013c 20 * software without specific prior written permission.
DuyLionTran 0:8094b249013c 21 *
DuyLionTran 0:8094b249013c 22 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
DuyLionTran 0:8094b249013c 23 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
DuyLionTran 0:8094b249013c 24 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DuyLionTran 0:8094b249013c 25 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
DuyLionTran 0:8094b249013c 26 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
DuyLionTran 0:8094b249013c 27 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
DuyLionTran 0:8094b249013c 28 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
DuyLionTran 0:8094b249013c 29 * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
DuyLionTran 0:8094b249013c 30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
DuyLionTran 0:8094b249013c 31 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
DuyLionTran 0:8094b249013c 32 */
DuyLionTran 0:8094b249013c 33
DuyLionTran 0:8094b249013c 34 #ifndef OVERWRITES_H_
DuyLionTran 0:8094b249013c 35 #define OVERWRITES_H_
DuyLionTran 0:8094b249013c 36
DuyLionTran 0:8094b249013c 37 typedef struct overwrites_tag {
DuyLionTran 0:8094b249013c 38 char address;
DuyLionTran 0:8094b249013c 39 char data;
DuyLionTran 0:8094b249013c 40 }overwrites_t;
DuyLionTran 0:8094b249013c 41
DuyLionTran 0:8094b249013c 42
DuyLionTran 0:8094b249013c 43 /*****************************************************************************************************************/
DuyLionTran 0:8094b249013c 44 // This file is created exclusively for use with the transceiver 2.0 silicon
DuyLionTran 0:8094b249013c 45 // and is provided for the world to use. It contains a list of all
DuyLionTran 0:8094b249013c 46 // known overwrite values. Overwrite values are non-default register
DuyLionTran 0:8094b249013c 47 // values that configure the transceiver device to a more optimally performing
DuyLionTran 0:8094b249013c 48 // posture. It is expected that low level software (i.e. PHY) will
DuyLionTran 0:8094b249013c 49 // consume this file as a #include, and transfer the contents to the
DuyLionTran 0:8094b249013c 50 // the indicated addresses in the transceiver's memory space. This file has
DuyLionTran 0:8094b249013c 51 // at least one required entry, that being its own version current version
DuyLionTran 0:8094b249013c 52 // number, to be stored at transceiver's location 0x3B the
DuyLionTran 0:8094b249013c 53 // OVERWRITES_VERSION_NUMBER register. The RAM register is provided in
DuyLionTran 0:8094b249013c 54 // the transceiver address space to assist in future debug efforts. The
DuyLionTran 0:8094b249013c 55 // analyst may read this location (once device has been booted with
DuyLionTran 0:8094b249013c 56 // mysterious software) and have a good indication of what register
DuyLionTran 0:8094b249013c 57 // overwrites were performed (with all versions of the overwrites.h file
DuyLionTran 0:8094b249013c 58 // being archived forever at the Compass location shown above.
DuyLionTran 0:8094b249013c 59 //
DuyLionTran 0:8094b249013c 60 // The transceiver has an indirect register (IAR) space. Write access to this space
DuyLionTran 0:8094b249013c 61 // requires 3 or more writes:
DuyLionTran 0:8094b249013c 62 // 1st) the first write is an index value to the indirect (write Bit7=0, register access Bit 6=0) + 0x3E
DuyLionTran 0:8094b249013c 63 // 2nd) IAR Register #0x00 - 0xFF.
DuyLionTran 0:8094b249013c 64 // 3rd) The data to write
DuyLionTran 0:8094b249013c 65 // nth) Burst mode additional data if required.
DuyLionTran 0:8094b249013c 66 //
DuyLionTran 0:8094b249013c 67 // Write access to direct space requires only a single address, data pair.
DuyLionTran 0:8094b249013c 68
DuyLionTran 0:8094b249013c 69 overwrites_t const overwrites_direct[] ={
DuyLionTran 0:8094b249013c 70 {0x3B, 0x0C}, //version 0C: new value for ACKDELAY targeting 198us (23 May, 2013, Larry Roshak)
DuyLionTran 0:8094b249013c 71 {0x23, 0x17} //PA_PWR new default Power Step is "23"
DuyLionTran 0:8094b249013c 72 };
DuyLionTran 0:8094b249013c 73
DuyLionTran 0:8094b249013c 74 overwrites_t const overwrites_indirect[] ={
DuyLionTran 0:8094b249013c 75 {0x31, 0x02}, //clear MISO_HIZ_EN (for single SPI master/slave pair) and SPI_PUL_EN (minimize HIB currents)
DuyLionTran 0:8094b249013c 76 {0x91, 0xB3}, //VCO_CTRL1 override VCOALC_REF_TX to 3
DuyLionTran 0:8094b249013c 77 {0x92, 0x07}, //VCO_CTRL2 override VCOALC_REF_RX to 3, keep VCO_BUF_BOOST = 1
DuyLionTran 0:8094b249013c 78 {0x8A, 0x71}, //PA_TUNING override PA_COILTUNING to 001 (27 Nov 2012, D. Brown, on behalf of S. Eid)
DuyLionTran 0:8094b249013c 79 {0x79, 0x2F}, //CHF_IBUF Adjust the gm-C filter gain (+/- 6dB) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 80 {0x7A, 0x2F}, //CHF_QBUF Adjust the gm-C filter gain (+/- 6dB) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 81 {0x7B, 0x24}, //CHF_IRIN Adjust the filter bandwidth (+/- 0.5MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 82 {0x7C, 0x24}, //CHF_QRIN Adjust the filter bandwidth (+/- 0.5MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 83 {0x7D, 0x24}, //CHF_IL Adjust the filter bandwidth (+/- 0.5MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 84 {0x7E, 0x24}, //CHF_QL Adjust the filter bandwidth (+/- 0.5MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 85 {0x7F, 0x32}, //CHF_CC1 Adjust the filter center frequency (+/- 1MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 86 {0x80, 0x1D}, //CHF_CCL Adjust the filter center frequency (+/- 1MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 87 {0x81, 0x2D}, //CHF_CC2 Adjust the filter center frequency (+/- 1MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 88 {0x82, 0x24}, //CHF_IROUT Adjust the filter bandwidth (+/- 0.5MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 89 {0x83, 0x24}, //CHF_QROUT Adjust the filter bandwidth (+/- 0.5MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 90 {0x64, 0x28}, //PA_CAL_DIS=1 Disabled PA calibration
DuyLionTran 0:8094b249013c 91 {0x52, 0x55}, //AGC_THR1 RSSI tune up
DuyLionTran 0:8094b249013c 92 {0x53, 0x2D}, //AGC_THR2 RSSI tune up
DuyLionTran 0:8094b249013c 93 {0x66, 0x5F}, //ATT_RSSI1 tune up
DuyLionTran 0:8094b249013c 94 {0x67, 0x8F}, //ATT_RSSI2 tune up
DuyLionTran 0:8094b249013c 95 {0x68, 0x61}, //RSSI_OFFSET
DuyLionTran 0:8094b249013c 96 {0x78, 0x03}, //CHF_PMAGAIN
DuyLionTran 0:8094b249013c 97 {0x22, 0x50}, //CCA1_THRESH
DuyLionTran 0:8094b249013c 98 {0x4D, 0x13}, //CORR_NVAL moved from 0x14 to 0x13 for 0.5 dB improved Rx Sensitivity
DuyLionTran 0:8094b249013c 99 {0x39, 0x3D} //ACKDELAY new value targeting a delay of 198us (23 May, 2013, Larry Roshak)
DuyLionTran 0:8094b249013c 100 };
DuyLionTran 0:8094b249013c 101
DuyLionTran 0:8094b249013c 102
DuyLionTran 0:8094b249013c 103 /* begin of deprecated versions
DuyLionTran 0:8094b249013c 104
DuyLionTran 0:8094b249013c 105 ==VERSION 1==
DuyLionTran 0:8094b249013c 106 (version 1 is empty)
DuyLionTran 0:8094b249013c 107
DuyLionTran 0:8094b249013c 108 ==VERSION 2==
DuyLionTran 0:8094b249013c 109 overwrites_t const overwrites_indirect[] ={
DuyLionTran 0:8094b249013c 110 {0x31, 0x02} //clear MISO_HIZ_EN (for single SPI master/slave pair) and SPI_PUL_EN (minimize HIB currents)
DuyLionTran 0:8094b249013c 111 };
DuyLionTran 0:8094b249013c 112
DuyLionTran 0:8094b249013c 113 ==VERSION 3==
DuyLionTran 0:8094b249013c 114 overwrites_t const overwrites_indirect[] ={
DuyLionTran 0:8094b249013c 115 {0x31, 0x02}, //clear MISO_HIZ_EN (for single SPI master/slave pair) and SPI_PUL_EN (minimize HIB currents)
DuyLionTran 0:8094b249013c 116 {0x91, 0xB3}, //VCO_CTRL1: override VCOALC_REF_TX to 3
DuyLionTran 0:8094b249013c 117 {0x92, 0x07} //VCO_CTRL2: override VCOALC_REF_RX to 3, keep VCO_BUF_BOOST = 1
DuyLionTran 0:8094b249013c 118 };
DuyLionTran 0:8094b249013c 119
DuyLionTran 0:8094b249013c 120 ==VERSION 4==
DuyLionTran 0:8094b249013c 121 overwrites_t const overwrites_direct[] ={
DuyLionTran 0:8094b249013c 122 {0x3B, 0x04} //version 04 is the current version: update PA_COILTUNING default
DuyLionTran 0:8094b249013c 123 };
DuyLionTran 0:8094b249013c 124
DuyLionTran 0:8094b249013c 125 overwrites_t const overwrites_indirect[] ={
DuyLionTran 0:8094b249013c 126 {0x31, 0x02}, //clear MISO_HIZ_EN (for single SPI master/slave pair) and SPI_PUL_EN (minimize HIB currents)
DuyLionTran 0:8094b249013c 127 {0x91, 0xB3}, //VCO_CTRL1: override VCOALC_REF_TX to 3
DuyLionTran 0:8094b249013c 128 {0x92, 0x07} //VCO_CTRL2: override VCOALC_REF_RX to 3, keep VCO_BUF_BOOST = 1
DuyLionTran 0:8094b249013c 129 {0x8A, 0x71} //PA_TUNING: override PA_COILTUNING to 001 (27 Nov 2012, D. Brown, on behalf of S. Eid)
DuyLionTran 0:8094b249013c 130 };
DuyLionTran 0:8094b249013c 131
DuyLionTran 0:8094b249013c 132 ==VERSION 5==
DuyLionTran 0:8094b249013c 133 overwrites_t const overwrites_direct[] ={
DuyLionTran 0:8094b249013c 134 {0x3B, 0x05} //version 05: updates Channel Filter Register set (21 Dec 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 135 };
DuyLionTran 0:8094b249013c 136
DuyLionTran 0:8094b249013c 137 overwrites_t const overwrites_indirect[] ={
DuyLionTran 0:8094b249013c 138 {0x31, 0x02}, //clear MISO_HIZ_EN (for single SPI master/slave pair) and SPI_PUL_EN (minimize HIB currents)
DuyLionTran 0:8094b249013c 139 {0x91, 0xB3}, //VCO_CTRL1 override VCOALC_REF_TX to 3
DuyLionTran 0:8094b249013c 140 {0x92, 0x07} //VCO_CTRL2 override VCOALC_REF_RX to 3, keep VCO_BUF_BOOST = 1
DuyLionTran 0:8094b249013c 141 {0x8A, 0x71} //PA_TUNING override PA_COILTUNING to 001 (27 Nov 2012, D. Brown, on behalf of S. Eid)
DuyLionTran 0:8094b249013c 142 {0x79, 0x2F} //CHF_IBUF Adjust the gm-C filter gain (+/- 6dB) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 143 {0x7A, 0x2F} //CHF_QBUF Adjust the gm-C filter gain (+/- 6dB) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 144 {0x7B, 0x24} //CHF_IRIN Adjust the filter bandwidth (+/- 0.5MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 145 {0x7C, 0x24} //CHF_QRIN Adjust the filter bandwidth (+/- 0.5MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 146 {0x7D, 0x24} //CHF_IL Adjust the filter bandwidth (+/- 0.5MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 147 {0x7E, 0x24} //CHF_QL Adjust the filter bandwidth (+/- 0.5MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 148 {0x82, 0x24} //CHF_IROUT Adjust the filter bandwidth (+/- 0.5MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 149 {0x83, 0x24} //CHF_QROUT Adjust the filter bandwidth (+/- 0.5MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 150 {0x7F, 0x32} //CHF_CC1 Adjust the filter center frequency (+/- 1MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 151 {0x80, 0x1D} //CHF_CCL Adjust the filter center frequency (+/- 1MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 152 {0x81, 0x2D} //CHF_CC2 Adjust the filter center frequency (+/- 1MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 153 };
DuyLionTran 0:8094b249013c 154
DuyLionTran 0:8094b249013c 155 ==VERSION 6==
DuyLionTran 0:8094b249013c 156 overwrites_t const overwrites_direct[] ={
DuyLionTran 0:8094b249013c 157 {0x3B, 0x06} //version 06: disable PA calibration
DuyLionTran 0:8094b249013c 158 };
DuyLionTran 0:8094b249013c 159
DuyLionTran 0:8094b249013c 160 overwrites_t const overwrites_indirect[] ={
DuyLionTran 0:8094b249013c 161 {0x31, 0x02}, //clear MISO_HIZ_EN (for single SPI master/slave pair) and SPI_PUL_EN (minimize HIB currents)
DuyLionTran 0:8094b249013c 162 {0x91, 0xB3}, //VCO_CTRL1 override VCOALC_REF_TX to 3
DuyLionTran 0:8094b249013c 163 {0x92, 0x07} //VCO_CTRL2 override VCOALC_REF_RX to 3, keep VCO_BUF_BOOST = 1
DuyLionTran 0:8094b249013c 164 {0x8A, 0x71} //PA_TUNING override PA_COILTUNING to 001 (27 Nov 2012, D. Brown, on behalf of S. Eid)
DuyLionTran 0:8094b249013c 165 {0x79, 0x2F} //CHF_IBUF Adjust the gm-C filter gain (+/- 6dB) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 166 {0x7A, 0x2F} //CHF_QBUF Adjust the gm-C filter gain (+/- 6dB) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 167 {0x7B, 0x24} //CHF_IRIN Adjust the filter bandwidth (+/- 0.5MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 168 {0x7C, 0x24} //CHF_QRIN Adjust the filter bandwidth (+/- 0.5MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 169 {0x7D, 0x24} //CHF_IL Adjust the filter bandwidth (+/- 0.5MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 170 {0x7E, 0x24} //CHF_QL Adjust the filter bandwidth (+/- 0.5MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 171 {0x82, 0x24} //CHF_IROUT Adjust the filter bandwidth (+/- 0.5MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 172 {0x83, 0x24} //CHF_QROUT Adjust the filter bandwidth (+/- 0.5MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 173 {0x7F, 0x32} //CHF_CC1 Adjust the filter center frequency (+/- 1MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 174 {0x80, 0x1D} //CHF_CCL Adjust the filter center frequency (+/- 1MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 175 {0x81, 0x2D} //CHF_CC2 Adjust the filter center frequency (+/- 1MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 176 {0x64, 0x28} //PA_CAL_DIS=1 Disabled PA calibration
DuyLionTran 0:8094b249013c 177 };
DuyLionTran 0:8094b249013c 178
DuyLionTran 0:8094b249013c 179 ==VERSION 7==
DuyLionTran 0:8094b249013c 180 overwrites_t const overwrites_direct[] ={
DuyLionTran 0:8094b249013c 181 {0x3B, 0x07} //version 07: updated registers for ED/RSSI
DuyLionTran 0:8094b249013c 182 };
DuyLionTran 0:8094b249013c 183
DuyLionTran 0:8094b249013c 184 overwrites_t const overwrites_indirect[] ={
DuyLionTran 0:8094b249013c 185 {0x31, 0x02}, //clear MISO_HIZ_EN (for single SPI master/slave pair) and SPI_PUL_EN (minimize HIB currents)
DuyLionTran 0:8094b249013c 186 {0x91, 0xB3}, //VCO_CTRL1 override VCOALC_REF_TX to 3
DuyLionTran 0:8094b249013c 187 {0x92, 0x07}, //VCO_CTRL2 override VCOALC_REF_RX to 3, keep VCO_BUF_BOOST = 1
DuyLionTran 0:8094b249013c 188 {0x8A, 0x71}, //PA_TUNING override PA_COILTUNING to 001 (27 Nov 2012, D. Brown, on behalf of S. Eid)
DuyLionTran 0:8094b249013c 189 {0x79, 0x2F}, //CHF_IBUF Adjust the gm-C filter gain (+/- 6dB) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 190 {0x7A, 0x2F}, //CHF_QBUF Adjust the gm-C filter gain (+/- 6dB) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 191 {0x7B, 0x24}, //CHF_IRIN Adjust the filter bandwidth (+/- 0.5MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 192 {0x7C, 0x24}, //CHF_QRIN Adjust the filter bandwidth (+/- 0.5MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 193 {0x7D, 0x24}, //CHF_IL Adjust the filter bandwidth (+/- 0.5MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 194 {0x7E, 0x24}, //CHF_QL Adjust the filter bandwidth (+/- 0.5MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 195 {0x82, 0x24}, //CHF_IROUT Adjust the filter bandwidth (+/- 0.5MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 196 {0x83, 0x24}, //CHF_QROUT Adjust the filter bandwidth (+/- 0.5MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 197 {0x7F, 0x32}, //CHF_CC1 Adjust the filter center frequency (+/- 1MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 198 {0x80, 0x1D}, //CHF_CCL Adjust the filter center frequency (+/- 1MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 199 {0x81, 0x2D}, //CHF_CC2 Adjust the filter center frequency (+/- 1MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 200 {0x64, 0x28}, //PA_CAL_DIS=1 Disabled PA calibration
DuyLionTran 0:8094b249013c 201 {0x52, 0x73}, //AGC_THR1 RSSI tune up
DuyLionTran 0:8094b249013c 202 {0x53, 0x2D}, //AGC_THR2 RSSI tune up
DuyLionTran 0:8094b249013c 203 {0x66, 0x5F}, //ATT_RSSI1 tune up
DuyLionTran 0:8094b249013c 204 {0x67, 0x8F}, //ATT_RSSI2 tune up
DuyLionTran 0:8094b249013c 205 {0x68, 0x60}, //RSSI_OFFSET
DuyLionTran 0:8094b249013c 206 {0x69, 0x65} //RSSI_SLOPE
DuyLionTran 0:8094b249013c 207 };
DuyLionTran 0:8094b249013c 208
DuyLionTran 0:8094b249013c 209
DuyLionTran 0:8094b249013c 210 ==VERSION 8==
DuyLionTran 0:8094b249013c 211 overwrites_t const overwrites_direct[] ={
DuyLionTran 0:8094b249013c 212 {0x3B, 0x08} //version 08: updated registers for ED/RSSI
DuyLionTran 0:8094b249013c 213 };
DuyLionTran 0:8094b249013c 214
DuyLionTran 0:8094b249013c 215 overwrites_t const overwrites_indirect[] ={
DuyLionTran 0:8094b249013c 216 {0x31, 0x02}, //clear MISO_HIZ_EN (for single SPI master/slave pair) and SPI_PUL_EN (minimize HIB currents)
DuyLionTran 0:8094b249013c 217 {0x91, 0xB3}, //VCO_CTRL1 override VCOALC_REF_TX to 3
DuyLionTran 0:8094b249013c 218 {0x92, 0x07}, //VCO_CTRL2 override VCOALC_REF_RX to 3, keep VCO_BUF_BOOST = 1
DuyLionTran 0:8094b249013c 219 {0x8A, 0x71}, //PA_TUNING override PA_COILTUNING to 001 (27 Nov 2012, D. Brown, on behalf of S. Eid)
DuyLionTran 0:8094b249013c 220 {0x79, 0x2F}, //CHF_IBUF Adjust the gm-C filter gain (+/- 6dB) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 221 {0x7A, 0x2F}, //CHF_QBUF Adjust the gm-C filter gain (+/- 6dB) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 222 {0x7B, 0x24}, //CHF_IRIN Adjust the filter bandwidth (+/- 0.5MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 223 {0x7C, 0x24}, //CHF_QRIN Adjust the filter bandwidth (+/- 0.5MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 224 {0x7D, 0x24}, //CHF_IL Adjust the filter bandwidth (+/- 0.5MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 225 {0x7E, 0x24}, //CHF_QL Adjust the filter bandwidth (+/- 0.5MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 226 {0x82, 0x24}, //CHF_IROUT Adjust the filter bandwidth (+/- 0.5MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 227 {0x83, 0x24}, //CHF_QROUT Adjust the filter bandwidth (+/- 0.5MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 228 {0x7F, 0x32}, //CHF_CC1 Adjust the filter center frequency (+/- 1MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 229 {0x80, 0x1D}, //CHF_CCL Adjust the filter center frequency (+/- 1MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 230 {0x81, 0x2D}, //CHF_CC2 Adjust the filter center frequency (+/- 1MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 231 {0x64, 0x28}, //PA_CAL_DIS=1 Disabled PA calibration
DuyLionTran 0:8094b249013c 232 {0x52, 0x73}, //AGC_THR1 RSSI tune up
DuyLionTran 0:8094b249013c 233 {0x53, 0x2D}, //AGC_THR2 RSSI tune up
DuyLionTran 0:8094b249013c 234 {0x66, 0x5F}, //ATT_RSSI1 tune up
DuyLionTran 0:8094b249013c 235 {0x67, 0x8F}, //ATT_RSSI2 tune up
DuyLionTran 0:8094b249013c 236 {0x69, 0x65} //RSSI_SLOPE
DuyLionTran 0:8094b249013c 237 {0x68, 0x61}, //RSSI_OFFSET
DuyLionTran 0:8094b249013c 238 {0x78, 0x03} //CHF_PMAGAIN
DuyLionTran 0:8094b249013c 239 };
DuyLionTran 0:8094b249013c 240
DuyLionTran 0:8094b249013c 241
DuyLionTran 0:8094b249013c 242 ==VERSION 9==
DuyLionTran 0:8094b249013c 243 overwrites_t const overwrites_direct[] ={
DuyLionTran 0:8094b249013c 244 {0x3B, 0x09} //version 09: updated registers for ED/RSSI and PowerStep
DuyLionTran 0:8094b249013c 245 {0x23, 0x17} //PA_PWR new default value
DuyLionTran 0:8094b249013c 246 };
DuyLionTran 0:8094b249013c 247
DuyLionTran 0:8094b249013c 248 overwrites_t const overwrites_indirect[] ={
DuyLionTran 0:8094b249013c 249 {0x31, 0x02}, //clear MISO_HIZ_EN (for single SPI master/slave pair) and SPI_PUL_EN (minimize HIB currents)
DuyLionTran 0:8094b249013c 250 {0x91, 0xB3}, //VCO_CTRL1 override VCOALC_REF_TX to 3
DuyLionTran 0:8094b249013c 251 {0x92, 0x07}, //VCO_CTRL2 override VCOALC_REF_RX to 3, keep VCO_BUF_BOOST = 1
DuyLionTran 0:8094b249013c 252 {0x8A, 0x71}, //PA_TUNING override PA_COILTUNING to 001 (27 Nov 2012, D. Brown, on behalf of S. Eid)
DuyLionTran 0:8094b249013c 253 {0x79, 0x2F}, //CHF_IBUF Adjust the gm-C filter gain (+/- 6dB) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 254 {0x7A, 0x2F}, //CHF_QBUF Adjust the gm-C filter gain (+/- 6dB) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 255 {0x7B, 0x24}, //CHF_IRIN Adjust the filter bandwidth (+/- 0.5MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 256 {0x7C, 0x24}, //CHF_QRIN Adjust the filter bandwidth (+/- 0.5MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 257 {0x7D, 0x24}, //CHF_IL Adjust the filter bandwidth (+/- 0.5MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 258 {0x7E, 0x24}, //CHF_QL Adjust the filter bandwidth (+/- 0.5MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 259 {0x7F, 0x32}, //CHF_CC1 Adjust the filter center frequency (+/- 1MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 260 {0x80, 0x1D}, //CHF_CCL Adjust the filter center frequency (+/- 1MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 261 {0x81, 0x2D}, //CHF_CC2 Adjust the filter center frequency (+/- 1MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 262 {0x82, 0x24}, //CHF_IROUT Adjust the filter bandwidth (+/- 0.5MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 263 {0x83, 0x24}, //CHF_QROUT Adjust the filter bandwidth (+/- 0.5MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 264 {0x64, 0x28}, //PA_CAL_DIS=1 Disabled PA calibration
DuyLionTran 0:8094b249013c 265 {0x52, 0x55}, //AGC_THR1 RSSI tune up
DuyLionTran 0:8094b249013c 266 {0x53, 0x2D}, //AGC_THR2 RSSI tune up
DuyLionTran 0:8094b249013c 267 {0x66, 0x5F}, //ATT_RSSI1 tune up
DuyLionTran 0:8094b249013c 268 {0x67, 0x8F}, //ATT_RSSI2 tune up
DuyLionTran 0:8094b249013c 269 {0x68, 0x61}, //RSSI_OFFSET
DuyLionTran 0:8094b249013c 270 {0x78, 0x03} //CHF_PMAGAIN
DuyLionTran 0:8094b249013c 271 };
DuyLionTran 0:8094b249013c 272
DuyLionTran 0:8094b249013c 273 ==VERSION A==
DuyLionTran 0:8094b249013c 274 overwrites_t const overwrites_direct[] ={
DuyLionTran 0:8094b249013c 275 {0x3B, 0x0A} //version 0A: updated registers for CCA
DuyLionTran 0:8094b249013c 276 {0x23, 0x17} //PA_PWR new default Power Step is "23"
DuyLionTran 0:8094b249013c 277 };
DuyLionTran 0:8094b249013c 278
DuyLionTran 0:8094b249013c 279 overwrites_t const overwrites_indirect[] ={
DuyLionTran 0:8094b249013c 280 {0x31, 0x02}, //clear MISO_HIZ_EN (for single SPI master/slave pair) and SPI_PUL_EN (minimize HIB currents)
DuyLionTran 0:8094b249013c 281 {0x91, 0xB3}, //VCO_CTRL1 override VCOALC_REF_TX to 3
DuyLionTran 0:8094b249013c 282 {0x92, 0x07}, //VCO_CTRL2 override VCOALC_REF_RX to 3, keep VCO_BUF_BOOST = 1
DuyLionTran 0:8094b249013c 283 {0x8A, 0x71}, //PA_TUNING override PA_COILTUNING to 001 (27 Nov 2012, D. Brown, on behalf of S. Eid)
DuyLionTran 0:8094b249013c 284 {0x79, 0x2F}, //CHF_IBUF Adjust the gm-C filter gain (+/- 6dB) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 285 {0x7A, 0x2F}, //CHF_QBUF Adjust the gm-C filter gain (+/- 6dB) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 286 {0x7B, 0x24}, //CHF_IRIN Adjust the filter bandwidth (+/- 0.5MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 287 {0x7C, 0x24}, //CHF_QRIN Adjust the filter bandwidth (+/- 0.5MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 288 {0x7D, 0x24}, //CHF_IL Adjust the filter bandwidth (+/- 0.5MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 289 {0x7E, 0x24}, //CHF_QL Adjust the filter bandwidth (+/- 0.5MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 290 {0x7F, 0x32}, //CHF_CC1 Adjust the filter center frequency (+/- 1MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 291 {0x80, 0x1D}, //CHF_CCL Adjust the filter center frequency (+/- 1MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 292 {0x81, 0x2D}, //CHF_CC2 Adjust the filter center frequency (+/- 1MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 293 {0x82, 0x24}, //CHF_IROUT Adjust the filter bandwidth (+/- 0.5MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 294 {0x83, 0x24}, //CHF_QROUT Adjust the filter bandwidth (+/- 0.5MHz) (21 Dec, 2012, on behalf of S. Soca)
DuyLionTran 0:8094b249013c 295 {0x64, 0x28}, //PA_CAL_DIS=1 Disabled PA calibration
DuyLionTran 0:8094b249013c 296 {0x52, 0x55}, //AGC_THR1 RSSI tune up
DuyLionTran 0:8094b249013c 297 {0x53, 0x2D}, //AGC_THR2 RSSI tune up
DuyLionTran 0:8094b249013c 298 {0x66, 0x5F}, //ATT_RSSI1 tune up
DuyLionTran 0:8094b249013c 299 {0x67, 0x8F}, //ATT_RSSI2 tune up
DuyLionTran 0:8094b249013c 300 {0x68, 0x61}, //RSSI_OFFSET
DuyLionTran 0:8094b249013c 301 {0x78, 0x03} //CHF_PMAGAIN
DuyLionTran 0:8094b249013c 302 {0x22, 0x50} //CCA1_THRESH
DuyLionTran 0:8094b249013c 303 };
DuyLionTran 0:8094b249013c 304
DuyLionTran 0:8094b249013c 305 end of deprecated versions */
DuyLionTran 0:8094b249013c 306
DuyLionTran 0:8094b249013c 307
DuyLionTran 0:8094b249013c 308 #endif //OVERWRITES_H_
DuyLionTran 0:8094b249013c 309