GNU Radio Manual and C++ API Reference  3.10.9.1
The Free & Open Software Radio Ecosystem
viterbi_combined.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 #ifndef VITERBI_COMBINED_H
12 #define VITERBI_COMBINED_H
13 
14 #include <gnuradio/block.h>
15 #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 IN_T, class OUT_T>
28 class TRELLIS_API viterbi_combined : virtual public block
29 {
30 public:
31  typedef std::shared_ptr<viterbi_combined<IN_T, OUT_T>> sptr;
32 
33  static sptr make(const fsm& FSM,
34  int K,
35  int S0,
36  int SK,
37  int D,
38  const std::vector<IN_T>& TABLE,
40 
41  virtual fsm FSM() const = 0;
42  virtual int K() const = 0;
43  virtual int S0() const = 0;
44  virtual int SK() const = 0;
45  virtual int D() const = 0;
46  virtual std::vector<IN_T> TABLE() const = 0;
47  virtual digital::trellis_metric_type_t TYPE() const = 0;
48 
49  virtual void set_FSM(const fsm& FSM) = 0;
50  virtual void set_K(int K) = 0;
51  virtual void set_S0(int S0) = 0;
52  virtual void set_SK(int SK) = 0;
53  virtual void set_D(int D) = 0;
54  virtual void set_TABLE(const std::vector<IN_T>& table) = 0;
55  virtual void set_TYPE(digital::trellis_metric_type_t type) = 0;
56 };
57 
70 
71 } /* namespace trellis */
72 } /* namespace gr */
73 
74 #endif /* VITERBI_COMBINED_H */
#define D(...)
Definition: basic_block_pydoc_template.h:10
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: viterbi_combined.h:29
static sptr make(const fsm &FSM, int K, int S0, int SK, int D, const std::vector< IN_T > &TABLE, digital::trellis_metric_type_t TYPE)
virtual void set_K(int K)=0
virtual void set_TABLE(const std::vector< IN_T > &table)=0
virtual void set_FSM(const fsm &FSM)=0
virtual int D() const =0
virtual int SK() const =0
virtual void set_SK(int SK)=0
virtual void set_TYPE(digital::trellis_metric_type_t type)=0
virtual int K() const =0
virtual std::vector< IN_T > TABLE() const =0
virtual int S0() const =0
std::shared_ptr< viterbi_combined< IN_T, OUT_T > > sptr
Definition: viterbi_combined.h:31
virtual void set_S0(int S0)=0
virtual digital::trellis_metric_type_t TYPE() const =0
virtual fsm FSM() const =0
virtual void set_D(int D)=0
#define TRELLIS_API
Definition: gr-trellis/include/gnuradio/trellis/api.h:18
trellis_metric_type_t
Definition: metric_type.h:17
viterbi_combined< std::int16_t, std::uint8_t > viterbi_combined_sb
Definition: viterbi_combined.h:58
viterbi_combined< std::int32_t, std::int32_t > viterbi_combined_ii
Definition: viterbi_combined.h:63
viterbi_combined< float, std::int16_t > viterbi_combined_fs
Definition: viterbi_combined.h:65
viterbi_combined< std::int16_t, std::int16_t > viterbi_combined_ss
Definition: viterbi_combined.h:59
viterbi_combined< gr_complex, std::int32_t > viterbi_combined_ci
Definition: viterbi_combined.h:69
viterbi_combined< std::int32_t, std::uint8_t > viterbi_combined_ib
Definition: viterbi_combined.h:61
viterbi_combined< gr_complex, std::uint8_t > viterbi_combined_cb
Definition: viterbi_combined.h:67
viterbi_combined< std::int32_t, std::int16_t > viterbi_combined_is
Definition: viterbi_combined.h:62
viterbi_combined< float, std::int32_t > viterbi_combined_fi
Definition: viterbi_combined.h:66
viterbi_combined< gr_complex, std::int16_t > viterbi_combined_cs
Definition: viterbi_combined.h:68
viterbi_combined< std::int16_t, std::int32_t > viterbi_combined_si
Definition: viterbi_combined.h:60
viterbi_combined< float, std::uint8_t > viterbi_combined_fb
Definition: viterbi_combined.h:64
GNU Radio logging wrapper.
Definition: basic_block.h:29