USRP Hardware Driver and USRP Manual: constants.hpp Source File

| USRP Hardware Driver and USRP Manual Version: 4.9.0.makepkg-0-g9ec1f582 UHD and USRP Manual |

Loading...
Searching...
No Matches
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
14namespace uhd { namespace rfnoc {
15
16 constexpr 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 */
defaults.hpp
uhd::rfnoc
Definition actions.hpp:24
uhd::rfnoc::RFNOC_PROTO_VER
constexpr uint16_t RFNOC_PROTO_VER
Definition constants.hpp:16
uhd
Definition build_info.hpp:12