GNU Radio Manual and C++ API Reference  3.10.9.1
The Free & Open Software Radio Ecosystem
siso_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_F_H
12 #define INCLUDED_TRELLIS_SISO_F_H
13 
14 #include <gnuradio/block.h>
15 #include <gnuradio/trellis/api.h>
17 #include <gnuradio/trellis/fsm.h>
19 
20 namespace gr {
21 namespace trellis {
22 
23 /*!
24  * \ingroup trellis_coding_blk
25  */
26 class TRELLIS_API siso_f : virtual public block
27 {
28 public:
29  // gr::trellis::siso_f::sptr
30  typedef std::shared_ptr<siso_f> sptr;
31 
32  static sptr make(const fsm& FSM,
33  int K,
34  int S0,
35  int SK,
36  bool POSTI,
37  bool POSTO,
38  siso_type_t d_SISO_TYPE);
39 
40  virtual fsm FSM() const = 0;
41  virtual int K() const = 0;
42  virtual int S0() const = 0;
43  virtual int SK() const = 0;
44  virtual bool POSTI() const = 0;
45  virtual bool POSTO() const = 0;
46  virtual siso_type_t SISO_TYPE() const = 0;
47 
48  virtual void set_FSM(const fsm& FSM) = 0;
49  virtual void set_K(int K) = 0;
50  virtual void set_S0(int S0) = 0;
51  virtual void set_SK(int SK) = 0;
52  virtual void set_POSTI(bool posti) = 0;
53  virtual void set_POSTO(bool posto) = 0;
54  virtual void set_SISO_TYPE(trellis::siso_type_t type) = 0;
55 };
56 
57 } /* namespace trellis */
58 } /* namespace gr */
59 
60 #endif /* INCLUDED_TRELLIS_SISO_F_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: siso_f.h:27
virtual int K() const =0
static sptr make(const fsm &FSM, int K, int S0, int SK, bool POSTI, bool POSTO, siso_type_t d_SISO_TYPE)
virtual void set_K(int K)=0
virtual void set_POSTO(bool posto)=0
virtual void set_S0(int S0)=0
virtual bool POSTO() const =0
virtual void set_POSTI(bool posti)=0
virtual int SK() const =0
std::shared_ptr< siso_f > sptr
Definition: siso_f.h:30
virtual void set_SISO_TYPE(trellis::siso_type_t type)=0
virtual void set_FSM(const fsm &FSM)=0
virtual bool POSTI() const =0
virtual void set_SK(int SK)=0
virtual siso_type_t SISO_TYPE() const =0
virtual fsm FSM() const =0
virtual int S0() const =0
#define TRELLIS_API
Definition: gr-trellis/include/gnuradio/trellis/api.h:18
siso_type_t
Definition: siso_type.h:17
GNU Radio logging wrapper.
Definition: basic_block.h:29