aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/dboard/e3xx/e3xx_constants.hpp
diff options
context:
space:
mode:
authorSugandha Gupta <sugandha.gupta@ettus.com>2019-01-25 11:34:47 -0800
committerBrent Stapleton <brent.stapleton@ettus.com>2019-05-01 15:17:23 -0700
commit178b35569b1a25180a80a23b945b10b04c9f10f5 (patch)
tree3adb6f78ebd148867a50526c60fe7bf9694a4a72 /host/lib/usrp/dboard/e3xx/e3xx_constants.hpp
parent8a400f6a30942c9d6d3596f6989720eb4cff058b (diff)
downloaduhd-178b35569b1a25180a80a23b945b10b04c9f10f5.tar.gz
uhd-178b35569b1a25180a80a23b945b10b04c9f10f5.tar.bz2
uhd-178b35569b1a25180a80a23b945b10b04c9f10f5.zip
e310/e320: Move E310 to MPM architecture and refactor
- Turns the E310 into an MPM device (like N3xx, E320) - Factor out common code between E320 and E310, maximize sharing between the two devices - Remove all pre-MPM E310 code that is no longer needed - Modify MPM to remove all existing overlays before applying new ones (this is necessary to enable idle image mode for E310) Co-authored-by: Virendra Kakade <virendra.kakade@ni.com> Signed-off-by: Virendra Kakade <virendra.kakade@ni.com>
Diffstat (limited to 'host/lib/usrp/dboard/e3xx/e3xx_constants.hpp')
-rw-r--r--host/lib/usrp/dboard/e3xx/e3xx_constants.hpp56
1 files changed, 56 insertions, 0 deletions
diff --git a/host/lib/usrp/dboard/e3xx/e3xx_constants.hpp b/host/lib/usrp/dboard/e3xx/e3xx_constants.hpp
new file mode 100644
index 000000000..53f64d837
--- /dev/null
+++ b/host/lib/usrp/dboard/e3xx/e3xx_constants.hpp
@@ -0,0 +1,56 @@
+//
+// Copyright 2018 Ettus Research, a National Instruments Company
+//
+// SPDX-License-Identifier: GPL-3.0-or-later
+//
+
+#ifndef INCLUDED_LIBUHD_E3XX_CONSTANTS_HPP
+#define INCLUDED_LIBUHD_E3XX_CONSTANTS_HPP
+
+#include <cstddef>
+#include <string>
+#include <vector>
+
+static constexpr size_t FPGPIO_MASTER_RADIO = 0;
+static constexpr size_t TOTAL_RADIO_PORTS = 2;
+static constexpr double AD9361_RX_MIN_BANDWIDTH = 20.0e6; // HZ
+static constexpr double AD9361_RX_MAX_BANDWIDTH = 40.0e6; // HZ
+
+static constexpr double AD9361_TX_MIN_BANDWIDTH = 20.0e6; // HZ
+static constexpr double AD9361_TX_MAX_BANDWIDTH = 40.0e6; // HZ
+
+static constexpr double AD9361_TX_MIN_FREQ = 47.0e6; // Hz
+static constexpr double AD9361_TX_MAX_FREQ = 6.0e9; // Hz
+
+static constexpr double AD9361_RX_MIN_FREQ = 70.0e6; // Hz
+static constexpr double AD9361_RX_MAX_FREQ = 6.0e9; // Hz
+
+static constexpr double E3XX_RADIO_RATE = 16e6; // Hz
+
+static constexpr double AD9361_MIN_RX_GAIN = 0.0; // dB
+static constexpr double AD9361_MAX_RX_GAIN = 76; // dB
+static constexpr double AD9361_RX_GAIN_STEP = 1.0; // dB
+static constexpr double AD9361_MIN_TX_GAIN = 0.0; // dB
+static constexpr double AD9361_MAX_TX_GAIN = 89.75; // dB
+static constexpr double AD9361_TX_GAIN_STEP = 0.25; // dB
+
+static constexpr bool E3XX_DEFAULT_AUTO_DC_OFFSET = true;
+static constexpr bool E3XX_DEFAULT_AUTO_IQ_BALANCE = true;
+static constexpr bool E3XX_DEFAULT_AGC_ENABLE = false;
+
+static constexpr double E3XX_DEFAULT_GAIN = 0.0;
+static constexpr double E3XX_DEFAULT_FREQ = 2.4e9; // Hz
+static constexpr double E3XX_DEFAULT_BANDWIDTH = 40e6; // Hz
+static constexpr char E3XX_DEFAULT_RX_ANTENNA[] = "RX2";
+static constexpr char E3XX_DEFAULT_TX_ANTENNA[] = "TX/RX";
+
+static const std::vector<std::string> E3XX_RX_ANTENNAS = {"RX2", "TX/RX"};
+
+static constexpr size_t E3XX_NUM_CHANS = 2;
+
+static constexpr char TIMING_MODE_2R2T[] = "2R2T";
+static constexpr char TIMING_MODE_1R1T[] = "1R1T";
+static constexpr char MIMO[] = "MIMO"; // 2R2T
+static constexpr char SISO_TX1[] = "SISO_TX1"; // 1R1T
+static constexpr char SISO_TX0[] = "SISO_TX0"; // 1R1T
+#endif /* INCLUDED_LIBUHD_E3XX_CONSTANTS_HPP */