3
* Copyright 2008 Free Software Foundation, Inc.
5
* This program is free software: you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation, either version 3 of the License, or
8
* (at your option) any later version.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program. If not, see <http://www.gnu.org/licenses/>.
19
#ifndef INCLUDED_CLOCKS_H
20
#define INCLUDED_CLOCKS_H
23
* Routines to configure our multitude of clocks
27
#include <usrp2_mimo_config.h>
31
* One time call to initialize all clocks to a reasonable state. We
32
* come out of here using our free running 100MHz oscilator and not
33
* providing a clock to the MIMO connector (CMC_WE_DONT_LOCK)
35
void clocks_init(void);
39
* \brief MIMO clock configuration.
41
* Configure our master clock source, and whether or not we drive a
42
* clock onto the mimo connector. See MC_flags in usrp2_mimo_config.h.
44
void clocks_mimo_config(int flags);
47
* \brief Lock Detect -- Return True if our PLL is locked
49
bool clocks_lock_detect();
52
* \brief Enable or disable test clock (extra clock signal)
54
void clocks_enable_test_clk(bool enable, int divisor);
57
* \brief Enable or disable fpga clock. Disabling would wedge and require a power cycle.
59
void clocks_enable_fpga_clk(bool enable, int divisor);
62
* \brief Enable or disable clock output sent to MIMO connector
64
void clocks_enable_clkexp_out(bool enable, int divisor);
67
* \brief Enable or disable ethernet phyclk, should always be disabled
69
void clocks_enable_eth_phyclk(bool enable, int divisor);
72
* \brief Enable or disable clock to DAC
74
void clocks_enable_dac_clk(bool enable, int divisor);
77
* \brief Enable or disable clock to ADC
79
void clocks_enable_adc_clk(bool enable, int divisor);
82
* \brief Enable or disable clock to Rx daughterboard
84
void clocks_enable_rx_dboard(bool enable, int divisor);
88
* \brief Enable or disable clock to Tx daughterboard
90
void clocks_enable_tx_dboard(bool enable, int divisor);
93
#endif /* INCLUDED_CLOCKS_H */