Debian Codegraph @

thirdparty/analogdevicesinc/no-OS/fmcomms1/AD9548/AD9548.h

raw symbols SCIP
1 /***************************************************************************//**
2 * @file AD9548.h
3 * @brief Header file of AD9548 Driver.
4 * @author DBogdan ([email protected])
5 ********************************************************************************
6 * Copyright 2012(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 __AD9548_H__
43 #define __AD9548_H__
44
45 /*****************************************************************************/
46 /***************************** Include Files *********************************/
47 /*****************************************************************************/
48 #include <stdint.h>
49
50 /******************************************************************************/
51 /************************ AD9548 **********************************************/
52 /******************************************************************************/
53 /* Registers */
54
55 /* Serial port control and part identification */
56 #define AD9548_REG_SPI_CTRL 0x0000
57 #define AD9548_REG_I2C_CTRL 0x0001
58 #define AD9548_REG_SILICON_REV_NUMBER 0x0002
59 #define AD9548_REG_DEVICE_ID 0x0003
60 #define AD9548_REG_READBACK 0x0004
61 #define AD9548_REG_IO_UPDATE 0x0005
62
63 /* System clock */
64 #define AD9548_REG_SYSCLK_0 0x0100
65 #define AD9548_REG_SYSCLK_1 0x0101
66 #define AD9548_REG_SYSCLK_2 0x0102
67 #define AD9548_REG_NOM_SYSCLK_PERIOD_0 0x0103
68 #define AD9548_REG_NOM_SYSCLK_PERIOD_1 0x0104
69 #define AD9548_REG_NOM_SYSCLK_PERIOD_2 0x0105
70 #define AD9548_REG_SYSTEM_CLK_STABILITY_0 0x0106
71 #define AD9548_REG_SYSTEM_CLK_STABILITY_1 0x0107
72 #define AD9548_REG_SYSTEM_CLK_STABILITY_2 0x0108
73
74 /* General configuration */
75 #define AD9548_REG_M0 0x0200
76 #define AD9548_REG_M1 0x0201
77 #define AD9548_REG_M2 0x0202
78 #define AD9548_REG_M3 0x0203
79 #define AD9548_REG_M4 0x0204
80 #define AD9548_REG_M5 0x0205
81 #define AD9548_REG_M6 0x0206
82 #define AD9548_REG_M7 0x0207
83 #define AD9548_REG_IRQ_PIN_OUTPUT_MODE 0x0208
84 #define AD9548_REG_IRQ_MASK_0 0x0209
85 #define AD9548_REG_IRQ_MASK_1 0x020A
86 #define AD9548_REG_IRQ_MASK_2 0x020B
87 #define AD9548_REG_IRQ_MASK_3 0x020C
88 #define AD9548_REG_IRQ_MASK_4 0x020D
89 #define AD9548_REG_IRQ_MASK_5 0x020E
90 #define AD9548_REG_IRQ_MASK_6 0x020F
91 #define AD9548_REG_IRQ_MASK_7 0x0210
92 #define AD9548_REG_WATCHDOG_TIMER_0 0x0211
93 #define AD9548_REG_WATCHDOG_TIMER_1 0x0212
94 #define AD9548_REG_DAC_CURRENT_0 0x0213
95 #define AD9548_REG_DAC_CURRENT_1 0x0214
96
97 /* DPLL */
98 #define AD9548_REG_TUNING_WORD_0 0x0300
99 #define AD9548_REG_TUNING_WORD_1 0x0301
100 #define AD9548_REG_TUNING_WORD_2 0x0302
101 #define AD9548_REG_TUNING_WORD_3 0x0303
102 #define AD9548_REG_TUNING_WORD_4 0x0304
103 #define AD9548_REG_TUNING_WORD_5 0x0305
104 #define AD9548_REG_UPDATE_TW 0x0306
105 #define AD9548_REG_PULL_IN_RANGE_LIMITS_0 0x0307
106 #define AD9548_REG_PULL_IN_RANGE_LIMITS_1 0x0308
107 #define AD9548_REG_PULL_IN_RANGE_LIMITS_2 0x0309
108 #define AD9548_REG_PULL_IN_RANGE_LIMITS_3 0x030A
109 #define AD9548_REG_PULL_IN_RANGE_LIMITS_4 0x030B
110 #define AD9548_REG_PULL_IN_RANGE_LIMITS_5 0x030C
111 #define AD9548_REG_OPEN_LOOP_PHASE_OFFSET_0 0x030D
112 #define AD9548_REG_OPEN_LOOP_PHASE_OFFSET_1 0x030E
113 #define AD9548_REG_CLOSED_LOOP_PHASE_LOCK_OFFSET_0 0x030F
114 #define AD9548_REG_CLOSED_LOOP_PHASE_LOCK_OFFSET_1 0x0310
115 #define AD9548_REG_CLOSED_LOOP_PHASE_LOCK_OFFSET_2 0x0311
116 #define AD9548_REG_CLOSED_LOOP_PHASE_LOCK_OFFSET_3 0x0312
117 #define AD9548_REG_CLOSED_LOOP_PHASE_LOCK_OFFSET_4 0x0313
118 #define AD9548_REG_INCREMENTAL_PHASE_LOCK_OFFSET_1 0x0314
119 #define AD9548_REG_INCREMENTAL_PHASE_LOCK_OFFSET_2 0x0315
120 #define AD9548_REG_PHASE_SLEW_LIMIT_0 0x0316
121 #define AD9548_REG_PHASE_SLEW_LIMIT_1 0x0317
122 #define AD9548_REG_HISTORY_ACCUMULATION_TIMER_0 0x0318
123 #define AD9548_REG_HISTORY_ACCUMULATION_TIMER_1 0x0319
124 #define AD9548_REG_HISTORY_ACCUMULATION_TIMER_2 0x031A
125 #define AD9548_REG_HISTORY_MODE 0x031B
126
127 /* Clock distribution output */
128 #define AD9548_REG_DISTRIBUTION_SETTINGS 0x0400
129 #define AD9548_REG_DISTRIBUTION_ENABLE 0x0401
130 #define AD9548_REG_DISTRIBUTION_SYNCRONIZATION 0x0402
131 #define AD9548_REG_AUTOMATIC_SYNCRONIZATION 0x0403
132 #define AD9548_REG_DISTRIBUTION_CHANNEL_MODES_0 0x0404
133 #define AD9548_REG_DISTRIBUTION_CHANNEL_MODES_1 0x0405
134 #define AD9548_REG_DISTRIBUTION_CHANNEL_MODES_2 0x0406
135 #define AD9548_REG_DISTRIBUTION_CHANNEL_MODES_3 0x0407
136 #define AD9548_REG_DISTRIBUTION_CHANNEL_DIVIDERS_0 0x0408
137 #define AD9548_REG_DISTRIBUTION_CHANNEL_DIVIDERS_1 0x0409
138 #define AD9548_REG_DISTRIBUTION_CHANNEL_DIVIDERS_2 0x040A
139 #define AD9548_REG_DISTRIBUTION_CHANNEL_DIVIDERS_3 0x040B
140 #define AD9548_REG_DISTRIBUTION_CHANNEL_DIVIDERS_4 0x040C
141 #define AD9548_REG_DISTRIBUTION_CHANNEL_DIVIDERS_5 0x040D
142 #define AD9548_REG_DISTRIBUTION_CHANNEL_DIVIDERS_6 0x040E
143 #define AD9548_REG_DISTRIBUTION_CHANNEL_DIVIDERS_7 0x040F
144 #define AD9548_REG_DISTRIBUTION_CHANNEL_DIVIDERS_8 0x0410
145 #define AD9548_REG_DISTRIBUTION_CHANNEL_DIVIDERS_9 0x0411
146 #define AD9548_REG_DISTRIBUTION_CHANNEL_DIVIDERS_10 0x0412
147 #define AD9548_REG_DISTRIBUTION_CHANNEL_DIVIDERS_11 0x0413
148 #define AD9548_REG_DISTRIBUTION_CHANNEL_DIVIDERS_12 0x0414
149 #define AD9548_REG_DISTRIBUTION_CHANNEL_DIVIDERS_13 0x0415
150 #define AD9548_REG_DISTRIBUTION_CHANNEL_DIVIDERS_14 0x0416
151 #define AD9548_REG_DISTRIBUTION_CHANNEL_DIVIDERS_15 0x0417
152
153 /* Reference inputs */
154 #define AD9548_REG_REFERENCE_POWER_DOWN 0x0500
155 #define AD9548_REG_REFERENCE_LOGIC_FAMILY_0 0x0501
156 #define AD9548_REG_REFERENCE_LOGIC_FAMILY_1 0x0502
157 #define AD9548_REG_MANUAL_REFERENCE_PROFILE_SEL_0 0x0503
158 #define AD9548_REG_MANUAL_REFERENCE_PROFILE_SEL_1 0x0504
159 #define AD9548_REG_MANUAL_REFERENCE_PROFILE_SEL_2 0x0505
160 #define AD9548_REG_MANUAL_REFERENCE_PROFILE_SEL_3 0x0506
161 #define AD9548_REG_PHASE_BUILD_OUT_SWITCHING 0x0507
162
163 /* Profile 0 */
164 #define AD9548_REG_PROFILE_0_PRIORITIES 0x0600
165 #define AD9548_REG_PROFILE_0_REFERENCE_PERIOD_0 0x0601
166 #define AD9548_REG_PROFILE_0_REFERENCE_PERIOD_1 0x0602
167 #define AD9548_REG_PROFILE_0_REFERENCE_PERIOD_2 0x0603
168 #define AD9548_REG_PROFILE_0_REFERENCE_PERIOD_3 0x0604
169 #define AD9548_REG_PROFILE_0_REFERENCE_PERIOD_4 0x0605
170 #define AD9548_REG_PROFILE_0_REFERENCE_PERIOD_5 0x0606
171 #define AD9548_REG_PROFILE_0_REFERENCE_PERIOD_6 0x0607
172 #define AD9548_REG_PROFILE_0_TOLERANCE_0 0x0608
173 #define AD9548_REG_PROFILE_0_TOLERANCE_1 0x0609
174 #define AD9548_REG_PROFILE_0_TOLERANCE_2 0x060A
175 #define AD9548_REG_PROFILE_0_TOLERANCE_3 0x060B
176 #define AD9548_REG_PROFILE_0_TOLERANCE_4 0x060C
177 #define AD9548_REG_PROFILE_0_TOLERANCE_5 0x060D
178 #define AD9548_REG_PROFILE_0_VALIDATION_0 0x060E
179 #define AD9548_REG_PROFILE_0_VALIDATION_1 0x060F
180 #define AD9548_REG_PROFILE_0_REDETECT_TIMEOUT_0 0x0610
181 #define AD9548_REG_PROFILE_0_REDETECT_TIMEOUT_1 0x0611
182 #define AD9548_REG_PROFILE_0_D_LOOP_FILTER_COEFF_0 0x0612
183 #define AD9548_REG_PROFILE_0_D_LOOP_FILTER_COEFF_1 0x0613
184 #define AD9548_REG_PROFILE_0_D_LOOP_FILTER_COEFF_2 0x0614
185 #define AD9548_REG_PROFILE_0_D_LOOP_FILTER_COEFF_3 0x0615
186 #define AD9548_REG_PROFILE_0_D_LOOP_FILTER_COEFF_4 0x0616
187 #define AD9548_REG_PROFILE_0_D_LOOP_FILTER_COEFF_5 0x0617
188 #define AD9548_REG_PROFILE_0_D_LOOP_FILTER_COEFF_6 0x0618
189 #define AD9548_REG_PROFILE_0_D_LOOP_FILTER_COEFF_7 0x0619
190 #define AD9548_REG_PROFILE_0_D_LOOP_FILTER_COEFF_8 0x061A
191 #define AD9548_REG_PROFILE_0_D_LOOP_FILTER_COEFF_9 0x061B
192 #define AD9548_REG_PROFILE_0_D_LOOP_FILTER_COEFF_10 0x061C
193 #define AD9548_REG_PROFILE_0_D_LOOP_FILTER_COEFF_11 0x061D
194 #define AD9548_REG_PROFILE_0_FREQ_MULTIPLICATION_0 0x061E
195 #define AD9548_REG_PROFILE_0_FREQ_MULTIPLICATION_1 0x061F
196 #define AD9548_REG_PROFILE_0_FREQ_MULTIPLICATION_2 0x0620
197 #define AD9548_REG_PROFILE_0_FREQ_MULTIPLICATION_3 0x0621
198 #define AD9548_REG_PROFILE_0_FREQ_MULTIPLICATION_4 0x0622
199 #define AD9548_REG_PROFILE_0_FREQ_MULTIPLICATION_5 0x0623
200 #define AD9548_REG_PROFILE_0_FREQ_MULTIPLICATION_6 0x0624
201 #define AD9548_REG_PROFILE_0_FREQ_MULTIPLICATION_7 0x0625
202 #define AD9548_REG_PROFILE_0_FREQ_MULTIPLICATION_8 0x0626
203 #define AD9548_REG_PROFILE_0_FREQ_MULTIPLICATION_9 0x0627
204 #define AD9548_REG_PROFILE_0_FREQ_MULTIPLICATION_10 0x0628
205 #define AD9548_REG_PROFILE_0_FREQ_LOCK_DETECTORS_0 0x0629
206 #define AD9548_REG_PROFILE_0_FREQ_LOCK_DETECTORS_1 0x062A
207 #define AD9548_REG_PROFILE_0_FREQ_LOCK_DETECTORS_2 0x062B
208 #define AD9548_REG_PROFILE_0_FREQ_LOCK_DETECTORS_3 0x062C
209 #define AD9548_REG_PROFILE_0_FREQ_LOCK_DETECTORS_4 0x062D
210 #define AD9548_REG_PROFILE_0_FREQ_LOCK_DETECTORS_5 0x062E
211 #define AD9548_REG_PROFILE_0_FREQ_LOCK_DETECTORS_6 0x062F
212 #define AD9548_REG_PROFILE_0_FREQ_LOCK_DETECTORS_7 0x0630
213 #define AD9548_REG_PROFILE_0_FREQ_LOCK_DETECTORS_8 0x0631
214
215 /* Profile 1 */
216 #define AD9548_REG_PROFILE_1_PRIORITIES 0x0632
217 #define AD9548_REG_PROFILE_1_REFERENCE_PERIOD_0 0x0633
218 #define AD9548_REG_PROFILE_1_REFERENCE_PERIOD_1 0x0634
219 #define AD9548_REG_PROFILE_1_REFERENCE_PERIOD_2 0x0635
220 #define AD9548_REG_PROFILE_1_REFERENCE_PERIOD_3 0x0636
221 #define AD9548_REG_PROFILE_1_REFERENCE_PERIOD_4 0x0637
222 #define AD9548_REG_PROFILE_1_REFERENCE_PERIOD_5 0x0638
223 #define AD9548_REG_PROFILE_1_REFERENCE_PERIOD_6 0x0639
224 #define AD9548_REG_PROFILE_1_TOLERANCE_0 0x063A
225 #define AD9548_REG_PROFILE_1_TOLERANCE_1 0x063B
226 #define AD9548_REG_PROFILE_1_TOLERANCE_2 0x063C
227 #define AD9548_REG_PROFILE_1_TOLERANCE_3 0x063D
228 #define AD9548_REG_PROFILE_1_TOLERANCE_4 0x063E
229 #define AD9548_REG_PROFILE_1_TOLERANCE_5 0x063F
230 #define AD9548_REG_PROFILE_1_VALIDATION_0 0x0640
231 #define AD9548_REG_PROFILE_1_VALIDATION_1 0x0641
232 #define AD9548_REG_PROFILE_1_REDETECT_TIMEOUT_0 0x0642
233 #define AD9548_REG_PROFILE_1_REDETECT_TIMEOUT_1 0x0643
234 #define AD9548_REG_PROFILE_1_D_LOOP_FILTER_COEFF_0 0x0644
235 #define AD9548_REG_PROFILE_1_D_LOOP_FILTER_COEFF_1 0x0645
236 #define AD9548_REG_PROFILE_1_D_LOOP_FILTER_COEFF_2 0x0646
237 #define AD9548_REG_PROFILE_1_D_LOOP_FILTER_COEFF_3 0x0647
238 #define AD9548_REG_PROFILE_1_D_LOOP_FILTER_COEFF_4 0x0648
239 #define AD9548_REG_PROFILE_1_D_LOOP_FILTER_COEFF_5 0x0649
240 #define AD9548_REG_PROFILE_1_D_LOOP_FILTER_COEFF_6 0x064A
241 #define AD9548_REG_PROFILE_1_D_LOOP_FILTER_COEFF_7 0x064B
242 #define AD9548_REG_PROFILE_1_D_LOOP_FILTER_COEFF_8 0x064C
243 #define AD9548_REG_PROFILE_1_D_LOOP_FILTER_COEFF_9 0x064D
244 #define AD9548_REG_PROFILE_1_D_LOOP_FILTER_COEFF_10 0x064E
245 #define AD9548_REG_PROFILE_1_D_LOOP_FILTER_COEFF_11 0x064F
246 #define AD9548_REG_PROFILE_1_FREQ_MULTIPLICATION_0 0x0650
247 #define AD9548_REG_PROFILE_1_FREQ_MULTIPLICATION_1 0x0651
248 #define AD9548_REG_PROFILE_1_FREQ_MULTIPLICATION_2 0x0652
249 #define AD9548_REG_PROFILE_1_FREQ_MULTIPLICATION_3 0x0653
250 #define AD9548_REG_PROFILE_1_FREQ_MULTIPLICATION_4 0x0654
251 #define AD9548_REG_PROFILE_1_FREQ_MULTIPLICATION_5 0x0655
252 #define AD9548_REG_PROFILE_1_FREQ_MULTIPLICATION_6 0x0656
253 #define AD9548_REG_PROFILE_1_FREQ_MULTIPLICATION_7 0x0657
254 #define AD9548_REG_PROFILE_1_FREQ_MULTIPLICATION_8 0x0658
255 #define AD9548_REG_PROFILE_1_FREQ_MULTIPLICATION_9 0x0659
256 #define AD9548_REG_PROFILE_1_FREQ_MULTIPLICATION_10 0x065A
257 #define AD9548_REG_PROFILE_1_FREQ_LOCK_DETECTORS_0 0x065B
258 #define AD9548_REG_PROFILE_1_FREQ_LOCK_DETECTORS_1 0x065C
259 #define AD9548_REG_PROFILE_1_FREQ_LOCK_DETECTORS_2 0x065D
260 #define AD9548_REG_PROFILE_1_FREQ_LOCK_DETECTORS_3 0x065E
261 #define AD9548_REG_PROFILE_1_FREQ_LOCK_DETECTORS_4 0x065F
262 #define AD9548_REG_PROFILE_1_FREQ_LOCK_DETECTORS_5 0x0660
263 #define AD9548_REG_PROFILE_1_FREQ_LOCK_DETECTORS_6 0x0661
264 #define AD9548_REG_PROFILE_1_FREQ_LOCK_DETECTORS_7 0x0662
265 #define AD9548_REG_PROFILE_1_FREQ_LOCK_DETECTORS_8 0x0663
266
267 /* Profile 2 */
268 #define AD9548_REG_PROFILE_2_PRIORITIES 0x0680
269 #define AD9548_REG_PROFILE_2_REFERENCE_PERIOD_0 0x0681
270 #define AD9548_REG_PROFILE_2_REFERENCE_PERIOD_1 0x0682
271 #define AD9548_REG_PROFILE_2_REFERENCE_PERIOD_2 0x0683
272 #define AD9548_REG_PROFILE_2_REFERENCE_PERIOD_3 0x0684
273 #define AD9548_REG_PROFILE_2_REFERENCE_PERIOD_4 0x0685
274 #define AD9548_REG_PROFILE_2_REFERENCE_PERIOD_5 0x0686
275 #define AD9548_REG_PROFILE_2_REFERENCE_PERIOD_6 0x0687
276 #define AD9548_REG_PROFILE_2_TOLERANCE_0 0x0688
277 #define AD9548_REG_PROFILE_2_TOLERANCE_1 0x0689
278 #define AD9548_REG_PROFILE_2_TOLERANCE_2 0x068A
279 #define AD9548_REG_PROFILE_2_TOLERANCE_3 0x068B
280 #define AD9548_REG_PROFILE_2_TOLERANCE_4 0x068C
281 #define AD9548_REG_PROFILE_2_TOLERANCE_5 0x068D
282 #define AD9548_REG_PROFILE_2_VALIDATION_0 0x068E
283 #define AD9548_REG_PROFILE_2_VALIDATION_1 0x068F
284 #define AD9548_REG_PROFILE_2_REDETECT_TIMEOUT_0 0x0690
285 #define AD9548_REG_PROFILE_2_REDETECT_TIMEOUT_1 0x0691
286 #define AD9548_REG_PROFILE_2_D_LOOP_FILTER_COEFF_0 0x0692
287 #define AD9548_REG_PROFILE_2_D_LOOP_FILTER_COEFF_1 0x0693
288 #define AD9548_REG_PROFILE_2_D_LOOP_FILTER_COEFF_2 0x0694
289 #define AD9548_REG_PROFILE_2_D_LOOP_FILTER_COEFF_3 0x0695
290 #define AD9548_REG_PROFILE_2_D_LOOP_FILTER_COEFF_4 0x0696
291 #define AD9548_REG_PROFILE_2_D_LOOP_FILTER_COEFF_5 0x0697
292 #define AD9548_REG_PROFILE_2_D_LOOP_FILTER_COEFF_6 0x0698
293 #define AD9548_REG_PROFILE_2_D_LOOP_FILTER_COEFF_7 0x0699
294 #define AD9548_REG_PROFILE_2_D_LOOP_FILTER_COEFF_8 0x069A
295 #define AD9548_REG_PROFILE_2_D_LOOP_FILTER_COEFF_9 0x069B
296 #define AD9548_REG_PROFILE_2_D_LOOP_FILTER_COEFF_10 0x069C
297 #define AD9548_REG_PROFILE_2_D_LOOP_FILTER_COEFF_11 0x069D
298 #define AD9548_REG_PROFILE_2_FREQ_MULTIPLICATION_0 0x069E
299 #define AD9548_REG_PROFILE_2_FREQ_MULTIPLICATION_1 0x069F
300 #define AD9548_REG_PROFILE_2_FREQ_MULTIPLICATION_2 0x06A0
301 #define AD9548_REG_PROFILE_2_FREQ_MULTIPLICATION_3 0x06A1
302 #define AD9548_REG_PROFILE_2_FREQ_MULTIPLICATION_4 0x06A2
303 #define AD9548_REG_PROFILE_2_FREQ_MULTIPLICATION_5 0x06A3
304 #define AD9548_REG_PROFILE_2_FREQ_MULTIPLICATION_6 0x06A4
305 #define AD9548_REG_PROFILE_2_FREQ_MULTIPLICATION_7 0x06A5
306 #define AD9548_REG_PROFILE_2_FREQ_MULTIPLICATION_8 0x06A6
307 #define AD9548_REG_PROFILE_2_FREQ_MULTIPLICATION_9 0x06A7
308 #define AD9548_REG_PROFILE_2_FREQ_MULTIPLICATION_10 0x06A8
309 #define AD9548_REG_PROFILE_2_FREQ_LOCK_DETECTORS_0 0x06A9
310 #define AD9548_REG_PROFILE_2_FREQ_LOCK_DETECTORS_1 0x06AA
311 #define AD9548_REG_PROFILE_2_FREQ_LOCK_DETECTORS_2 0x06AB
312 #define AD9548_REG_PROFILE_2_FREQ_LOCK_DETECTORS_3 0x06AC
313 #define AD9548_REG_PROFILE_2_FREQ_LOCK_DETECTORS_4 0x06AD
314 #define AD9548_REG_PROFILE_2_FREQ_LOCK_DETECTORS_5 0x06AE
315 #define AD9548_REG_PROFILE_2_FREQ_LOCK_DETECTORS_6 0x06AF
316 #define AD9548_REG_PROFILE_2_FREQ_LOCK_DETECTORS_7 0x06B0
317 #define AD9548_REG_PROFILE_2_FREQ_LOCK_DETECTORS_8 0x06B1
318
319 /* Profile 3 */
320 #define AD9548_REG_PROFILE_3_PRIORITIES 0x06B2
321 #define AD9548_REG_PROFILE_3_REFERENCE_PERIOD_0 0x06B3
322 #define AD9548_REG_PROFILE_3_REFERENCE_PERIOD_1 0x06B4
323 #define AD9548_REG_PROFILE_3_REFERENCE_PERIOD_2 0x06B5
324 #define AD9548_REG_PROFILE_3_REFERENCE_PERIOD_3 0x06B6
325 #define AD9548_REG_PROFILE_3_REFERENCE_PERIOD_4 0x06B7
326 #define AD9548_REG_PROFILE_3_REFERENCE_PERIOD_5 0x06B8
327 #define AD9548_REG_PROFILE_3_REFERENCE_PERIOD_6 0x06B9
328 #define AD9548_REG_PROFILE_3_TOLERANCE_0 0x06BA
329 #define AD9548_REG_PROFILE_3_TOLERANCE_1 0x06BB
330 #define AD9548_REG_PROFILE_3_TOLERANCE_2 0x06BC
331 #define AD9548_REG_PROFILE_3_TOLERANCE_3 0x06BD
332 #define AD9548_REG_PROFILE_3_TOLERANCE_4 0x06BE
333 #define AD9548_REG_PROFILE_3_TOLERANCE_5 0x06BF
334 #define AD9548_REG_PROFILE_3_VALIDATION_0 0x06C0
335 #define AD9548_REG_PROFILE_3_VALIDATION_1 0x06C1
336 #define AD9548_REG_PROFILE_3_REDETECT_TIMEOUT_0 0x06C2
337 #define AD9548_REG_PROFILE_3_REDETECT_TIMEOUT_1 0x06C3
338 #define AD9548_REG_PROFILE_3_D_LOOP_FILTER_COEFF_0 0x06C4
339 #define AD9548_REG_PROFILE_3_D_LOOP_FILTER_COEFF_1 0x06C5
340 #define AD9548_REG_PROFILE_3_D_LOOP_FILTER_COEFF_2 0x06C6
341 #define AD9548_REG_PROFILE_3_D_LOOP_FILTER_COEFF_3 0x06C7
342 #define AD9548_REG_PROFILE_3_D_LOOP_FILTER_COEFF_4 0x06C8
343 #define AD9548_REG_PROFILE_3_D_LOOP_FILTER_COEFF_5 0x06C9
344 #define AD9548_REG_PROFILE_3_D_LOOP_FILTER_COEFF_6 0x06CA
345 #define AD9548_REG_PROFILE_3_D_LOOP_FILTER_COEFF_7 0x06CB
346 #define AD9548_REG_PROFILE_3_D_LOOP_FILTER_COEFF_8 0x06CC
347 #define AD9548_REG_PROFILE_3_D_LOOP_FILTER_COEFF_9 0x06CD
348 #define AD9548_REG_PROFILE_3_D_LOOP_FILTER_COEFF_10 0x06CE
349 #define AD9548_REG_PROFILE_3_D_LOOP_FILTER_COEFF_11 0x06DF
350 #define AD9548_REG_PROFILE_3_FREQ_MULTIPLICATION_0 0x06D0
351 #define AD9548_REG_PROFILE_3_FREQ_MULTIPLICATION_1 0x06D1
352 #define AD9548_REG_PROFILE_3_FREQ_MULTIPLICATION_2 0x06D2
353 #define AD9548_REG_PROFILE_3_FREQ_MULTIPLICATION_3 0x06D3
354 #define AD9548_REG_PROFILE_3_FREQ_MULTIPLICATION_4 0x06D4
355 #define AD9548_REG_PROFILE_3_FREQ_MULTIPLICATION_5 0x06D5
356 #define AD9548_REG_PROFILE_3_FREQ_MULTIPLICATION_6 0x06D6
357 #define AD9548_REG_PROFILE_3_FREQ_MULTIPLICATION_7 0x06D7
358 #define AD9548_REG_PROFILE_3_FREQ_MULTIPLICATION_8 0x06D8
359 #define AD9548_REG_PROFILE_3_FREQ_MULTIPLICATION_9 0x06D9
360 #define AD9548_REG_PROFILE_3_FREQ_MULTIPLICATION_10 0x06DA
361 #define AD9548_REG_PROFILE_3_FREQ_LOCK_DETECTORS_0 0x06DB
362 #define AD9548_REG_PROFILE_3_FREQ_LOCK_DETECTORS_1 0x06DC
363 #define AD9548_REG_PROFILE_3_FREQ_LOCK_DETECTORS_2 0x06DD
364 #define AD9548_REG_PROFILE_3_FREQ_LOCK_DETECTORS_3 0x06DE
365 #define AD9548_REG_PROFILE_3_FREQ_LOCK_DETECTORS_4 0x06DF
366 #define AD9548_REG_PROFILE_3_FREQ_LOCK_DETECTORS_5 0x06E0
367 #define AD9548_REG_PROFILE_3_FREQ_LOCK_DETECTORS_6 0x06E1
368 #define AD9548_REG_PROFILE_3_FREQ_LOCK_DETECTORS_7 0x06E2
369 #define AD9548_REG_PROFILE_3_FREQ_LOCK_DETECTORS_8 0x06E3
370
371 /* Profile 4 */
372 #define AD9548_REG_PROFILE_4_PRIORITIES 0x0700
373 #define AD9548_REG_PROFILE_4_REFERENCE_PERIOD_0 0x0701
374 #define AD9548_REG_PROFILE_4_REFERENCE_PERIOD_1 0x0702
375 #define AD9548_REG_PROFILE_4_REFERENCE_PERIOD_2 0x0703
376 #define AD9548_REG_PROFILE_4_REFERENCE_PERIOD_3 0x0704
377 #define AD9548_REG_PROFILE_4_REFERENCE_PERIOD_4 0x0705
378 #define AD9548_REG_PROFILE_4_REFERENCE_PERIOD_5 0x0706
379 #define AD9548_REG_PROFILE_4_REFERENCE_PERIOD_6 0x0707
380 #define AD9548_REG_PROFILE_4_TOLERANCE_0 0x0708
381 #define AD9548_REG_PROFILE_4_TOLERANCE_1 0x0709
382 #define AD9548_REG_PROFILE_4_TOLERANCE_2 0x070A
383 #define AD9548_REG_PROFILE_4_TOLERANCE_3 0x070B
384 #define AD9548_REG_PROFILE_4_TOLERANCE_4 0x070C
385 #define AD9548_REG_PROFILE_4_TOLERANCE_5 0x070D
386 #define AD9548_REG_PROFILE_4_VALIDATION_0 0x070E
387 #define AD9548_REG_PROFILE_4_VALIDATION_1 0x070F
388 #define AD9548_REG_PROFILE_4_REDETECT_TIMEOUT_0 0x0710
389 #define AD9548_REG_PROFILE_4_REDETECT_TIMEOUT_1 0x0711
390 #define AD9548_REG_PROFILE_4_D_LOOP_FILTER_COEFF_0 0x0712
391 #define AD9548_REG_PROFILE_4_D_LOOP_FILTER_COEFF_1 0x0713
392 #define AD9548_REG_PROFILE_4_D_LOOP_FILTER_COEFF_2 0x0714
393 #define AD9548_REG_PROFILE_4_D_LOOP_FILTER_COEFF_3 0x0715
394 #define AD9548_REG_PROFILE_4_D_LOOP_FILTER_COEFF_4 0x0716
395 #define AD9548_REG_PROFILE_4_D_LOOP_FILTER_COEFF_5 0x0717
396 #define AD9548_REG_PROFILE_4_D_LOOP_FILTER_COEFF_6 0x0718
397 #define AD9548_REG_PROFILE_4_D_LOOP_FILTER_COEFF_7 0x0719
398 #define AD9548_REG_PROFILE_4_D_LOOP_FILTER_COEFF_8 0x071A
399 #define AD9548_REG_PROFILE_4_D_LOOP_FILTER_COEFF_9 0x071B
400 #define AD9548_REG_PROFILE_4_D_LOOP_FILTER_COEFF_10 0x071C
401 #define AD9548_REG_PROFILE_4_D_LOOP_FILTER_COEFF_11 0x071D
402 #define AD9548_REG_PROFILE_4_FREQ_MULTIPLICATION_0 0x071E
403 #define AD9548_REG_PROFILE_4_FREQ_MULTIPLICATION_1 0x071F
404 #define AD9548_REG_PROFILE_4_FREQ_MULTIPLICATION_2 0x0720
405 #define AD9548_REG_PROFILE_4_FREQ_MULTIPLICATION_3 0x0721
406 #define AD9548_REG_PROFILE_4_FREQ_MULTIPLICATION_4 0x0722
407 #define AD9548_REG_PROFILE_4_FREQ_MULTIPLICATION_5 0x0723
408 #define AD9548_REG_PROFILE_4_FREQ_MULTIPLICATION_6 0x0724
409 #define AD9548_REG_PROFILE_4_FREQ_MULTIPLICATION_7 0x0725
410 #define AD9548_REG_PROFILE_4_FREQ_MULTIPLICATION_8 0x0726
411 #define AD9548_REG_PROFILE_4_FREQ_MULTIPLICATION_9 0x0727
412 #define AD9548_REG_PROFILE_4_FREQ_MULTIPLICATION_10 0x0728
413 #define AD9548_REG_PROFILE_4_FREQ_LOCK_DETECTORS_0 0x0729
414 #define AD9548_REG_PROFILE_4_FREQ_LOCK_DETECTORS_1 0x072A
415 #define AD9548_REG_PROFILE_4_FREQ_LOCK_DETECTORS_2 0x072B
416 #define AD9548_REG_PROFILE_4_FREQ_LOCK_DETECTORS_3 0x072C
417 #define AD9548_REG_PROFILE_4_FREQ_LOCK_DETECTORS_4 0x072D
418 #define AD9548_REG_PROFILE_4_FREQ_LOCK_DETECTORS_5 0x072E
419 #define AD9548_REG_PROFILE_4_FREQ_LOCK_DETECTORS_6 0x072F
420 #define AD9548_REG_PROFILE_4_FREQ_LOCK_DETECTORS_7 0x0730
421 #define AD9548_REG_PROFILE_4_FREQ_LOCK_DETECTORS_8 0x0731
422
423 /* Profile 5 */
424 #define AD9548_REG_PROFILE_5_PRIORITIES 0x0732
425 #define AD9548_REG_PROFILE_5_REFERENCE_PERIOD_0 0x0733
426 #define AD9548_REG_PROFILE_5_REFERENCE_PERIOD_1 0x0734
427 #define AD9548_REG_PROFILE_5_REFERENCE_PERIOD_2 0x0735
428 #define AD9548_REG_PROFILE_5_REFERENCE_PERIOD_3 0x0736
429 #define AD9548_REG_PROFILE_5_REFERENCE_PERIOD_4 0x0737
430 #define AD9548_REG_PROFILE_5_REFERENCE_PERIOD_5 0x0738
431 #define AD9548_REG_PROFILE_5_REFERENCE_PERIOD_6 0x0739
432 #define AD9548_REG_PROFILE_5_TOLERANCE_0 0x073A
433 #define AD9548_REG_PROFILE_5_TOLERANCE_1 0x073B
434 #define AD9548_REG_PROFILE_5_TOLERANCE_2 0x073C
435 #define AD9548_REG_PROFILE_5_TOLERANCE_3 0x073D
436 #define AD9548_REG_PROFILE_5_TOLERANCE_4 0x073E
437 #define AD9548_REG_PROFILE_5_TOLERANCE_5 0x073F
438 #define AD9548_REG_PROFILE_5_VALIDATION_0 0x0740
439 #define AD9548_REG_PROFILE_5_VALIDATION_1 0x0741
440 #define AD9548_REG_PROFILE_5_REDETECT_TIMEOUT_0 0x0742
441 #define AD9548_REG_PROFILE_5_REDETECT_TIMEOUT_1 0x0743
442 #define AD9548_REG_PROFILE_5_D_LOOP_FILTER_COEFF_0 0x0744
443 #define AD9548_REG_PROFILE_5_D_LOOP_FILTER_COEFF_1 0x0745
444 #define AD9548_REG_PROFILE_5_D_LOOP_FILTER_COEFF_2 0x0746
445 #define AD9548_REG_PROFILE_5_D_LOOP_FILTER_COEFF_3 0x0747
446 #define AD9548_REG_PROFILE_5_D_LOOP_FILTER_COEFF_4 0x0748
447 #define AD9548_REG_PROFILE_5_D_LOOP_FILTER_COEFF_5 0x0749
448 #define AD9548_REG_PROFILE_5_D_LOOP_FILTER_COEFF_6 0x074A
449 #define AD9548_REG_PROFILE_5_D_LOOP_FILTER_COEFF_7 0x074B
450 #define AD9548_REG_PROFILE_5_D_LOOP_FILTER_COEFF_8 0x074C
451 #define AD9548_REG_PROFILE_5_D_LOOP_FILTER_COEFF_9 0x074D
452 #define AD9548_REG_PROFILE_5_D_LOOP_FILTER_COEFF_10 0x074E
453 #define AD9548_REG_PROFILE_5_D_LOOP_FILTER_COEFF_11 0x074F
454 #define AD9548_REG_PROFILE_5_FREQ_MULTIPLICATION_0 0x0750
455 #define AD9548_REG_PROFILE_5_FREQ_MULTIPLICATION_1 0x0751
456 #define AD9548_REG_PROFILE_5_FREQ_MULTIPLICATION_2 0x0752
457 #define AD9548_REG_PROFILE_5_FREQ_MULTIPLICATION_3 0x0753
458 #define AD9548_REG_PROFILE_5_FREQ_MULTIPLICATION_4 0x0754
459 #define AD9548_REG_PROFILE_5_FREQ_MULTIPLICATION_5 0x0755
460 #define AD9548_REG_PROFILE_5_FREQ_MULTIPLICATION_6 0x0756
461 #define AD9548_REG_PROFILE_5_FREQ_MULTIPLICATION_7 0x0757
462 #define AD9548_REG_PROFILE_5_FREQ_MULTIPLICATION_8 0x0758
463 #define AD9548_REG_PROFILE_5_FREQ_MULTIPLICATION_9 0x0759
464 #define AD9548_REG_PROFILE_5_FREQ_MULTIPLICATION_10 0x075A
465 #define AD9548_REG_PROFILE_5_FREQ_LOCK_DETECTORS_0 0x075B
466 #define AD9548_REG_PROFILE_5_FREQ_LOCK_DETECTORS_1 0x075C
467 #define AD9548_REG_PROFILE_5_FREQ_LOCK_DETECTORS_2 0x075D
468 #define AD9548_REG_PROFILE_5_FREQ_LOCK_DETECTORS_3 0x075E
469 #define AD9548_REG_PROFILE_5_FREQ_LOCK_DETECTORS_4 0x075F
470 #define AD9548_REG_PROFILE_5_FREQ_LOCK_DETECTORS_5 0x0760
471 #define AD9548_REG_PROFILE_5_FREQ_LOCK_DETECTORS_6 0x0761
472 #define AD9548_REG_PROFILE_5_FREQ_LOCK_DETECTORS_7 0x0762
473 #define AD9548_REG_PROFILE_5_FREQ_LOCK_DETECTORS_8 0x0763
474
475 /* Profile 6 */
476 #define AD9548_REG_PROFILE_6_PRIORITIES 0x0780
477 #define AD9548_REG_PROFILE_6_REFERENCE_PERIOD_0 0x0781
478 #define AD9548_REG_PROFILE_6_REFERENCE_PERIOD_1 0x0782
479 #define AD9548_REG_PROFILE_6_REFERENCE_PERIOD_2 0x0783
480 #define AD9548_REG_PROFILE_6_REFERENCE_PERIOD_3 0x0784
481 #define AD9548_REG_PROFILE_6_REFERENCE_PERIOD_4 0x0785
482 #define AD9548_REG_PROFILE_6_REFERENCE_PERIOD_5 0x0786
483 #define AD9548_REG_PROFILE_6_REFERENCE_PERIOD_6 0x0787
484 #define AD9548_REG_PROFILE_6_TOLERANCE_0 0x0788
485 #define AD9548_REG_PROFILE_6_TOLERANCE_1 0x0789
486 #define AD9548_REG_PROFILE_6_TOLERANCE_2 0x078A
487 #define AD9548_REG_PROFILE_6_TOLERANCE_3 0x078B
488 #define AD9548_REG_PROFILE_6_TOLERANCE_4 0x078C
489 #define AD9548_REG_PROFILE_6_TOLERANCE_5 0x078D
490 #define AD9548_REG_PROFILE_6_VALIDATION_0 0x078E
491 #define AD9548_REG_PROFILE_6_VALIDATION_1 0x078F
492 #define AD9548_REG_PROFILE_6_REDETECT_TIMEOUT_0 0x0790
493 #define AD9548_REG_PROFILE_6_REDETECT_TIMEOUT_1 0x0791
494 #define AD9548_REG_PROFILE_6_D_LOOP_FILTER_COEFF_0 0x0792
495 #define AD9548_REG_PROFILE_6_D_LOOP_FILTER_COEFF_1 0x0793
496 #define AD9548_REG_PROFILE_6_D_LOOP_FILTER_COEFF_2 0x0794
497 #define AD9548_REG_PROFILE_6_D_LOOP_FILTER_COEFF_3 0x0795
498 #define AD9548_REG_PROFILE_6_D_LOOP_FILTER_COEFF_4 0x0796
499 #define AD9548_REG_PROFILE_6_D_LOOP_FILTER_COEFF_5 0x0797
500 #define AD9548_REG_PROFILE_6_D_LOOP_FILTER_COEFF_6 0x0798
501 #define AD9548_REG_PROFILE_6_D_LOOP_FILTER_COEFF_7 0x0799
502 #define AD9548_REG_PROFILE_6_D_LOOP_FILTER_COEFF_8 0x079A
503 #define AD9548_REG_PROFILE_6_D_LOOP_FILTER_COEFF_9 0x079B
504 #define AD9548_REG_PROFILE_6_D_LOOP_FILTER_COEFF_10 0x079C
505 #define AD9548_REG_PROFILE_6_D_LOOP_FILTER_COEFF_11 0x079D
506 #define AD9548_REG_PROFILE_6_FREQ_MULTIPLICATION_0 0x079E
507 #define AD9548_REG_PROFILE_6_FREQ_MULTIPLICATION_1 0x079F
508 #define AD9548_REG_PROFILE_6_FREQ_MULTIPLICATION_2 0x07A0
509 #define AD9548_REG_PROFILE_6_FREQ_MULTIPLICATION_3 0x07A1
510 #define AD9548_REG_PROFILE_6_FREQ_MULTIPLICATION_4 0x07A2
511 #define AD9548_REG_PROFILE_6_FREQ_MULTIPLICATION_5 0x07A3
512 #define AD9548_REG_PROFILE_6_FREQ_MULTIPLICATION_6 0x07A4
513 #define AD9548_REG_PROFILE_6_FREQ_MULTIPLICATION_7 0x07A5
514 #define AD9548_REG_PROFILE_6_FREQ_MULTIPLICATION_8 0x07A6
515 #define AD9548_REG_PROFILE_6_FREQ_MULTIPLICATION_9 0x07A7
516 #define AD9548_REG_PROFILE_6_FREQ_MULTIPLICATION_10 0x07A8
517 #define AD9548_REG_PROFILE_6_FREQ_LOCK_DETECTORS_0 0x07A9
518 #define AD9548_REG_PROFILE_6_FREQ_LOCK_DETECTORS_1 0x07AA
519 #define AD9548_REG_PROFILE_6_FREQ_LOCK_DETECTORS_2 0x07AB
520 #define AD9548_REG_PROFILE_6_FREQ_LOCK_DETECTORS_3 0x07AC
521 #define AD9548_REG_PROFILE_6_FREQ_LOCK_DETECTORS_4 0x07AD
522 #define AD9548_REG_PROFILE_6_FREQ_LOCK_DETECTORS_5 0x07AE
523 #define AD9548_REG_PROFILE_6_FREQ_LOCK_DETECTORS_6 0x07AF
524 #define AD9548_REG_PROFILE_6_FREQ_LOCK_DETECTORS_7 0x07B0
525 #define AD9548_REG_PROFILE_6_FREQ_LOCK_DETECTORS_8 0x07B1
526
527 /* Profile 7 */
528 #define AD9548_REG_PROFILE_7_PRIORITIES 0x07B2
529 #define AD9548_REG_PROFILE_7_REFERENCE_PERIOD_0 0x07B3
530 #define AD9548_REG_PROFILE_7_REFERENCE_PERIOD_1 0x07B4
531 #define AD9548_REG_PROFILE_7_REFERENCE_PERIOD_2 0x07B5
532 #define AD9548_REG_PROFILE_7_REFERENCE_PERIOD_3 0x07B6
533 #define AD9548_REG_PROFILE_7_REFERENCE_PERIOD_4 0x07B7
534 #define AD9548_REG_PROFILE_7_REFERENCE_PERIOD_5 0x07B8
535 #define AD9548_REG_PROFILE_7_REFERENCE_PERIOD_6 0x07B9
536 #define AD9548_REG_PROFILE_7_TOLERANCE_0 0x07BA
537 #define AD9548_REG_PROFILE_7_TOLERANCE_1 0x07BB
538 #define AD9548_REG_PROFILE_7_TOLERANCE_2 0x07BC
539 #define AD9548_REG_PROFILE_7_TOLERANCE_3 0x07BD
540 #define AD9548_REG_PROFILE_7_TOLERANCE_4 0x07BE
541 #define AD9548_REG_PROFILE_7_TOLERANCE_5 0x07BF
542 #define AD9548_REG_PROFILE_7_VALIDATION_0 0x07C0
543 #define AD9548_REG_PROFILE_7_VALIDATION_1 0x07C1
544 #define AD9548_REG_PROFILE_7_REDETECT_TIMEOUT_0 0x07C2
545 #define AD9548_REG_PROFILE_7_REDETECT_TIMEOUT_1 0x07C3
546 #define AD9548_REG_PROFILE_7_D_LOOP_FILTER_COEFF_0 0x07C4
547 #define AD9548_REG_PROFILE_7_D_LOOP_FILTER_COEFF_1 0x07C5
548 #define AD9548_REG_PROFILE_7_D_LOOP_FILTER_COEFF_2 0x07C6
549 #define AD9548_REG_PROFILE_7_D_LOOP_FILTER_COEFF_3 0x07C7
550 #define AD9548_REG_PROFILE_7_D_LOOP_FILTER_COEFF_4 0x07C8
551 #define AD9548_REG_PROFILE_7_D_LOOP_FILTER_COEFF_5 0x07C9
552 #define AD9548_REG_PROFILE_7_D_LOOP_FILTER_COEFF_6 0x07CA
553 #define AD9548_REG_PROFILE_7_D_LOOP_FILTER_COEFF_7 0x07CB
554 #define AD9548_REG_PROFILE_7_D_LOOP_FILTER_COEFF_8 0x07CC
555 #define AD9548_REG_PROFILE_7_D_LOOP_FILTER_COEFF_9 0x07CD
556 #define AD9548_REG_PROFILE_7_D_LOOP_FILTER_COEFF_10 0x07CE
557 #define AD9548_REG_PROFILE_7_D_LOOP_FILTER_COEFF_11 0x07DF
558 #define AD9548_REG_PROFILE_7_FREQ_MULTIPLICATION_0 0x07D0
559 #define AD9548_REG_PROFILE_7_FREQ_MULTIPLICATION_1 0x07D1
560 #define AD9548_REG_PROFILE_7_FREQ_MULTIPLICATION_2 0x07D2
561 #define AD9548_REG_PROFILE_7_FREQ_MULTIPLICATION_3 0x07D3
562 #define AD9548_REG_PROFILE_7_FREQ_MULTIPLICATION_4 0x07D4
563 #define AD9548_REG_PROFILE_7_FREQ_MULTIPLICATION_5 0x07D5
564 #define AD9548_REG_PROFILE_7_FREQ_MULTIPLICATION_6 0x07D6
565 #define AD9548_REG_PROFILE_7_FREQ_MULTIPLICATION_7 0x07D7
566 #define AD9548_REG_PROFILE_7_FREQ_MULTIPLICATION_8 0x07D8
567 #define AD9548_REG_PROFILE_7_FREQ_MULTIPLICATION_9 0x07D9
568 #define AD9548_REG_PROFILE_7_FREQ_MULTIPLICATION_10 0x07DA
569 #define AD9548_REG_PROFILE_7_FREQ_LOCK_DETECTORS_0 0x07DB
570 #define AD9548_REG_PROFILE_7_FREQ_LOCK_DETECTORS_1 0x07DC
571 #define AD9548_REG_PROFILE_7_FREQ_LOCK_DETECTORS_2 0x07DD
572 #define AD9548_REG_PROFILE_7_FREQ_LOCK_DETECTORS_3 0x07DE
573 #define AD9548_REG_PROFILE_7_FREQ_LOCK_DETECTORS_4 0x07DF
574 #define AD9548_REG_PROFILE_7_FREQ_LOCK_DETECTORS_5 0x07E0
575 #define AD9548_REG_PROFILE_7_FREQ_LOCK_DETECTORS_6 0x07E1
576 #define AD9548_REG_PROFILE_7_FREQ_LOCK_DETECTORS_7 0x07E2
577 #define AD9548_REG_PROFILE_7_FREQ_LOCK_DETECTORS_8 0x07E3
578
579 /* Operational controls */
580 #define AD9548_REG_GENERAL_POWER_DOWN 0x0A00
581 #define AD9548_REG_LOOP_MODE 0x0A01
582 #define AD9548_REG_CAL_SYNC 0x0A02
583 #define AD9548_REG_RESET_FUNC 0x0A03
584 #define AD9548_REG_IRQ_CLEARING_0 0x0A04
585 #define AD9548_REG_IRQ_CLEARING_1 0x0A05
586 #define AD9548_REG_IRQ_CLEARING_2 0x0A06
587 #define AD9548_REG_IRQ_CLEARING_3 0x0A07
588 #define AD9548_REG_IRQ_CLEARING_4 0x0A08
589 #define AD9548_REG_IRQ_CLEARING_5 0x0A09
590 #define AD9548_REG_IRQ_CLEARING_6 0x0A0A
591 #define AD9548_REG_IRQ_CLEARING_7 0x0A0B
592 #define AD9548_REG_INCREMENTAL_PHA_OFFSET 0x0A0C
593 #define AD9548_REG_REFERENCE_PROFILE_DETECT 0x0A0D
594 #define AD9548_REG_FORCE_VALIDATION_TIMEOUT 0x0A0E
595 #define AD9548_REG_REFERENCE_MONITOR_OVERRIDE 0x0A0F
596 #define AD9548_REG_REFERENCE_MONITOR_BYPASS 0x0A10
597
598 /* Status (read only; accessible during EEPROM transactions) */
599 #define AD9548_REG_EEPROM 0x0D00
600 #define AD9548_REG_SYSTEM_CLOCK 0x0D01
601 #define AD9548_REG_IRQ_MONITOR_0 0x0D02
602 #define AD9548_REG_IRQ_MONITOR_1 0x0D03
603 #define AD9548_REG_IRQ_MONITOR_2 0x0D04
604 #define AD9548_REG_IRQ_MONITOR_3 0x0D05
605 #define AD9548_REG_IRQ_MONITOR_4 0x0D06
606 #define AD9548_REG_IRQ_MONITOR_5 0x0D07
607 #define AD9548_REG_IRQ_MONITOR_6 0x0D08
608 #define AD9548_REG_IRQ_MONITOR_7 0x0D09
609 #define AD9548_REG_DLL_STATUS_0 0x0D0A
610 #define AD9548_REG_DLL_STATUS_1 0x0D0B
611 #define AD9548_REG_REF_A 0x0D0C
612 #define AD9548_REG_REF_AA 0x0D0D
613 #define AD9548_REG_REF_B 0x0D0E
614 #define AD9548_REG_REF_BB 0x0D0F
615 #define AD9548_REG_REF_C 0x0D10
616 #define AD9548_REG_REF_CC 0x0D11
617 #define AD9548_REG_REF_D 0x0D12
618 #define AD9548_REG_REF_DD 0x0D13
619 #define AD9548_REG_HOLDOVER_HISTORY_0 0x0D14
620 #define AD9548_REG_HOLDOVER_HISTORY_1 0x0D15
621 #define AD9548_REG_HOLDOVER_HISTORY_2 0x0D16
622 #define AD9548_REG_HOLDOVER_HISTORY_3 0x0D17
623 #define AD9548_REG_HOLDOVER_HISTORY_4 0x0D18
624 #define AD9548_REG_HOLDOVER_HISTORY_5 0x0D19
625
626 /* Nonvolatile memory (EEPROM) control */
627 #define AD9548_REG_WRITE_PROTECT 0x0E00
628 #define AD9548_REG_CONDITION 0x0E01
629 #define AD9548_REG_SAVE 0x0E02
630 #define AD9548_REG_LOAD 0x0E03
631
632 /* EEPROM storage sequence */
633 #define AD9548_REG_SYSTEM_CLOCK_0 0x0E10
634 #define AD9548_REG_SYSTEM_CLOCK_1 0x0E11
635 #define AD9548_REG_SYSTEM_CLOCK_2 0x0E12
636 #define AD9548_REG_IO_UPDATE_0 0x0E13
637 #define AD9548_REG_SYSCLK_CALIBRATE 0x0E14
638 #define AD9548_REG_GENERAL_0 0x0E15
639 #define AD9548_REG_GENERAL_1 0x0E16
640 #define AD9548_REG_GENERAL_2 0x0E17
641 #define AD9548_REG_DPLL_0 0x0E18
642 #define AD9548_REG_DPLL_1 0x0E19
643 #define AD9548_REG_DPLL_2 0x0E1A
644 #define AD9548_REG_CLOCK_DISTRIBUTION_0 0x0E1B
645 #define AD9548_REG_CLOCK_DISTRIBUTION_1 0x0E1C
646 #define AD9548_REG_CLOCK_DISTRIBUTION_2 0x0E1D
647 #define AD9548_REG_IO_UPDATE_1 0x0E1E
648 #define AD9548_REG_REFERENCE_INPUTS_0 0x0E1F
649 #define AD9548_REG_REFERENCE_INPUTS_1 0x0E20
650 #define AD9548_REG_REFERENCE_INPUTS_2 0x0E21
651 #define AD9548_REG_PROFILE_0_PROFILE_1_0 0x0E22
652 #define AD9548_REG_PROFILE_0_PROFILE_1_1 0x0E23
653 #define AD9548_REG_PROFILE_0_PROFILE_1_2 0x0E24
654 #define AD9548_REG_PROFILE_2_PROFILE_3_0 0x0E25
655 #define AD9548_REG_PROFILE_2_PROFILE_3_1 0x0E26
656 #define AD9548_REG_PROFILE_2_PROFILE_3_2 0x0E27
657 #define AD9548_REG_PROFILE_4_PROFILE_5_0 0x0E28
658 #define AD9548_REG_PROFILE_4_PROFILE_5_1 0x0E29
659 #define AD9548_REG_PROFILE_4_PROFILE_5_2 0x0E2A
660 #define AD9548_REG_PROFILE_6_PROFILE_7_0 0x0E2B
661 #define AD9548_REG_PROFILE_6_PROFILE_7_1 0x0E2C
662 #define AD9548_REG_PROFILE_6_PROFILE_7_2 0x0E2D
663 #define AD9548_REG_IO_UPDATE_2 0x0E2E
664 #define AD9548_REG_OPERATIONAL_CONTROLS_0 0x0E2F
665 #define AD9548_REG_OPERATIONAL_CONTROLS_1 0x0E30
666 #define AD9548_REG_OPERATIONAL_CONTROLS_2 0x0E31
667 #define AD9548_REG_IO_UPDATE_3 0x0E32
668 #define AD9548_REG_END_OF_DATA 0x0E33
669 #define AD9548_REG_SCRATH_PAD_AREA_0 0x0E34
670 #define AD9548_REG_SCRATH_PAD_AREA_1 0x0E35
671 #define AD9548_REG_SCRATH_PAD_AREA_2 0x0E36
672 #define AD9548_REG_SCRATH_PAD_AREA_3 0x0E37
673 #define AD9548_REG_SCRATH_PAD_AREA_4 0x0E38
674 #define AD9548_REG_SCRATH_PAD_AREA_5 0x0E39
675 #define AD9548_REG_SCRATH_PAD_AREA_6 0x0E3A
676 #define AD9548_REG_SCRATH_PAD_AREA_7 0x0E3B
677 #define AD9548_REG_SCRATH_PAD_AREA_8 0x0E3C
678 #define AD9548_REG_SCRATH_PAD_AREA_9 0x0E3D
679 #define AD9548_REG_SCRATH_PAD_AREA_10 0x0E3E
680 #define AD9548_REG_SCRATH_PAD_AREA_11 0x0E3F
681
682 /******************************************************************************/
683 /************************ Types Definitions ***********************************/
684 /******************************************************************************/
685 struct ad9548_reference_profile
686 {
687 uint8_t phase_lock_scale;
688 uint8_t promoted_priority;
689 uint8_t selection_priority;
690 uint8_t reference_period;
691 uint8_t nom_reference_period;
692 uint16_t inner_tolerance;
693 uint16_t outer_tolerance;
694 uint16_t validation_timer;
695 uint16_t redetect_timer;
696 uint16_t dpll_alpha0_linear;
697 uint16_t dpll_alpha1_exp;
698 uint16_t dpll_alpha2_exp;
699 uint16_t dpll_alpha3_exp;
700 uint16_t dpll_beta0_linear;
701 uint16_t dpll_beta1_exp;
702 uint16_t dpll_gamma0_linear;
703 uint16_t dpll_gamma1_exp;
704 uint16_t dpll_delta0_linear;
705 uint16_t dpll_delta1_exp;
706 uint32_t r_div;
707 uint32_t s_div;
708 uint32_t u_div;
709 uint32_t v_div;
710 uint16_t phase_lock_threshold;
711 uint16_t phase_lock_fill_rate;
712 uint16_t phase_lock_drain_rate;
713 uint16_t freq_lock_threshold;
714 uint16_t freq_lock_fill_rate;
715 uint16_t freq_lock_drain_rate;
716 };
717
718 struct ad9548_reference_spec
719 {
720 uint8_t ref_num;
721 uint32_t ref_freq;
722 uint8_t power_down_en;
723 uint8_t logic_family;
724 uint8_t manual_profile_en;
725 uint8_t manual_profile;
726 };
727
728 struct ad9548_channel_spec
729 {
730 uint32_t channel_num;
731 uint32_t channel_divider;
732 uint8_t output_dis;
733 uint8_t low_power_mode_en;
734 uint8_t low_power_sync_en;
735 uint8_t driver_mode;
736 uint8_t cmos_mode_phase_invert;
737 uint8_t polarity_invert_en;
738 uint8_t drive_strength;
739 uint8_t sync_ignore_en;
740 int8_t extended_name[16];
741 };
742
743 struct ad9548_platform_data
744 {
745 /* System clock settings */
746 uint8_t sys_clk_ext_loop_filter_en;
747 uint8_t sys_clk_charge_pump_manual_mode_en;
748 uint8_t sys_clk_pll_lock_detect_timer_dis;
749 uint8_t sys_clk_charge_pump_current;
750 uint8_t sys_clk_pll_lock_detect_timer;
751 uint8_t sys_clk_fedback_div;
752 uint8_t sys_clk_m_div;
753 uint8_t sys_clk_2x_mul_en;
754 uint8_t sys_clk_pll_en;
755 uint8_t sys_clk_source;
756 uint32_t sys_clk_period;
757 uint32_t sys_clk_stability;
758
759 /* DPLL Setting */
760 uint8_t dpll_tunning_word0;
761 uint8_t dpll_tunning_word1;
762 uint8_t dpll_tunning_word2;
763 uint8_t dpll_tunning_word3;
764 uint8_t dpll_tunning_word4;
765 uint8_t dpll_tunning_word5;
766 uint32_t dpll_pull_in_range_limit_low;
767 uint32_t dpll_pull_in_range_limit_high;
768 uint32_t dpll_dds_phase_offset;
769 uint32_t dpll_closed_loop_phase_lock_offset_low;
770 uint32_t dpll_closed_loop_phase_lock_offset_high;
771 uint32_t dpll_incremental_phase_lock_offset;
772 uint32_t dpll_phase_slew_limit;
773 uint32_t dpll_history_acc_timer;
774 uint16_t dpll_history_mode;
775 uint32_t dpll_out_freq;
776
777 /* Clock distribution synchronization */
778 uint8_t clock_distr_ext_resistor;
779 uint8_t clock_distr_high_freq_mode;
780 uint16_t clock_distr_sync_source;
781 uint16_t clock_distr_automatic_sync_mode;
782
783 /* General settings */
784 uint16_t watchdog_timer;
785 uint16_t aux_dac_full_scale_current;
786 uint8_t aux_dac_shutdown;
787 uint8_t ref_profile_sel_ssm_startup;
788
789 /* Output Channel Configuration */
790 int32_t num_channels;
791 struct ad9548_channel_spec *channels;
792
793 /* Reference inputs */
794 int32_t num_references;
795 struct ad9548_reference_spec *references;
796
797 /* Reference profiles */
798 int num_ref_profiles;
799 struct ad9548_reference_profile *ref_profiles;
800
801 int8_t name[32];
802 };
803
804 #define ARRAY_SIZE(ar) (sizeof(ar)/sizeof(ar[0]))
805
806 /******************************************************************************/
807 /************************ Functions Declarations ******************************/
808 /******************************************************************************/
809
810 /** Initializes the AD9548. Returns negative error code or 0 in case of success. */
811 int32_t ad9548_setup();
812 /** Resets the device. */
813 int32_t ad9548_reset();
814 /** Sets the output frequency for output channel 1.*/
815 int64_t ad9548_out_altvoltage0_frequency(int64_t Hz);
816 /** Sets the output frequency for output channel 2. */
817 int64_t ad9548_out_altvoltage1_frequency(int64_t Hz);
818 /** Sets the output frequency for output channel 2. */
819 int64_t ad9548_out_altvoltage2_frequency(int64_t Hz);
820 /** Sets the output frequency for output channel 3.*/
821 int64_t ad9548_out_altvoltage3_frequency(int64_t Hz);
822 /** Triggers the clock distribution synchronization functionality. */
823 int32_t ad9548_sync_dividers();
824 /** Triggers system clock calibration. */
825 int32_t ad9548_calibrate_sys_clk();
826 /** Reset internal hardware but retain programmed register values */
827 int32_t ad9548_reset_sans_reg_map(int32_t en);
828 /** Sets the SYS CLK power mode*/
829 int32_t ad9548_sys_clk_pwd(int32_t en);
830 /** Sets the reference power mode*/
831 int32_t ad9548_reference_pwd(int32_t en);
832 /** Sets the TDC power mode*/
833 int32_t ad9548_tdc_pwd(int32_t en);
834 /** Sets the DAC power mode*/
835 int32_t ad9548_dac_pwd(int32_t en);
836 /** Sets the distribution power mode*/
837 int32_t ad9548_dist_pwd(int32_t en);
838 /** Sets the full power mode*/
839 int32_t ad9548_full_pwd(int32_t en);
840 /** Returns the stability status of the SYS CLK */
841 int32_t ad9548_sys_clk_stable();
842 /** Returns the PLL lock status */
843 int32_t ad9548_sys_clk_pll_locked();
844 /** Returns the DPLL phase lock status */
845 int32_t ad9548_dpll_phase_locked();
846 /** Returns the DPLL frequency lock status */
847 int32_t ad9548_dpll_frequency_locked();
848 /** Returns the REFA state */
849 int32_t ad9548_refa_state();
850 /** Returns the REFAA state */
851 int32_t ad9548_refaa_state();
852 /** Returns the REFB state */
853 int32_t ad9548_refb_state();
854 /** Returns the REFBB state */
855 int32_t ad9548_refbb_state();
856 /** Returns the REFC state */
857 int32_t ad9548_refc_state();
858 /** Returns the REFCC state */
859 int32_t ad9548_refcc_state();
860 /** Returns the REFD state */
861 int32_t ad9548_refd_state();
862 /** Returns the REFDD state */
863 int32_t ad9548_refdd_state();
864
865 #endif // __AD9548_H__