diff options
Diffstat (limited to 'host/lib/include/uhdlib/rfnoc')
| -rw-r--r-- | host/lib/include/uhdlib/rfnoc/radio_control_impl.hpp | 9 | ||||
| -rw-r--r-- | host/lib/include/uhdlib/rfnoc/rfnoc_rx_streamer.hpp | 1 | ||||
| -rw-r--r-- | host/lib/include/uhdlib/rfnoc/rfnoc_tx_streamer.hpp | 1 | 
3 files changed, 11 insertions, 0 deletions
| diff --git a/host/lib/include/uhdlib/rfnoc/radio_control_impl.hpp b/host/lib/include/uhdlib/rfnoc/radio_control_impl.hpp index de83c403c..ace5b7a45 100644 --- a/host/lib/include/uhdlib/rfnoc/radio_control_impl.hpp +++ b/host/lib/include/uhdlib/rfnoc/radio_control_impl.hpp @@ -323,6 +323,13 @@ protected:          return _rate;      } +    /* +     * Returns the number of bytes to be processed in each clock cycle. +     */ +    size_t get_atomic_item_size() const +    { +        return (_samp_width / 8) * _spc; +    }      //! Properties for samp_rate (one per port)      std::vector<property_t<double>> _samp_rate_in;      //! Properties for samp_rate (one per port) @@ -380,6 +387,8 @@ private:      const uint32_t _spc;      std::vector<property_t<int>> _spp_prop; +    std::vector<property_t<size_t>> _atomic_item_size_in; +    std::vector<property_t<size_t>> _atomic_item_size_out;      //! Properties for type_in (one per port)      std::vector<property_t<io_type_t>> _type_in;      //! Properties for type_out (one per port) diff --git a/host/lib/include/uhdlib/rfnoc/rfnoc_rx_streamer.hpp b/host/lib/include/uhdlib/rfnoc/rfnoc_rx_streamer.hpp index ca569e338..2ed11182a 100644 --- a/host/lib/include/uhdlib/rfnoc/rfnoc_rx_streamer.hpp +++ b/host/lib/include/uhdlib/rfnoc/rfnoc_rx_streamer.hpp @@ -110,6 +110,7 @@ private:      std::vector<property_t<double>> _tick_rate_in;      std::vector<property_t<std::string>> _type_in;      std::vector<property_t<size_t>> _mtu_in; +    std::vector<property_t<size_t>> _atomic_item_size_in;      // Streamer unique ID      const std::string _unique_id; diff --git a/host/lib/include/uhdlib/rfnoc/rfnoc_tx_streamer.hpp b/host/lib/include/uhdlib/rfnoc/rfnoc_tx_streamer.hpp index a071d7248..76369474f 100644 --- a/host/lib/include/uhdlib/rfnoc/rfnoc_tx_streamer.hpp +++ b/host/lib/include/uhdlib/rfnoc/rfnoc_tx_streamer.hpp @@ -113,6 +113,7 @@ private:      std::vector<property_t<double>> _tick_rate_out;      std::vector<property_t<std::string>> _type_out;      std::vector<property_t<size_t>> _mtu_out; +    std::vector<property_t<size_t>> _atomic_item_size_out;      // Streamer unique ID      const std::string _unique_id; | 
