diff options
author | Wade Fife <wade.fife@ettus.com> | 2021-01-08 16:49:10 -0600 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2021-01-11 12:38:58 -0600 |
commit | b99d61c890e484e9a560fbefb7e11982a50433a5 (patch) | |
tree | 740a0101509de23d3432e3d8dc3dbdd2be6c737b /host/lib/rfnoc/null_block_control.cpp | |
parent | 12673d9290319d2453fedd806ddf248d3d5586e3 (diff) | |
download | uhd-b99d61c890e484e9a560fbefb7e11982a50433a5.tar.gz uhd-b99d61c890e484e9a560fbefb7e11982a50433a5.tar.bz2 uhd-b99d61c890e484e9a560fbefb7e11982a50433a5.zip |
rfnoc: Add accessors for item width and nipc for NSS
- Add get_item_width() and get_nipc() methods to the Null/Source/Sink
block controller.
- Add missing enumerated types for get_count() method.
Diffstat (limited to 'host/lib/rfnoc/null_block_control.cpp')
-rw-r--r-- | host/lib/rfnoc/null_block_control.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/host/lib/rfnoc/null_block_control.cpp b/host/lib/rfnoc/null_block_control.cpp index 4b2560ca5..ba8ec8da4 100644 --- a/host/lib/rfnoc/null_block_control.cpp +++ b/host/lib/rfnoc/null_block_control.cpp @@ -109,6 +109,16 @@ public: regs().poke32(REG_SRC_THROTTLE_CYC, cycs); } + uint32_t get_item_width() + { + return _item_width; + } + + uint32_t get_nipc() + { + return _nipc; + } + uint32_t get_lines_per_packet() { return regs().peek32(REG_SRC_LINES_PER_PKT) + 2; |