| 1 | /***************************************************************************//** |
| 2 | * @file ADF7023_Config.h |
| 3 | * @brief Configuration file of ADF7023 Driver. |
| 4 | * @author DBogdan ([email protected]) |
| 5 | ******************************************************************************** |
| 6 | * Copyright 2013(c) Analog Devices, Inc. |
| 7 | * |
| 8 | * All rights reserved. |
| 9 | * |
| 10 | * Redistribution and use in source and binary forms, with or without |
| 11 | * modification, are permitted provided that the following conditions are met: |
| 12 | * - Redistributions of source code must retain the above copyright |
| 13 | * notice, this list of conditions and the following disclaimer. |
| 14 | * - Redistributions in binary form must reproduce the above copyright |
| 15 | * notice, this list of conditions and the following disclaimer in |
| 16 | * the documentation and/or other materials provided with the |
| 17 | * distribution. |
| 18 | * - Neither the name of Analog Devices, Inc. nor the names of its |
| 19 | * contributors may be used to endorse or promote products derived |
| 20 | * from this software without specific prior written permission. |
| 21 | * - The use of this software may or may not infringe the patent rights |
| 22 | * of one or more patent holders. This license does not release you |
| 23 | * from the requirement that you obtain separate licenses from these |
| 24 | * patent holders to use this software. |
| 25 | * - Use of the software either in source or binary form, must be run |
| 26 | * on or directly connected to an Analog Devices Inc. component. |
| 27 | * |
| 28 | * THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR |
| 29 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, |
| 30 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
| 31 | * IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, |
| 32 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 33 | * LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR |
| 34 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
| 35 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
| 36 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 37 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 38 | * |
| 39 | ******************************************************************************** |
| 40 | * SVN Revision: $WCREV$ |
| 41 | *******************************************************************************/ |
| 42 | #ifndef __ADF7023_CONFIG_H__ |
| 43 | #define __ADF7023_CONFIG_H__ |
| 44 | |
| 45 | /******************************************************************************/ |
| 46 | /***************************** Include Files **********************************/ |
| 47 | /******************************************************************************/ |
| 48 | #include "ADF7023.h" |
| 49 | |
| 50 | /******************************************************************************/ |
| 51 | /************************* Variables Declarations *****************************/ |
| 52 | /******************************************************************************/ |
| 53 | struct ADF7023_BBRAM ADF7023_BBRAMDefault = |
| 54 | { |
| 55 | /* interruptMask0 - 0x100 */ |
| 56 | BBRAM_INTERRUPT_MASK_0_INTERRUPT_TX_EOF | |
| 57 | BBRAM_INTERRUPT_MASK_0_INTERRUPT_CRC_CORRECT, |
| 58 | /* interruptMask1 - 0x101 */ |
| 59 | 0x00, |
| 60 | /* numberOfWakeups0 - 0x102 */ |
| 61 | 0x00, |
| 62 | /* numberOfWakeups1 - 0x103 */ |
| 63 | 0x00, |
| 64 | /* numberOfWakeupsIrqThreshold0 - 0x104 */ |
| 65 | 0xFF, |
| 66 | /* numberOfWakeupsIrqThreshold1 - 0x105 */ |
| 67 | 0xFF, |
| 68 | /* rxDwellTime - 0x106 */ |
| 69 | 0x00, |
| 70 | /* parmtimeDivider - 0x107 */ |
| 71 | 0x33, |
| 72 | /* swmRssiThresh - 0x108 */ |
| 73 | 0x31, |
| 74 | /* channelFreq0 - 0x109 */ |
| 75 | 0x51, // Channel Frequency: 433 MHz |
| 76 | /* channelFreq1 - 0x10A */ |
| 77 | 0xA7, // Channel Frequency: 433 MHz |
| 78 | /* channelFreq2 - 0x10B */ |
| 79 | 0x10, // Channel Frequency: 433 MHz |
| 80 | /* radioCfg0 - 0x10C */ |
| 81 | BBRAM_RADIO_CFG_0_DATA_RATE_7_0(0xE8), // Data rate: 100 kbps |
| 82 | /* radioCfg1 - 0x10D */ |
| 83 | BBRAM_RADIO_CFG_1_FREQ_DEVIATION_11_8(0x00) | // Frequency deviation: 25 Hz |
| 84 | BBRAM_RADIO_CFG_1_DATA_RATE_11_8(0x03), // Data rate: 100 kbps |
| 85 | /* radioCfg2 - 0x10E */ |
| 86 | BBRAM_RADIO_CFG_2_FREQ_DEVIATION_7_0(0xFA), // Frequency deviation: 25 Hz |
| 87 | /* radioCfg3 - 0x10F */ |
| 88 | 0x31, |
| 89 | /* radioCfg4 - 0x110 */ |
| 90 | 0x16, |
| 91 | /* radioCfg5 - 0x111 */ |
| 92 | 0x00, |
| 93 | /* radioCfg6 - 0x112 */ |
| 94 | BBRAM_RADIO_CFG_6_DISCRIM_PHASE(0x2), |
| 95 | /* radioCfg7 - 0x113 */ |
| 96 | BBRAM_RADIO_CFG_7_AGC_LOCK_MODE(3), |
| 97 | /* radioCfg8 - 0x114 */ |
| 98 | BBRAM_RADIO_CFG_8_PA_SINGLE_DIFF_SEL | |
| 99 | BBRAM_RADIO_CFG_8_PA_LEVEL(0xF) | |
| 100 | BBRAM_RADIO_CFG_8_PA_RAMP(1), |
| 101 | /* radioCfg9 - 0x115 */ |
| 102 | BBRAM_RADIO_CFG_9_IFBW(2), |
| 103 | /* radioCfg10 - 0x116 */ |
| 104 | BBRAM_RADIO_CFG_10_AFC_SCHEME(2) | |
| 105 | BBRAM_RADIO_CFG_10_AFC_LOCK_MODE(3), |
| 106 | /* radioCfg11 - 0x117 */ |
| 107 | BBRAM_RADIO_CFG_11_AFC_KP(3) | |
| 108 | BBRAM_RADIO_CFG_11_AFC_KI(7), |
| 109 | /* imageRejectCalPhase - 0x118 */ |
| 110 | 0x00, |
| 111 | /* imageRejectCalAmplitude - 0x119 */ |
| 112 | 0x00, |
| 113 | /* modeControl - 0x11A */ |
| 114 | BBRAM_MODE_CONTROL_BB_CAL, |
| 115 | /* preambleMatch - 0x11B */ |
| 116 | 0x0C, |
| 117 | /* symbolMode - 0x11C */ |
| 118 | BBRAM_SYMBOL_MODE_MANCHESTER_ENC, |
| 119 | /* preambleLen - 0x11D */ |
| 120 | 0x20, |
| 121 | /* crcPoly0 - 0x11E */ |
| 122 | 0x00, |
| 123 | /* crcPoly1 - 0x11F */ |
| 124 | 0x00, |
| 125 | /* syncControl - 0x120 */ |
| 126 | BBRAM_SYNC_CONTROL_SYNC_WORD_LENGTH(8), |
| 127 | /* syncByte0 - 0x121 */ |
| 128 | 0x00, |
| 129 | /* syncByte1 - 0x122 */ |
| 130 | 0x00, |
| 131 | /* syncByte2 - 0x123 */ |
| 132 | 0x12, |
| 133 | /* txBaseAdr - 0x124 */ |
| 134 | ADF7023_TX_BASE_ADR, |
| 135 | /* rxBaseAdr - 0x125 */ |
| 136 | ADF7023_RX_BASE_ADR, |
| 137 | /* packetLengthControl - 0x126 */ |
| 138 | 0x24, |
| 139 | /* packetLengthMax - 0x127 */ |
| 140 | 0xF0, |
| 141 | /* staticRegFix - 0x128 */ |
| 142 | 0x00, |
| 143 | /* addressMatchOffset - 0x129 */ |
| 144 | 0x01, |
| 145 | /* addressLength - 0x12A */ |
| 146 | 0x02, |
| 147 | /* addressFiltering0 - 0x12B */ |
| 148 | 0x01, |
| 149 | /* addressFiltering1 - 0x12C */ |
| 150 | 0xFF, |
| 151 | /* addressFiltering2 - 0x12D */ |
| 152 | 0xFF, |
| 153 | /* addressFiltering3 - 0x12E */ |
| 154 | 0xFF, |
| 155 | /* addressFiltering4 - 0x12F */ |
| 156 | 0x02, |
| 157 | /* addressFiltering5 - 0x130 */ |
| 158 | 0x0F, |
| 159 | /* addressFiltering6 - 0x131 */ |
| 160 | 0xFF, |
| 161 | /* addressFiltering7 - 0x132 */ |
| 162 | 0x0F, |
| 163 | /* addressFiltering8 - 0x133 */ |
| 164 | 0xFF, |
| 165 | /* addressFiltering9 - 0x134 */ |
| 166 | 0x00, |
| 167 | /* addressFiltering10 - 0x135 */ |
| 168 | 0x00, |
| 169 | /* addressFiltering11 - 0x136 */ |
| 170 | 0x00, |
| 171 | /* addressFiltering12 - 0x137 */ |
| 172 | 0x00, |
| 173 | /* rssiWaitTime - 0x138 */ |
| 174 | 0x00, |
| 175 | /* testmodes - 0x139 */ |
| 176 | 0x00, |
| 177 | /* transitionClockDiv - 0x13A */ |
| 178 | 0x00, |
| 179 | /* reserved0 - 0x13B */ |
| 180 | 0x00, |
| 181 | /* reserved1 - 0x13C */ |
| 182 | 0x00, |
| 183 | /* reserved2 - 0x13D */ |
| 184 | 0x00, |
| 185 | /* rxSynthLockTime - 0x13E */ |
| 186 | 0x00, |
| 187 | /* txSynthLockTime - 0x13F */ |
| 188 | 0x00, |
| 189 | }; |
| 190 | |
| 191 | #endif // __ADF7023_CONFIG_H__ |