diff options
author | Ashish Chaudhari <ashish@ettus.com> | 2014-08-12 18:28:36 -0700 |
---|---|---|
committer | Ashish Chaudhari <ashish@ettus.com> | 2014-08-12 18:28:36 -0700 |
commit | 675350a1d69bafaf76e3723707b23ec1d2830e53 (patch) | |
tree | b16bb60d6a7eaccdde64c04fc86491be81f1438f /host/lib/usrp/common/ad9361_client.cpp | |
parent | 145f1d7cf7aa94f67c7ba349e29daff9a7d85d54 (diff) | |
download | uhd-675350a1d69bafaf76e3723707b23ec1d2830e53.tar.gz uhd-675350a1d69bafaf76e3723707b23ec1d2830e53.tar.bz2 uhd-675350a1d69bafaf76e3723707b23ec1d2830e53.zip |
b200, ad9361: Cleanup up AD9361 driver
- Removed transaction interface
- Made the driver a C++ class
Diffstat (limited to 'host/lib/usrp/common/ad9361_client.cpp')
-rw-r--r-- | host/lib/usrp/common/ad9361_client.cpp | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/host/lib/usrp/common/ad9361_client.cpp b/host/lib/usrp/common/ad9361_client.cpp deleted file mode 100644 index c0cc61585..000000000 --- a/host/lib/usrp/common/ad9361_client.cpp +++ /dev/null @@ -1,56 +0,0 @@ -// -// Copyright 2014 Ettus Research LLC -// - -#include <ad9361_client.h> - -double ad9361_client_get_band_edge(ad9361_product_t product, frequency_band_t band) -{ - switch (product) { - default: - switch (band) { - case AD9361_RX_BAND0: return 2.2e9; - case AD9361_RX_BAND1: return 4.0e9; - case AD9361_TX_BAND0: return 2.5e9; - default: return 0; - } - } -} - -clocking_mode_t ad9361_client_get_clocking_mode(ad9361_product_t product) -{ - switch (product) { - case AD9361_B200: - return AD9361_XTAL_N_CLK_PATH; - default: - return AD9361_XTAL_N_CLK_PATH; - } -} - -digital_interface_mode_t ad9361_client_get_digital_interface_mode(ad9361_product_t product) -{ - switch (product) { - case AD9361_B200: return AD9361_DDR_FDD_LVCMOS; - default: return AD9361_DDR_FDD_LVCMOS; - } -} - -digital_interface_delays_t ad9361_client_get_digital_interface_timing(ad9361_product_t product) -{ - digital_interface_delays_t delays; - switch (product) { - case AD9361_B200: - delays.rx_clk_delay = 0; - delays.rx_data_delay = 0xF; - delays.tx_clk_delay = 0; - delays.tx_data_delay = 0xF; - break; - default: - delays.rx_clk_delay = 0; - delays.rx_data_delay = 0; - delays.tx_clk_delay = 0; - delays.tx_data_delay = 0; - break; - } - return delays; -} |