aboutsummaryrefslogtreecommitdiffstats
path: root/host/include
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2019-07-22 11:51:29 -0700
committerMartin Braun <martin.braun@ettus.com>2019-11-26 11:49:32 -0800
commit0ea553475ee58664e61dd26113059857c7df1f21 (patch)
treee874cb2f50d439c02775f5114c2bd1a0a119eb2d /host/include
parent4ea4f870660bef7fa4b6e01423ef8f5cdbdb8131 (diff)
downloaduhd-0ea553475ee58664e61dd26113059857c7df1f21.tar.gz
uhd-0ea553475ee58664e61dd26113059857c7df1f21.tar.bz2
uhd-0ea553475ee58664e61dd26113059857c7df1f21.zip
rfnoc: async message: Include timestamp in async message handling
Async messages (like, e.g., overrun messages) can include a timestamp. This change enables access to the timestamp in the async message handler. It is up to the FPGA block implementation to include the timestamp, if desired/necessary. The definition of the timestamp may also depend on the block, for example, the overrun async message will include the time when the overrun occurred.
Diffstat (limited to 'host/include')
-rw-r--r--host/include/uhd/rfnoc/register_iface.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/include/uhd/rfnoc/register_iface.hpp b/host/include/uhd/rfnoc/register_iface.hpp
index a89d85717..3344b7c5e 100644
--- a/host/include/uhd/rfnoc/register_iface.hpp
+++ b/host/include/uhd/rfnoc/register_iface.hpp
@@ -38,8 +38,8 @@ public:
* modelled as a simple register write (key-value pair with addr/data) that
* is initiated by the FPGA.
*/
- using async_msg_callback_t =
- std::function<void(uint32_t addr, const std::vector<uint32_t>& data)>;
+ using async_msg_callback_t = std::function<void(
+ uint32_t addr, const std::vector<uint32_t>& data, boost::optional<uint64_t>)>;
/*! Write a 32-bit register implemented in the NoC block.
*