GNU Radio Manual and C++ API Reference  3.10.9.1
The Free & Open Software Radio Ecosystem
gr-trellis/include/gnuradio/trellis/viterbi.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2004,2012,2018 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 
12 #ifndef VITERBI_H
13 #define VITERBI_H
14 
15 #include <gnuradio/block.h>
16 #include <gnuradio/trellis/api.h>
18 #include <gnuradio/trellis/fsm.h>
19 #include <cstdint>
20 
21 namespace gr {
22 namespace trellis {
23 
24 /*!
25  * \ingroup trellis_coding_blk
26  */
27 template <class T>
28 class TRELLIS_API viterbi : virtual public block
29 {
30 public:
31  // gr::trellis::viterbi::sptr
32  typedef std::shared_ptr<viterbi<T>> sptr;
33 
34  static sptr make(const fsm& FSM, int K, int S0, int SK);
35 
36  virtual fsm FSM() const = 0;
37  virtual int K() const = 0;
38  virtual int S0() const = 0;
39  virtual int SK() const = 0;
40 
41  virtual void set_FSM(const fsm& FSM) = 0;
42  virtual void set_K(int K) = 0;
43  virtual void set_S0(int S0) = 0;
44  virtual void set_SK(int SK) = 0;
45 };
46 
50 } /* namespace trellis */
51 } /* namespace gr */
52 
53 #endif /* VITERBI_H */
The abstract base class for all 'terminal' processing blocks.
Definition: gnuradio-runtime/include/gnuradio/block.h:63
Finite State Machine Specification class.
Definition: fsm.h:33
Definition: gr-trellis/include/gnuradio/trellis/viterbi.h:29
virtual void set_SK(int SK)=0
virtual int S0() const =0
virtual void set_K(int K)=0
std::shared_ptr< viterbi< T > > sptr
Definition: gr-trellis/include/gnuradio/trellis/viterbi.h:32
virtual void set_S0(int S0)=0
virtual int SK() const =0
virtual void set_FSM(const fsm &FSM)=0
virtual fsm FSM() const =0
static sptr make(const fsm &FSM, int K, int S0, int SK)
virtual int K() const =0
#define TRELLIS_API
Definition: gr-trellis/include/gnuradio/trellis/api.h:18
viterbi< std::int32_t > viterbi_i
Definition: gr-trellis/include/gnuradio/trellis/viterbi.h:49
viterbi< std::int16_t > viterbi_s
Definition: gr-trellis/include/gnuradio/trellis/viterbi.h:48
viterbi< std::uint8_t > viterbi_b
Definition: gr-trellis/include/gnuradio/trellis/viterbi.h:47
GNU Radio logging wrapper.
Definition: basic_block.h:29