1 //
2 // Copyright 2019 Ettus Research, a National Instruments Brand
3 //
4 // SPDX-License-Identifier: GPL-3.0-or-later
5 //
6 
7 #include <uhd/exception.hpp>
8 #include <uhd/rfnoc/block_control.hpp>
9 #include <uhd/rfnoc/defaults.hpp>
10 #include <uhd/rfnoc/registry.hpp>
11 
12 using namespace uhd::rfnoc;
13 
14 class block_control_impl : public block_control
15 {
16 public:
RFNOC_BLOCK_CONSTRUCTOR(block_control)17     RFNOC_BLOCK_CONSTRUCTOR(block_control)
18     {
19         set_prop_forwarding_policy(forwarding_policy_t::DROP);
20         set_action_forwarding_policy(forwarding_policy_t::DROP);
21     }
22 };
23 
24 UHD_RFNOC_BLOCK_REGISTER_DIRECT(
25     block_control, DEFAULT_NOC_ID, DEFAULT_BLOCK_NAME, CLOCK_KEY_GRAPH, "bus_clk")
26