aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/include/uhdlib
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/include/uhdlib')
-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;