Clean build
[debian/gnuradio] / usrp / host / include / usrp / db_wbxng_adf4350_regs.h
1 /*
2  * Copyright 2009 Ettus Research LLC
3  */
4
5 #ifndef ADF4350_REGS_H
6 #define ADF4350_REGS_H
7
8 #include <usrp/db_wbxng_adf4350.h>
9 #include <usrp/db_base.h>
10 #include <stdint.h>
11
12 class adf4350;
13
14 class adf4350_regs
15 {
16 public:
17     adf4350_regs(adf4350* _adf4350);
18     ~adf4350_regs();
19
20     adf4350* d_adf4350;
21
22     uint32_t _reg_shift(uint32_t data, uint32_t shift);
23     void _load_register(uint8_t addr);
24
25     /* reg 0 */
26     uint16_t _int;
27     uint16_t _frac;
28     /* reg 1 */
29     static uint8_t _prescaler;
30     static uint16_t _phase;
31     uint16_t _mod;
32     /* reg 2 */
33     static uint8_t _low_noise_and_low_spur_modes;
34     static uint8_t _muxout;
35     static uint8_t _reference_doubler;
36     static uint8_t _rdiv2;
37     uint16_t _10_bit_r_counter;
38     static uint8_t _double_buff;
39     static uint8_t _charge_pump_setting;
40     static uint8_t _ldf;
41     static uint8_t _ldp;
42     static uint8_t _pd_polarity;
43     static uint8_t _power_down;
44     static uint8_t _cp_three_state;
45     static uint8_t _counter_reset;
46     /* reg 3 */
47     static uint8_t _csr;
48     static uint8_t _clk_div_mode;
49     static uint16_t _12_bit_clock_divider_value;
50     /* reg 4 */
51     static uint8_t _feedback_select;
52     uint8_t _divider_select;
53     uint8_t _8_bit_band_select_clock_divider_value;
54     static uint8_t _vco_power_down;
55     static uint8_t _mtld;
56     static uint8_t _aux_output_select;
57     static uint8_t _aux_output_enable;
58     static uint8_t _aux_output_power;
59     static uint8_t _rf_output_enable;
60     static uint8_t _output_power;
61     /* reg 5 */
62     static uint8_t _ld_pin_mode;
63 };
64
65 #endif /* ADF4350_REGS_H */