From b89c53c0691c6d70fb24561243a930bbcc32363b Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Thu, 1 Aug 2019 14:49:12 -0700 Subject: 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. --- host/tests/rfnoc_mock_reg_iface.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'host/tests/rfnoc_mock_reg_iface.hpp') 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 -- cgit v1.2.3