diff options
author | Martin Braun <martin.braun@ettus.com> | 2019-07-03 20:15:35 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2019-11-26 12:16:25 -0800 |
commit | c256b9df6502536c2e451e690f1ad5962c664d1a (patch) | |
tree | a83ad13e6f5978bbe14bb3ecf8294ba1e3d28db4 /host/lib/usrp/dboard/magnesium/magnesium_constants.hpp | |
parent | 9a8435ed998fc5c65257f4c55768750b227ab19e (diff) | |
download | uhd-c256b9df6502536c2e451e690f1ad5962c664d1a.tar.gz uhd-c256b9df6502536c2e451e690f1ad5962c664d1a.tar.bz2 uhd-c256b9df6502536c2e451e690f1ad5962c664d1a.zip |
x300/mpmd: Port all RFNoC devices to the new RFNoC framework
Co-Authored-By: Alex Williams <alex.williams@ni.com>
Co-Authored-By: Sugandha Gupta <sugandha.gupta@ettus.com>
Co-Authored-By: Brent Stapleton <brent.stapleton@ettus.com>
Co-Authored-By: Ciro Nishiguchi <ciro.nishiguchi@ni.com>
Diffstat (limited to 'host/lib/usrp/dboard/magnesium/magnesium_constants.hpp')
-rw-r--r-- | host/lib/usrp/dboard/magnesium/magnesium_constants.hpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/host/lib/usrp/dboard/magnesium/magnesium_constants.hpp b/host/lib/usrp/dboard/magnesium/magnesium_constants.hpp index 9b3bdf800..7d98bca91 100644 --- a/host/lib/usrp/dboard/magnesium/magnesium_constants.hpp +++ b/host/lib/usrp/dboard/magnesium/magnesium_constants.hpp @@ -69,6 +69,13 @@ static constexpr char MAGNESIUM_GAIN2[] = "dsa"; //! Amplifier gain static constexpr char MAGNESIUM_AMP[] = "amp"; +static constexpr char MAGNESIUM_FE_NAME[] = "Magnesium"; + +static constexpr char MAGNESIUM_DEFAULT_RX_ANTENNA[] = "RX2"; +static constexpr char MAGNESIUM_DEFAULT_TX_ANTENNA[] = "TX/RX"; + +static constexpr char MAGNESIUM_FPGPIO_BANK[] = "FP0"; + // Note: MAGNESIUM_NUM_CHANS is independent of the number of chans per // RFNoC block. TODO: When we go to one radio per dboard, this comment can // be deleted. @@ -79,4 +86,20 @@ static constexpr double MAGNESIUM_TX_IF_FREQ = 1.95e9; //! Max time we allow for a call to set_freq() to take static constexpr size_t MAGNESIUM_TUNE_TIMEOUT = 15000; // milliseconds +//! Magnesium gain profile options +static const std::vector<std::string> MAGNESIUM_GP_OPTIONS = {"manual", + "default", + "default_rf_filter_bypass_always_on", + "default_rf_filter_bypass_always_off"}; + +namespace n310_regs { + +constexpr uint32_t DB_GPIO_BASE = 0x80000; // FIXME +constexpr uint32_t DB_GPIO_RB = 0x80000; // FIXME +constexpr uint32_t DB_GPIO_OFFSET = 0x100; // FIXME +constexpr uint32_t FP_GPIO = 0x80000; // FIXME +constexpr uint32_t RB_FP_GPIO = 0x80000; // FIXME + +} + #endif /* INCLUDED_LIBUHD_MAGNESIUM_CONSTANTS_HPP */ |