GNU Radio's DIVIDER Package
f_divider_bb.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2020 Wojciech Kazubski.
4 *
5 * This is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 3, or (at your option)
8 * any later version.
9 *
10 * SPDX-License-Identifier: GPL-3.0-or-later
11 */
12
13#ifndef INCLUDED_DIVIDER_F_DIVIDER_BB_H
14#define INCLUDED_DIVIDER_F_DIVIDER_BB_H
15
17#include <gnuradio/sync_block.h>
18
19namespace gr {
20 namespace divider {
21
22 /*!
23 * \brief <+description of block+>
24 * \ingroup divider
25 *
26 */
27 class DIVIDER_API f_divider_bb : virtual public gr::sync_block
28 {
29 public:
30 typedef std::shared_ptr<f_divider_bb> sptr;
31
32 /*!
33 * \brief Return a shared_ptr to a new instance of divider::f_divider_bb.
34 *
35 * To avoid accidental use of raw pointers, divider::f_divider_bb's
36 * constructor is in a private implementation
37 * class. divider::f_divider_bb::make is the public interface for
38 * creating new instances.
39 */
40 static sptr make(int count);
41
42 /*!
43 * \brief Return division ratio
44 */
45 virtual int k() const = 0;
46
47 /*!
48 * \brief Set division ratio
49 */
50 virtual void set_k(int k) = 0;
51 };
52
53 } // namespace divider
54} // namespace gr
55
56#endif /* INCLUDED_DIVIDER_F_DIVIDER_BB_H */
57
#define DIVIDER_API
Definition api.h:19
<+description of block+>
Definition f_divider_bb.h:28
virtual int k() const =0
Return division ratio.
std::shared_ptr< f_divider_bb > sptr
Definition f_divider_bb.h:30
virtual void set_k(int k)=0
Set division ratio.
static sptr make(int count)
Return a shared_ptr to a new instance of divider::f_divider_bb.
Definition f_divider_bb.h:20
Definition f_divider_bb.h:19