14 namespace uhd {
namespace rfnoc {
18 static const size_t CMD_FIFO_SIZE = 256;
19 static const size_t MAX_CMD_PKT_SIZE = 3;
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;