USRP Hardware Driver and USRP Manual  Version: 4.6.0.0
UHD and USRP Manual
defaults.hpp
Go to the documentation of this file.
1 //
2 // Copyright 2014 Ettus Research LLC
3 // Copyright 2018 Ettus Research, a National Instruments Company
4 // Copyright 2020 Ettus Research, a National Instruments Brand
5 //
6 // SPDX-License-Identifier: GPL-3.0-or-later
7 //
8 
9 #pragma once
10 
11 #include <cstdint>
12 #include <string>
13 
14 namespace uhd { namespace rfnoc {
15 
16 static const std::string CLOCK_KEY_GRAPH("__graph__");
17 static const std::string CLOCK_KEY_AUTO("__auto__");
18 
19 static const std::string PROP_KEY_DECIM("decim");
20 static const std::string PROP_KEY_INTERP("interp");
21 static const std::string PROP_KEY_SAMP_RATE("samp_rate");
22 static const std::string PROP_KEY_SCALING("scaling");
23 static const std::string PROP_KEY_TYPE("type");
24 static const std::string PROP_KEY_FREQ("freq");
25 static const std::string PROP_KEY_TICK_RATE("tick_rate");
26 static const std::string PROP_KEY_SPP("spp");
27 static const std::string PROP_KEY_MTU("mtu");
28 static const std::string PROP_KEY_ATOMIC_ITEM_SIZE("atomic_item_size");
29 
30 static const std::string NODE_ID_SEP("SEP");
31 
32 using io_type_t = std::string;
33 static const io_type_t IO_TYPE_S16 = "s16";
34 static const io_type_t IO_TYPE_SC16 = "sc16";
35 static const io_type_t IO_TYPE_U8 = "u8";
36 
37 static const std::string ACTION_KEY_STREAM_CMD("stream_cmd");
38 static const std::string ACTION_KEY_RX_EVENT("rx_event");
39 static const std::string ACTION_KEY_RX_RESTART_REQ("restart_request");
40 static const std::string ACTION_KEY_TX_EVENT("tx_event");
41 
43 static const std::string DEFAULT_BLOCK_NAME = "Block";
45 static const uint32_t DEFAULT_NOC_ID = 0xFFFFFFFF;
46 static const double DEFAULT_TICK_RATE = 1.0;
47 
51 using noc_id_t = uint32_t;
52 
53 /*** Device Identifiers ******************************************************/
55 using device_type_t = uint16_t;
56 // first nibble for device family (E = E, N = 1, X = A), remaining three nibbles
57 // for device number
59 static const device_type_t ANY_DEVICE = 0xFFFF;
61 static const device_type_t E300 = 0xE300;
63 static const device_type_t E310 = 0xE310;
65 static const device_type_t E320 = 0xE320;
67 static const device_type_t N300 = 0x1300;
69 static const device_type_t N320 = 0x1320;
71 static const device_type_t X300 = 0xA300;
73 static const device_type_t X400 = 0xA400;
74 
75 // block identifiers
76 static const noc_id_t ADDSUB_BLOCK = 0xADD00000;
77 static const noc_id_t DUC_BLOCK = 0xD0C00000;
78 static const noc_id_t DDC_BLOCK = 0xDDC00000;
79 static const noc_id_t FFT_BLOCK = 0xFF700000;
80 static const noc_id_t FIR_FILTER_BLOCK = 0xF1120000;
81 static const noc_id_t FOSPHOR_BLOCK = 0x666F0000;
82 static const noc_id_t LOGPWR_BLOCK = 0x4C500000;
83 static const noc_id_t KEEP_ONE_IN_N_BLOCK = 0x02460000;
84 static const noc_id_t MOVING_AVERAGE_BLOCK = 0xAAD20000;
85 static const noc_id_t RADIO_BLOCK = 0x12AD1000;
86 static const noc_id_t REPLAY_BLOCK = 0x4E91A000;
87 static const noc_id_t SIGGEN_BLOCK = 0x51663110;
88 static const noc_id_t SPLIT_STREAM_BLOCK = 0x57570000;
89 static const noc_id_t SWITCHBOARD_BLOCK = 0xBE110000;
90 static const noc_id_t VECTOR_IIR_BLOCK = 0x11120000;
91 static const noc_id_t WINDOW_BLOCK = 0xD0530000;
92 
93 }} // namespace uhd::rfnoc
Definition: build_info.hpp:12
uint16_t device_type_t
Device Type.
Definition: defaults.hpp:55
std::string io_type_t
Definition: defaults.hpp:32
uint32_t noc_id_t
Definition: defaults.hpp:51