2 // Copyright 2009 Free Software Foundation, Inc.
4 // This file is part of GNU Radio
6 // GNU Radio is free software; you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation; either asversion 3, or (at your option)
11 // GNU Radio is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
16 // You should have received a copy of the GNU General Public License
17 // along with GNU Radio; see the file COPYING. If not, write to
18 // the Free Software Foundation, Inc., 51 Franklin Street,
19 // Boston, MA 02110-1301, USA.
21 #ifndef ADF4350_REGS_H
22 #define ADF4350_REGS_H
24 #include <usrp/db_base.h>
32 adf4350_regs(adf4350* _adf4350);
37 uint32_t _reg_shift(uint32_t data, uint32_t shift);
38 void _load_register(uint8_t addr);
45 static const uint16_t s_phase;
48 static const uint8_t s_low_noise_and_low_spur_modes;
49 static const uint8_t s_muxout;
50 static const uint8_t s_reference_doubler;
51 static const uint8_t s_rdiv2;
52 uint16_t d_10_bit_r_counter;
53 static const uint8_t s_double_buff;
54 static const uint8_t s_charge_pump_setting;
55 static const uint8_t s_ldf;
56 static const uint8_t s_ldp;
57 static const uint8_t s_pd_polarity;
58 static const uint8_t s_power_down;
59 static const uint8_t s_cp_three_state;
60 static const uint8_t s_counter_reset;
62 static const uint8_t s_csr;
63 static const uint8_t s_clk_div_mode;
64 static const uint16_t s_12_bit_clock_divider_value;
66 static const uint8_t s_feedback_select;
67 uint8_t d_divider_select;
68 uint8_t d_8_bit_band_select_clock_divider_value;
69 static const uint8_t s_vco_power_down;
70 static const uint8_t s_mtld;
71 static const uint8_t s_aux_output_select;
72 static const uint8_t s_aux_output_enable;
73 static const uint8_t s_aux_output_power;
74 static const uint8_t s_rf_output_enable;
75 static const uint8_t s_output_power;
77 static const uint8_t s_ld_pin_mode;
80 #endif /* ADF4350_REGS_H */