GNU Radio Manual and C++ API Reference  3.10.9.1
The Free & Open Software Radio Ecosystem
siso_combined_f.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2004,2012 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_TRELLIS_SISO_COMBINED_F_H
12 #define INCLUDED_TRELLIS_SISO_COMBINED_F_H
13 
14 #include <gnuradio/block.h>
15 #include <gnuradio/trellis/api.h>
18 #include <gnuradio/trellis/fsm.h>
20 
21 namespace gr {
22 namespace trellis {
23 
24 /*!
25  * \ingroup trellis_coding_blk
26  */
27 class TRELLIS_API siso_combined_f : virtual public block
28 {
29 public:
30  // gr::trellis::siso_combined_f::sptr
31  typedef std::shared_ptr<siso_combined_f> sptr;
32 
33  static sptr make(const fsm& FSM,
34  int K,
35  int S0,
36  int SK,
37  bool POSTI,
38  bool POSTO,
39  siso_type_t d_SISO_TYPE,
40  int D,
41  const std::vector<float>& TABLE,
43 
44  virtual fsm FSM() const = 0;
45  virtual int K() const = 0;
46  virtual int S0() const = 0;
47  virtual int SK() const = 0;
48  virtual bool POSTI() const = 0;
49  virtual bool POSTO() const = 0;
50  virtual siso_type_t SISO_TYPE() const = 0;
51  virtual int D() const = 0;
52  virtual std::vector<float> TABLE() const = 0;
53  virtual digital::trellis_metric_type_t TYPE() const = 0;
54 
55  virtual void set_FSM(const fsm& FSM) = 0;
56  virtual void set_K(int K) = 0;
57  virtual void set_S0(int S0) = 0;
58  virtual void set_SK(int SK) = 0;
59  virtual void set_POSTI(bool POSTI) = 0;
60  virtual void set_POSTO(bool POSTO) = 0;
61  virtual void set_SISO_TYPE(trellis::siso_type_t type) = 0;
62  virtual void set_D(int D) = 0;
63  virtual void set_TABLE(const std::vector<float>& table) = 0;
64  virtual void set_TYPE(digital::trellis_metric_type_t type) = 0;
65 };
66 
67 } /* namespace trellis */
68 } /* namespace gr */
69 
70 #endif /* INCLUDED_TRELLIS_SISO_COMBINED_F_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: siso_combined_f.h:28
virtual void set_S0(int S0)=0
virtual bool POSTI() const =0
virtual siso_type_t SISO_TYPE() const =0
virtual std::vector< float > TABLE() const =0
virtual digital::trellis_metric_type_t TYPE() const =0
virtual void set_SISO_TYPE(trellis::siso_type_t type)=0
virtual int D() const =0
virtual void set_POSTO(bool POSTO)=0
virtual int S0() const =0
static sptr make(const fsm &FSM, int K, int S0, int SK, bool POSTI, bool POSTO, siso_type_t d_SISO_TYPE, int D, const std::vector< float > &TABLE, digital::trellis_metric_type_t TYPE)
virtual int SK() const =0
virtual void set_SK(int SK)=0
virtual void set_TABLE(const std::vector< float > &table)=0
virtual void set_K(int K)=0
virtual void set_D(int D)=0
virtual void set_POSTI(bool POSTI)=0
virtual bool POSTO() const =0
virtual int K() const =0
virtual fsm FSM() const =0
virtual void set_TYPE(digital::trellis_metric_type_t type)=0
virtual void set_FSM(const fsm &FSM)=0
std::shared_ptr< siso_combined_f > sptr
Definition: siso_combined_f.h:31
#define TRELLIS_API
Definition: gr-trellis/include/gnuradio/trellis/api.h:18
trellis_metric_type_t
Definition: metric_type.h:17
siso_type_t
Definition: siso_type.h:17
GNU Radio logging wrapper.
Definition: basic_block.h:29