aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/include
diff options
context:
space:
mode:
authorBrent Stapleton <brent.stapleton@ettus.com>2019-08-30 14:46:33 -0700
committerMartin Braun <martin.braun@ettus.com>2019-11-26 11:49:39 -0800
commit81bd7896940dcd39181d0aee331e08abe4df1655 (patch)
tree2736571c329613eff05166448d86c8d126b2d2ea /host/lib/include
parent932ff0537bd61360e2ddaf211d6d2cafb0ddaa67 (diff)
downloaduhd-81bd7896940dcd39181d0aee331e08abe4df1655.tar.gz
uhd-81bd7896940dcd39181d0aee331e08abe4df1655.tar.bz2
uhd-81bd7896940dcd39181d0aee331e08abe4df1655.zip
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.
Diffstat (limited to 'host/lib/include')
-rw-r--r--host/lib/include/uhdlib/rfnoc/chdr_types.hpp6
1 files changed, 6 insertions, 0 deletions
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;