Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ad9523.h
Go to the documentation of this file.
1 /*
2  * AD9523 SPI Low Jitter Clock Generator
3  *
4  * Copyright 2012 Analog Devices Inc.
5  *
6  * Licensed under the GPL-2.
7  */
8 
9 #ifndef IIO_FREQUENCY_AD9523_H_
10 #define IIO_FREQUENCY_AD9523_H_
11 
28 };
29 
36 };
37 
55  unsigned channel_num;
59  /* CH0..CH3 VCXO, CH4..CH9 VCO2 */
61  bool output_dis;
63  unsigned char divider_phase;
64  unsigned short channel_divider;
65  char extended_name[16];
66 };
67 
75 };
76 
82 };
83 
93 };
94 
100  _CPOLE1_24_PF, /* place holder */
104 };
105 
144  unsigned long vcxo_freq;
145 
146  /* Differential/ Single-Ended Input Configuration */
151 
152  /*
153  * Valid if differential input disabled
154  * if false defaults to pos input
155  */
160 
161  /* PLL1 Setting */
162  unsigned short refa_r_div;
163  unsigned short refb_r_div;
164  unsigned short pll1_feedback_div;
169 
170  /* Reference */
172 
173  /* PLL2 Setting */
175  unsigned char pll2_ndiv_a_cnt;
176  unsigned char pll2_ndiv_b_cnt;
178  unsigned char pll2_r2_div;
179  unsigned char pll2_vco_diff_m1; /* 3..5 */
180  unsigned char pll2_vco_diff_m2; /* 3..5 */
181 
182  /* Loop Filter PLL2 */
187 
188  /* Output Channel Configuration */
191 
193 };
194 
195 #endif /* IIO_FREQUENCY_AD9523_H_ */