From b99d61c890e484e9a560fbefb7e11982a50433a5 Mon Sep 17 00:00:00 2001 From: Wade Fife Date: Fri, 8 Jan 2021 16:49:10 -0600 Subject: 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. --- host/lib/rfnoc/null_block_control.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'host/lib/rfnoc/null_block_control.cpp') 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; -- cgit v1.2.3