diff options
Diffstat (limited to 'host/lib/usrp/dboard/rhodium/rhodium_constants.hpp')
-rw-r--r-- | host/lib/usrp/dboard/rhodium/rhodium_constants.hpp | 40 |
1 files changed, 36 insertions, 4 deletions
diff --git a/host/lib/usrp/dboard/rhodium/rhodium_constants.hpp b/host/lib/usrp/dboard/rhodium/rhodium_constants.hpp index c52a73bca..69e6bf676 100644 --- a/host/lib/usrp/dboard/rhodium/rhodium_constants.hpp +++ b/host/lib/usrp/dboard/rhodium/rhodium_constants.hpp @@ -48,6 +48,8 @@ static constexpr double LO_MIN_POWER = 0.0; static constexpr double LO_MAX_POWER = 63.0; static constexpr double LO_POWER_STEP = 1.0; +static constexpr double RHODIUM_DEFAULT_BANDWIDTH = 250e6; // Hz + static const std::vector<std::string> RHODIUM_RX_ANTENNAS = { "TX/RX", "RX2", "CAL", "TERM" }; @@ -57,10 +59,15 @@ static const std::vector<std::string> RHODIUM_TX_ANTENNAS = { }; // These names are taken from radio_rhodium.xml -static constexpr char SPUR_DODGING_ARG_NAME[] = "spur_dodging"; -static constexpr char SPUR_DODGING_THRESHOLD_ARG_NAME[] = "spur_dodging_threshold"; -static constexpr char HIGHBAND_SPUR_REDUCTION_ARG_NAME[] = "highband_spur_reduction"; +static constexpr char SPUR_DODGING_PROP_NAME[] = "spur_dodging"; +static constexpr char SPUR_DODGING_THRESHOLD_PROP_NAME[] = "spur_dodging_threshold"; +static constexpr char HIGHBAND_SPUR_REDUCTION_PROP_NAME[] = "highband_spur_reduction"; +static constexpr char RHODIUM_DEFAULT_SPUR_DOGING_MODE[] = "disabled"; +static constexpr double RHODIUM_DEFAULT_SPUR_DOGING_THRESHOLD = 2e6; +static constexpr char RHODIUM_DEFAULT_HB_SPUR_REDUCTION_MODE[] = "disabled"; + +static constexpr char RHODIUM_FPGPIO_BANK[] = "FP0"; static constexpr uint32_t RHODIUM_GPIO_MASK = 0x1F; static constexpr uint32_t SW10_GPIO_MASK = 0x3; static constexpr uint32_t LED_GPIO_MASK = 0x1C; @@ -85,8 +92,9 @@ static constexpr char RHODIUM_LO_GAIN[] = "dsa"; //! LO output power static constexpr char RHODIUM_LO_POWER[] = "lo"; -static constexpr int NUM_LO_OUTPUT_PORT_NAMES = 4; +static constexpr char RHODIUM_FE_NAME[] = "Rhodium"; +static constexpr int NUM_LO_OUTPUT_PORT_NAMES = 4; static constexpr std::array<const char*, NUM_LO_OUTPUT_PORT_NAMES> LO_OUTPUT_PORT_NAMES = { "LO_OUT_0", "LO_OUT_1", @@ -96,4 +104,28 @@ static constexpr std::array<const char*, NUM_LO_OUTPUT_PORT_NAMES> LO_OUTPUT_POR static constexpr size_t RHODIUM_NUM_CHANS = 1; +namespace n320_regs { + +static constexpr uint32_t PERIPH_BASE = 0x80000; +static constexpr uint32_t PERIPH_REG_OFFSET = 8; + +// db_control registers +static constexpr uint32_t SR_MISC_OUTS = PERIPH_BASE + 160 * PERIPH_REG_OFFSET; +static constexpr uint32_t SR_SPI = PERIPH_BASE + 168 * PERIPH_REG_OFFSET; +static constexpr uint32_t SR_LEDS = PERIPH_BASE + 176 * PERIPH_REG_OFFSET; +static constexpr uint32_t SR_FP_GPIO = PERIPH_BASE + 184 * PERIPH_REG_OFFSET; +static constexpr uint32_t SR_DB_GPIO = PERIPH_BASE + 192 * PERIPH_REG_OFFSET; + +static constexpr uint32_t RB_MISC_IO = PERIPH_BASE + 16 * PERIPH_REG_OFFSET; +static constexpr uint32_t RB_SPI = PERIPH_BASE + 17 * PERIPH_REG_OFFSET; +static constexpr uint32_t RB_LEDS = PERIPH_BASE + 18 * PERIPH_REG_OFFSET; +static constexpr uint32_t RB_DB_GPIO = PERIPH_BASE + 19 * PERIPH_REG_OFFSET; +static constexpr uint32_t RB_FP_GPIO = PERIPH_BASE + 20 * PERIPH_REG_OFFSET; + +//! Delta between frontend offsets for channel 0 and 1 +constexpr uint32_t SR_TX_FE_BASE = PERIPH_BASE + 208 * PERIPH_REG_OFFSET; +constexpr uint32_t SR_RX_FE_BASE = PERIPH_BASE + 224 * PERIPH_REG_OFFSET; + +} // namespace n320_regs + #endif /* INCLUDED_LIBUHD_RHODIUM_CONSTANTS_HPP */ |