aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/include/uhdlib/rfnoc/radio_control_impl.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/include/uhdlib/rfnoc/radio_control_impl.hpp')
-rw-r--r--host/lib/include/uhdlib/rfnoc/radio_control_impl.hpp9
1 files changed, 9 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 b60b0f2a2..e268dbc07 100644
--- a/host/lib/include/uhdlib/rfnoc/radio_control_impl.hpp
+++ b/host/lib/include/uhdlib/rfnoc/radio_control_impl.hpp
@@ -356,6 +356,15 @@ private:
const std::vector<uint32_t>& data,
boost::optional<uint64_t> timestamp);
+ //! Return the maximum samples per packet of size \p bytes
+ //
+ // Given a packet of size \p bytes, how many samples can we fit in there?
+ // This gives the answer, factoring in item size and samples per clock.
+ //
+ // \param bytes Number of bytes we can fill with samples (excluding bytes
+ // required for CHDR headers!)
+ int get_max_spp(const size_t bytes);
+
//! FPGA compat number
const uint32_t _fpga_compat;