GNU Radio Manual and C++ API Reference  3.8.1.0
The Free & Open Software Radio Ecosystem
sccc_encoder.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  * GNU Radio is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 3, or (at your option)
10  * any later version.
11  *
12  * GNU Radio is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with GNU Radio; see the file COPYING. If not, write to
19  * the Free Software Foundation, Inc., 51 Franklin Street,
20  * Boston, MA 02110-1301, USA.
21  */
22 
23 #ifndef SCCC_ENCODER_H
24 #define SCCC_ENCODER_H
25 
26 #include <gnuradio/sync_block.h>
27 #include <gnuradio/trellis/api.h>
28 #include <gnuradio/trellis/fsm.h>
30 #include <vector>
31 
32 namespace gr {
33 namespace trellis {
34 
35 /*!
36  * \brief SCCC encoder.
37  * \ingroup trellis_coding_blk
38  */
39 template <class IN_T, class OUT_T>
40 class TRELLIS_API sccc_encoder : virtual public sync_block
41 {
42 public:
43  typedef boost::shared_ptr<sccc_encoder<IN_T, OUT_T>> sptr;
44 
45  static sptr make(const fsm& FSMo,
46  int STo,
47  const fsm& FSMi,
48  int STi,
49  const interleaver& INTERLEAVER,
50  int blocklength);
51 
52  virtual fsm FSMo() const = 0;
53  virtual int STo() const = 0;
54  virtual fsm FSMi() const = 0;
55  virtual int STi() const = 0;
56  virtual interleaver INTERLEAVER() const = 0;
57  virtual int blocklength() const = 0;
58 };
65 
66 } /* namespace trellis */
67 } /* namespace gr */
68 
69 #endif /* SCCC_ENCODER_H */
sccc_encoder< std::uint8_t, std::uint8_t > sccc_encoder_bb
Definition: sccc_encoder.h:59
SCCC encoder.
Definition: sccc_encoder.h:40
INTERLEAVER class.
Definition: interleaver.h:37
sccc_encoder< std::uint8_t, std::int32_t > sccc_encoder_si
Definition: sccc_encoder.h:63
sccc_encoder< std::uint8_t, std::int32_t > sccc_encoder_bi
Definition: sccc_encoder.h:61
GNU Radio logging wrapper for log4cpp library (C++ port of log4j)
Definition: basic_block.h:43
synchronous 1:1 input to output with historyOverride work to provide the signal processing implementa...
Definition: sync_block.h:37
#define TRELLIS_API
Definition: gr-trellis/include/gnuradio/trellis/api.h:30
sccc_encoder< std::int16_t, std::int16_t > sccc_encoder_ss
Definition: sccc_encoder.h:62
sccc_encoder< std::uint8_t, std::int16_t > sccc_encoder_bs
Definition: sccc_encoder.h:60
sccc_encoder< std::int32_t, std::int32_t > sccc_encoder_ii
Definition: sccc_encoder.h:64
Finite State Machine Specification class.
Definition: fsm.h:43
boost::shared_ptr< sccc_encoder< IN_T, OUT_T > > sptr
Definition: sccc_encoder.h:43