USRP Hardware Driver and USRP Manual  Version: 4.6.0.0-7-gece7c4811
UHD and USRP Manual
constants.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 //
5 // SPDX-License-Identifier: GPL-3.0-or-later
6 //
7 
8 #pragma once
9 
10 #include <uhd/rfnoc/defaults.hpp>
11 #include <stdint.h>
12 #include <string>
13 
14 namespace uhd { namespace rfnoc {
15 
16 constexpr uint16_t RFNOC_PROTO_VER = 0x0100;
17 
18 static const size_t CMD_FIFO_SIZE = 256; // Lines == multiples of 8 bytes
19 static const size_t MAX_CMD_PKT_SIZE = 3; // Lines == multiples of 8 bytes
20 
21 // Regular expressions
22 static const std::string VALID_BLOCKNAME_REGEX = "[A-Za-z][A-Za-z0-9_]*";
23 static const std::string DEVICE_NUMBER_REGEX = R"-((?:(\d+)/)?)-";
24 static const std::string BLOCK_COUNTER_REGEX = R"-((?:#(\d+))?)-";
25 static const std::string VALID_BLOCKID_REGEX =
26  DEVICE_NUMBER_REGEX + "(" + VALID_BLOCKNAME_REGEX + ")" + BLOCK_COUNTER_REGEX;
27 static const std::string MATCH_BLOCKID_REGEX =
28  DEVICE_NUMBER_REGEX + "(" + VALID_BLOCKNAME_REGEX + ")?" + BLOCK_COUNTER_REGEX;
29 
30 }} /* namespace uhd::rfnoc */
Definition: build_info.hpp:12
constexpr uint16_t RFNOC_PROTO_VER
Definition: constants.hpp:16