diff options
author | Brent Stapleton <brent.stapleton@ettus.com> | 2018-04-17 19:33:53 -0700 |
---|---|---|
committer | Brent Stapleton <bstapleton@g.hmc.edu> | 2018-07-18 15:37:27 -0700 |
commit | 7d28d9140e2c57db36b37d60d9ce4bff86357bac (patch) | |
tree | b775d13d8b0386bea39adaf279511e24c51f35f6 /host/lib/usrp/dboard/neon/neon_constants.hpp | |
parent | 300a5e3f6e5e845b4b8d093222e1c51ca4640f79 (diff) | |
download | uhd-7d28d9140e2c57db36b37d60d9ce4bff86357bac.tar.gz uhd-7d28d9140e2c57db36b37d60d9ce4bff86357bac.tar.bz2 uhd-7d28d9140e2c57db36b37d60d9ce4bff86357bac.zip |
uhd: initial commit of UHD support for E320
Co-authored-by: Sugandha Gupta <sugandha.gupta@ettus.com>
Diffstat (limited to 'host/lib/usrp/dboard/neon/neon_constants.hpp')
-rw-r--r-- | host/lib/usrp/dboard/neon/neon_constants.hpp | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/host/lib/usrp/dboard/neon/neon_constants.hpp b/host/lib/usrp/dboard/neon/neon_constants.hpp new file mode 100644 index 000000000..dc560ca93 --- /dev/null +++ b/host/lib/usrp/dboard/neon/neon_constants.hpp @@ -0,0 +1,51 @@ +// +// Copyright 2018 Ettus Research, a National Instruments Company +// +// SPDX-License-Identifier: GPL-3.0-or-later +// + +#ifndef INCLUDED_LIBUHD_NEON_CONSTANTS_HPP +#define INCLUDED_LIBUHD_NEON_CONSTANTS_HPP + +#include <vector> +#include <string> +#include <cstddef> + +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_MIN_FREQ = 70.0e6; // Hz +static constexpr double AD9361_MAX_FREQ = 6.0e9; // Hz + +static constexpr double NEON_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 NEON_DEFAULT_AUTO_DC_OFFSET = true; +static constexpr bool NEON_DEFAULT_AUTO_IQ_BALANCE = true; +static constexpr bool NEON_DEFAULT_AGC_ENABLE = false; + +static constexpr double NEON_DEFAULT_GAIN = 0.0; +static constexpr double NEON_DEFAULT_FREQ = 2.4e9; // Hz +static constexpr double NEON_DEFAULT_BANDWIDTH = 40e6; // Hz +static constexpr char NEON_DEFAULT_RX_ANTENNA[] = "RX2"; +static constexpr char NEON_DEFAULT_TX_ANTENNA[] = "TX/RX"; + +static const std::vector<std::string> NEON_RX_ANTENNAS = { + "TX/RX", "RX2" +}; + +static constexpr size_t NEON_NUM_CHANS = 2; + +#endif /* INCLUDED_LIBUHD_NEON_CONSTANTS_HPP */ |