// // Copyright 2012-2014 Ettus Research LLC // Copyright 2018 Ettus Research, a National Instruments Company // // SPDX-License-Identifier: GPL-3.0-or-later // #ifndef INCLUDED_E300_REGS_HPP #define INCLUDED_E300_REGS_HPP #include #include namespace uhd { namespace usrp { namespace e300 { namespace radio { static UHD_INLINE uint32_t sr_addr(const uint32_t offset) { return offset * 4; } static const uint32_t DACSYNC = 5; static const uint32_t LOOPBACK = 6; static const uint32_t TEST = 7; static const uint32_t SPI = 8; static const uint32_t GPIO = 16; static const uint32_t MISC_OUTS = 24; static const uint32_t READBACK = 32; static const uint32_t TX_CTRL = 64; static const uint32_t RX_CTRL = 96; static const uint32_t TIME = 128; static const uint32_t RX_DSP = 144; static const uint32_t TX_DSP = 184; static const uint32_t LEDS = 195; static const uint32_t FP_GPIO = 201; static const uint32_t RX_FRONT = 208; static const uint32_t TX_FRONT = 216; static const uint32_t CODEC_IDLE = 250; static const uint32_t RB32_GPIO = 0; static const uint32_t RB32_SPI = 4; static const uint32_t RB64_TIME_NOW = 8; static const uint32_t RB64_TIME_PPS = 16; static const uint32_t RB32_TEST = 24; static const uint32_t RB32_RX = 28; static const uint32_t RB32_FP_GPIO = 32; static const uint32_t RB32_MISC_INS = 36; static const uint32_t RB64_CODEC_READBACK = 40; static const uint32_t RB32_RADIO_NUM = 48; }}}} // namespace #define localparam static const int localparam ST_RX_ENABLE = 20; localparam ST_TX_ENABLE = 19; localparam LED_TXRX_TX = 18; localparam LED_TXRX_RX = 17; localparam LED_RX_RX = 16; localparam VCRX_V2 = 15; localparam VCRX_V1 = 14; localparam VCTXRX_V2 = 13; localparam VCTXRX_V1 = 12; localparam TX_ENABLEB = 11; localparam TX_ENABLEA = 10; localparam RXC_BANDSEL = 8; localparam RXB_BANDSEL = 6; localparam RX_BANDSEL = 3; localparam TX_BANDSEL = 0; #endif /* INCLUDED_E300_REGS_HPP */