diff options
author | Martin Braun <martin.braun@ettus.com> | 2019-10-24 10:35:16 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2019-11-26 12:21:33 -0800 |
commit | d5580fcec8611a83336d9634bd81b49e77635f68 (patch) | |
tree | 1516de69ea1891bb11205b63ddb319e521df9933 /host/include | |
parent | 4e6177ed5564180fe7a0da705490087e736371b6 (diff) | |
download | uhd-d5580fcec8611a83336d9634bd81b49e77635f68.tar.gz uhd-d5580fcec8611a83336d9634bd81b49e77635f68.tar.bz2 uhd-d5580fcec8611a83336d9634bd81b49e77635f68.zip |
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.
Diffstat (limited to 'host/include')
-rw-r--r-- | host/include/uhd/usrp/multi_usrp.hpp | 11 |
1 files changed, 11 insertions, 0 deletions
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 |