GNU Radio Manual and C++ API Reference  3.10.9.1
The Free & Open Software Radio Ecosystem
check_lfsr_32k_s.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2004,2013 Free Software Foundation, Inc.
4  *
5  * This file is part of GNU Radio
6  *
7  * SPDX-License-Identifier: GPL-3.0-or-later
8  *
9  */
10 
11 #ifndef INCLUDED_GR_CHECK_LFSR_32K_S_H
12 #define INCLUDED_GR_CHECK_LFSR_32K_S_H
13 
14 #include <gnuradio/blocks/api.h>
15 #include <gnuradio/sync_block.h>
16 
17 namespace gr {
18 namespace blocks {
19 
20 /*!
21  * \brief sink that checks if its input stream consists of a lfsr_32k sequence.
22  * \ingroup misc_blk
23  *
24  * \details
25  * This sink is typically used along with
26  * gr::blocks::lfsr_32k_source_s to test the USRP using its
27  * digital loopback mode.
28  */
29 class BLOCKS_API check_lfsr_32k_s : virtual public sync_block
30 {
31 public:
32  // gr::blocks::check_lfsr_32k_s::sptr
33  typedef std::shared_ptr<check_lfsr_32k_s> sptr;
34 
35  static sptr make();
36 
37  virtual long ntotal() const = 0;
38  virtual long nright() const = 0;
39  virtual long runlength() const = 0;
40 };
41 
42 } /* namespace blocks */
43 } /* namespace gr */
44 
45 #endif /* INCLUDED_GR_CHECK_LFSR_32K_S_H */
sink that checks if its input stream consists of a lfsr_32k sequence.
Definition: check_lfsr_32k_s.h:30
virtual long nright() const =0
virtual long runlength() const =0
virtual long ntotal() const =0
std::shared_ptr< check_lfsr_32k_s > sptr
Definition: check_lfsr_32k_s.h:33
synchronous 1:1 input to output with history
Definition: sync_block.h:26
#define BLOCKS_API
Definition: gr-blocks/include/gnuradio/blocks/api.h:18
GNU Radio logging wrapper.
Definition: basic_block.h:29