GNU Radio's DIVIDER Package
f_divider_ff_impl.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_FF_IMPL_H
14#define INCLUDED_DIVIDER_F_DIVIDER_FF_IMPL_H
15
17
18namespace gr {
19 namespace divider {
20
22 {
23 private:
24 int ct_k;
25
26 public:
29
30 int k() const { return ct_k; }
31 void set_k(int k) { ct_k = k; }
32
33 // Where all the action really happens
34 int work(
35 int noutput_items,
36 gr_vector_const_void_star &input_items,
37 gr_vector_void_star &output_items
38 );
39 };
40
41 } // namespace divider
42} // namespace gr
43
44#endif /* INCLUDED_DIVIDER_F_DIVIDER_FF_IMPL_H */
45
void set_k(int k)
Set division ratio.
Definition f_divider_ff_impl.h:31
int work(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
int k() const
Return division ratio.
Definition f_divider_ff_impl.h:30
<+description of block+>
Definition f_divider_ff.h:28
Definition f_divider_bb.h:20
Definition f_divider_bb.h:19