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