diff options
author | Martin Braun <martin.braun@ettus.com> | 2019-08-01 14:49:12 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2019-11-26 11:49:34 -0800 |
commit | b89c53c0691c6d70fb24561243a930bbcc32363b (patch) | |
tree | f98c821b5a86daff0addd79eaf9bc6c812f38946 /host/tests/rfnoc_mock_reg_iface.hpp | |
parent | 595fba47d534634432d4e114d31bbfa42cc00812 (diff) | |
download | uhd-b89c53c0691c6d70fb24561243a930bbcc32363b.tar.gz uhd-b89c53c0691c6d70fb24561243a930bbcc32363b.tar.bz2 uhd-b89c53c0691c6d70fb24561243a930bbcc32363b.zip |
rfnoc: ctrlport: Separately validate and handle async messages
This introduces the concept of an async message validator, an optional
callback for functions to check if an async message has a valid payload.
After validation, the async message is ack'd. Then, the async message
handler is executed.
This makes sure that an async message is ack'd as soon as possible,
rather than after the async message handling, which can itself have all
sorts of communication going on to the device.
Diffstat (limited to 'host/tests/rfnoc_mock_reg_iface.hpp')
-rw-r--r-- | host/tests/rfnoc_mock_reg_iface.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/host/tests/rfnoc_mock_reg_iface.hpp b/host/tests/rfnoc_mock_reg_iface.hpp index b43317237..a6e85b790 100644 --- a/host/tests/rfnoc_mock_reg_iface.hpp +++ b/host/tests/rfnoc_mock_reg_iface.hpp @@ -95,6 +95,11 @@ public: // nop } + void register_async_msg_validator(async_msg_validator_t /*callback_f*/) + { + // nop + } + void register_async_msg_handler(async_msg_callback_t /*callback_f*/) { // nop |