2 * Copyright 2008,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 version 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.
26 #include <usrp/db_flexrf_mimo.h>
27 #include <fpga_regs_standard.h>
28 #include <fpga_regs_common.h>
29 #include <usrp/usrp_prims.h>
30 #include <usrp_spi_defs.h>
33 db_flexrf_2400_tx_mimo_a::db_flexrf_2400_tx_mimo_a(usrp_basic_sptr usrp, int which)
34 : db_flexrf_2400_tx(usrp, which)
41 db_flexrf_2400_tx_mimo_a::_refclk_divisor()
46 db_flexrf_2400_rx_mimo_a::db_flexrf_2400_rx_mimo_a(usrp_basic_sptr usrp, int which)
47 : db_flexrf_2400_rx(usrp, which)
54 db_flexrf_2400_rx_mimo_a::_refclk_divisor()
59 db_flexrf_2400_tx_mimo_b::db_flexrf_2400_tx_mimo_b(usrp_basic_sptr usrp, int which)
60 : db_flexrf_2400_tx(usrp, which)
66 db_flexrf_2400_tx_mimo_b::_refclk_divisor()
71 db_flexrf_2400_rx_mimo_b::db_flexrf_2400_rx_mimo_b(usrp_basic_sptr usrp, int which)
72 : db_flexrf_2400_rx(usrp, which)
78 db_flexrf_2400_rx_mimo_b::_refclk_divisor()
83 db_flexrf_1800_tx_mimo_a::db_flexrf_1800_tx_mimo_a(usrp_basic_sptr usrp, int which)
84 : db_flexrf_1800_tx(usrp, which)
91 db_flexrf_1800_tx_mimo_a::_refclk_divisor()
96 db_flexrf_1800_rx_mimo_a::db_flexrf_1800_rx_mimo_a(usrp_basic_sptr usrp, int which)
97 : db_flexrf_1800_rx(usrp, which)
104 db_flexrf_1800_rx_mimo_a::_refclk_divisor()
109 db_flexrf_1800_tx_mimo_b::db_flexrf_1800_tx_mimo_b(usrp_basic_sptr usrp, int which)
110 : db_flexrf_1800_tx(usrp, which)
116 db_flexrf_1800_tx_mimo_b::_refclk_divisor()
121 db_flexrf_1800_rx_mimo_b::db_flexrf_1800_rx_mimo_b(usrp_basic_sptr usrp, int which)
122 : db_flexrf_1800_rx(usrp, which)
128 db_flexrf_1800_rx_mimo_b::_refclk_divisor()
133 db_flexrf_1200_tx_mimo_a::db_flexrf_1200_tx_mimo_a(usrp_basic_sptr usrp, int which)
134 : db_flexrf_1200_tx(usrp, which)
136 _enable_refclk(true);
141 db_flexrf_1200_tx_mimo_a::_refclk_divisor()
146 db_flexrf_1200_rx_mimo_a::db_flexrf_1200_rx_mimo_a(usrp_basic_sptr usrp, int which)
147 : db_flexrf_1200_rx(usrp, which)
149 _enable_refclk(true);
154 db_flexrf_1200_rx_mimo_a::_refclk_divisor()
159 db_flexrf_1200_tx_mimo_b::db_flexrf_1200_tx_mimo_b(usrp_basic_sptr usrp, int which)
160 : db_flexrf_1200_tx(usrp, which)
166 db_flexrf_1200_tx_mimo_b::_refclk_divisor()
171 db_flexrf_1200_rx_mimo_b::db_flexrf_1200_rx_mimo_b(usrp_basic_sptr usrp, int which)
172 : db_flexrf_1200_rx(usrp, which)
178 db_flexrf_1200_rx_mimo_b::_refclk_divisor()
183 db_flexrf_900_tx_mimo_a::db_flexrf_900_tx_mimo_a(usrp_basic_sptr usrp, int which)
184 : db_flexrf_900_tx(usrp, which)
186 _enable_refclk(true);
191 db_flexrf_900_tx_mimo_a::_refclk_divisor()
196 db_flexrf_900_rx_mimo_a::db_flexrf_900_rx_mimo_a(usrp_basic_sptr usrp, int which)
197 : db_flexrf_900_rx(usrp, which)
199 _enable_refclk(true);
204 db_flexrf_900_rx_mimo_a::_refclk_divisor()
209 db_flexrf_900_tx_mimo_b::db_flexrf_900_tx_mimo_b(usrp_basic_sptr usrp, int which)
210 : db_flexrf_900_tx(usrp, which)
216 db_flexrf_900_tx_mimo_b::_refclk_divisor()
221 db_flexrf_900_rx_mimo_b::db_flexrf_900_rx_mimo_b(usrp_basic_sptr usrp, int which)
222 : db_flexrf_900_rx(usrp, which)
227 int db_flexrf_900_rx_mimo_b::_refclk_divisor()
232 db_flexrf_400_tx_mimo_a::db_flexrf_400_tx_mimo_a(usrp_basic_sptr usrp, int which)
233 : db_flexrf_400_tx(usrp, which)
235 _enable_refclk(true);
240 db_flexrf_400_tx_mimo_a::_refclk_divisor()
245 db_flexrf_400_rx_mimo_a::db_flexrf_400_rx_mimo_a(usrp_basic_sptr usrp, int which)
246 : db_flexrf_400_rx(usrp, which)
248 _enable_refclk(true);
253 db_flexrf_400_rx_mimo_a::_refclk_divisor()
258 db_flexrf_400_tx_mimo_b::db_flexrf_400_tx_mimo_b(usrp_basic_sptr usrp, int which)
259 : db_flexrf_400_tx(usrp, which)
265 db_flexrf_400_tx_mimo_b::_refclk_divisor()
270 db_flexrf_400_rx_mimo_b::db_flexrf_400_rx_mimo_b(usrp_basic_sptr usrp, int which)
271 : db_flexrf_400_rx(usrp, which)
277 db_flexrf_400_rx_mimo_b::_refclk_divisor()