From 81bd7896940dcd39181d0aee331e08abe4df1655 Mon Sep 17 00:00:00 2001 From: Brent Stapleton Date: Fri, 30 Aug 2019 14:46:33 -0700 Subject: rfnoc: ctrlport: Fixing timeouts for timed commands When issuing a timed command, if there is no room in the command FIFO and there is a timed command queue'd up, wait for a long time before timing out. --- host/lib/include/uhdlib/rfnoc/chdr_types.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'host/lib/include') diff --git a/host/lib/include/uhdlib/rfnoc/chdr_types.hpp b/host/lib/include/uhdlib/rfnoc/chdr_types.hpp index b5725710b..8bb345b32 100644 --- a/host/lib/include/uhdlib/rfnoc/chdr_types.hpp +++ b/host/lib/include/uhdlib/rfnoc/chdr_types.hpp @@ -313,6 +313,12 @@ public: // Functions deserialize(buff, num_elems, conv_byte_order); } + // Return whether or not we have a valid timestamp + bool has_timestamp() const + { + return bool(timestamp); + } + //! Comparison operator (==) bool operator==(const ctrl_payload& rhs) const; -- cgit v1.2.3