Debian Codegraph @

libs/fsynth.hpp

raw symbols SCIP
1 /***********************************************************************
2 * The header extends adf4351_regs_t to work and initialize
3 * the Per Vices Phi transciever version TP3.
4 *
5 * (c) 2013 Per Vices Corporation
6 * See LICENSE.txt for license and copyright information.
7 **********************************************************************/
8
9 #include "adf4351_regs.hpp"
10
11 class fsynth_t : public adf4351_regs_t {
12 public:
13 //This is the initialization routine specific to revision TP3.
14 //Pfd = 31.25MHz (as per header file), 156.25MHz reference, DIV=5.
15 fsynth_t() {
16 //Initialize to 555.000MHz
17 frac_12_bit = 1;
18 int_16_bit = 71;
19 mod_12_bit = 26;
20 phase_12_bit = 1;
21 prescaler = PRESCALER_4_5;
22 phase_adj = PHASE_ADJ_OFF;
23 counter_reset = COUNTER_RESET_DISABLED;
24 cp_three_state = CP_THREE_STATE_DISABLED;
25 power_down = POWER_DOWN_DISABLED;
26 pd_polarity = PD_POLARITY_POSITIVE;
27 ldp = LDP_10NS;
28 ldf = LDF_FRAC_N; //If in Int-N mode, set to LDF_INT_N
29 charge_pump_current = CHARGE_PUMP_CURRENT_1_88MA;
30 double_buffer = DOUBLE_BUFFER_DISABLED;
31 r_counter_10_bit = 2;
32 reference_divide_by_2 = REFERENCE_DIVIDE_BY_2_ENABLED;
33 reference_doubler = REFERENCE_DOUBLER_DISABLED;
34 muxout = MUXOUT_ANALOG_LD;
35 low_noise_and_spur = LOW_NOISE_AND_SPUR_LOW_SPUR;
36 clock_divider_12_bit = 75; // Nominal lock time for ADF4351 is 250us in normal mode (125us in fast lock mode)
37 // Setting clock divider per tsync > worst case locktime (275us),
38 // tsync = 300 = Clk_div_value * MOD * t_pfd
39 clock_div_mode = CLOCK_DIV_MODE_CLOCK_DIVIDER_OFF;
40 cycle_slip_reduction = CYCLE_SLIP_REDUCTION_DISABLED;
41 charge_cancel = CHARGE_CANCEL_DISABLED; //Can be used if in Int-N. Not recommended for Frac-N.
42 antibacklash_pulse = ANTIBACKLASH_PULSE_6NS; //Can be 3NS (Reduced Spurs + Phase noise) if in Int-N. Not recommended for Frac-N.
43 band_sel_clk_mode = BAND_SEL_CLK_MODE_LOW; //HIGH is suitable for high PFD frequencies + fast lock (only ADF4351) LOW has 50 compatability.
44 output_power = OUTPUT_POWER_5DBM;
45 rf_output_enable = RF_OUTPUT_ENABLE_ENABLED;
46 aux_output_power = AUX_OUTPUT_POWER_M4DBM;
47 aux_output_enable = AUX_OUTPUT_ENABLE_DISABLED;
48 aux_output_select = AUX_OUTPUT_SELECT_DIVIDED;
49 mute_till_lock_detect = MUTE_TILL_LOCK_DETECT_MUTE_DISABLED;
50 vco_power_down = VCO_POWER_DOWN_VCO_POWERED_UP;
51 band_select_clock_div = 250;
52 rf_divider_select = RF_DIVIDER_SELECT_DIV4;
53 feedback_select = FEEDBACK_SELECT_FUNDAMENTAL; //DIVIDED for higher output power.
54 ld_pin_mode = LD_PIN_MODE_DLD;
55 // Nothing.
56 };
57 };