GNU Radio Manual and C++ API Reference  3.10.9.1
The Free & Open Software Radio Ecosystem
sccc_decoder_blk.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 SCCC_DECODER_BLK_H
13 #define SCCC_DECODER_BLK_H
14 
15 #include <gnuradio/block.h>
16 #include <gnuradio/trellis/api.h>
17 #include <gnuradio/trellis/fsm.h>
20 #include <cstdint>
21 #include <vector>
22 
23 namespace gr {
24 namespace trellis {
25 
26 /*!
27  * \ingroup trellis_coding_blk
28  */
29 template <class T>
30 class TRELLIS_API sccc_decoder_blk : virtual public block
31 {
32 public:
33  // gr::trellis::sccc_decoder_blk::sptr
34  typedef std::shared_ptr<sccc_decoder_blk<T>> sptr;
35 
36  static sptr make(const fsm& FSMo,
37  int STo0,
38  int SToK,
39  const fsm& FSMi,
40  int STi0,
41  int STiK,
42  const interleaver& INTERLEAVER,
43  int blocklength,
44  int repetitions,
45  siso_type_t SISO_TYPE);
46 
47  virtual fsm FSMo() const = 0;
48  virtual fsm FSMi() const = 0;
49  virtual int STo0() const = 0;
50  virtual int SToK() const = 0;
51  virtual int STi0() const = 0;
52  virtual int STiK() const = 0;
53  virtual interleaver INTERLEAVER() const = 0;
54  virtual int blocklength() const = 0;
55  virtual int repetitions() const = 0;
56  virtual siso_type_t SISO_TYPE() const = 0;
57 };
58 
62 } /* namespace trellis */
63 } /* namespace gr */
64 
65 #endif /* SCCC_DECODER_BLK_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
INTERLEAVER class.
Definition: interleaver.h:26
Definition: sccc_decoder_blk.h:31
virtual int STi0() const =0
virtual int STo0() const =0
virtual int blocklength() const =0
virtual fsm FSMo() const =0
std::shared_ptr< sccc_decoder_blk< T > > sptr
Definition: sccc_decoder_blk.h:34
virtual interleaver INTERLEAVER() const =0
virtual int repetitions() const =0
static sptr make(const fsm &FSMo, int STo0, int SToK, const fsm &FSMi, int STi0, int STiK, const interleaver &INTERLEAVER, int blocklength, int repetitions, siso_type_t SISO_TYPE)
virtual int STiK() const =0
virtual int SToK() const =0
virtual siso_type_t SISO_TYPE() const =0
virtual fsm FSMi() const =0
#define TRELLIS_API
Definition: gr-trellis/include/gnuradio/trellis/api.h:18
sccc_decoder_blk< std::uint8_t > sccc_decoder_b
Definition: sccc_decoder_blk.h:59
sccc_decoder_blk< std::int16_t > sccc_decoder_s
Definition: sccc_decoder_blk.h:60
siso_type_t
Definition: siso_type.h:17
sccc_decoder_blk< std::int32_t > sccc_decoder_i
Definition: sccc_decoder_blk.h:61
GNU Radio logging wrapper.
Definition: basic_block.h:29