From d5580fcec8611a83336d9634bd81b49e77635f68 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Thu, 24 Oct 2019 10:35:16 -0700 Subject: multi_usrp: Add set_rx_spp() call This API call is a more explicit way of setting the spp than passing in an spp value in the args of the stream args when creating streamers. For pre-RFNoC devices, this is done by injecting the spp arg back into the stream args. For RFNoC devices, the set_property() call on the radio is called. --- host/include/uhd/usrp/multi_usrp.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'host/include') diff --git a/host/include/uhd/usrp/multi_usrp.hpp b/host/include/uhd/usrp/multi_usrp.hpp index 27b5f3d9a..4efc062b0 100644 --- a/host/include/uhd/usrp/multi_usrp.hpp +++ b/host/include/uhd/usrp/multi_usrp.hpp @@ -614,6 +614,17 @@ public: */ virtual void set_rx_rate(double rate, size_t chan = ALL_CHANS) = 0; + /*! Set the number of samples sent per packet (spp) for RX streaming + * + * On RFNoC devices, this will set the spp value on the radio itself. For + * older devices, it will inject the spp value into a later get_rx_stream() + * call, but it won't change anything in existing streamers. + * + * \param spp the new spp value + * \param chan the channel index 0 to N-1 + */ + virtual void set_rx_spp(const size_t spp, const size_t chan = ALL_CHANS) = 0; + /*! * Gets the RX sample rate. * \param chan the channel index 0 to N-1 -- cgit v1.2.3