aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/rfnoc/block_control.cpp
blob: e6d5cd31d0a255b6cb7ce5aed04350011eb49e99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
//
// Copyright 2019 Ettus Research, a National Instruments Brand
//
// SPDX-License-Identifier: GPL-3.0-or-later
//

#include <uhd/exception.hpp>
#include <uhd/rfnoc/block_control.hpp>
#include <uhd/rfnoc/defaults.hpp>
#include <uhd/rfnoc/registry.hpp>

using namespace uhd::rfnoc;

class block_control_impl : public block_control
{
public:
    RFNOC_BLOCK_CONSTRUCTOR(block_control)
    {
        set_prop_forwarding_policy(forwarding_policy_t::DROP);
        set_action_forwarding_policy(forwarding_policy_t::DROP);
    }
};

UHD_RFNOC_BLOCK_REGISTER_DIRECT(
    block_control, DEFAULT_NOC_ID, DEFAULT_BLOCK_NAME, CLOCK_KEY_GRAPH, "bus_clk")