GNU Radio Manual and C++ API Reference  3.8.1.0
The Free & Open Software Radio Ecosystem
pccc_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 PCCC_ENCODER_H
24 #define PCCC_ENCODER_H
25 
26 #include <gnuradio/sync_block.h>
27 #include <gnuradio/trellis/api.h>
28 #include <gnuradio/trellis/fsm.h>
30 #include <cstdint>
31 #include <vector>
32 
33 namespace gr {
34 namespace trellis {
35 
36 /*!
37  * \brief PCCC encoder.
38  * \ingroup trellis_coding_blk
39  */
40 template <class IN_T, class OUT_T>
41 class TRELLIS_API pccc_encoder : virtual public sync_block
42 {
43 public:
44  typedef boost::shared_ptr<pccc_encoder<IN_T, OUT_T>> sptr;
45 
46  static sptr make(const fsm& FSM1,
47  int ST1,
48  const fsm& FSM2,
49  int ST2,
50  const interleaver& INTERLEAVER,
51  int blocklength);
52 
53  virtual fsm FSM1() const = 0;
54  virtual int ST1() const = 0;
55  virtual fsm FSM2() const = 0;
56  virtual int ST2() const = 0;
57  virtual interleaver INTERLEAVER() const = 0;
58  virtual int blocklength() const = 0;
59 };
66 
67 
68 } /* namespace trellis */
69 } /* namespace gr */
70 
71 #endif /* PCCC_ENCODER_H */
pccc_encoder< std::int16_t, std::int32_t > pccc_encoder_si
Definition: pccc_encoder.h:64
pccc_encoder< std::uint8_t, std::int16_t > pccc_encoder_bs
Definition: pccc_encoder.h:61
boost::shared_ptr< pccc_encoder< IN_T, OUT_T > > sptr
Definition: pccc_encoder.h:44
pccc_encoder< std::uint8_t, std::uint8_t > pccc_encoder_bb
Definition: pccc_encoder.h:60
INTERLEAVER class.
Definition: interleaver.h:37
pccc_encoder< std::int32_t, std::int32_t > pccc_encoder_ii
Definition: pccc_encoder.h:65
pccc_encoder< std::int16_t, std::int16_t > pccc_encoder_ss
Definition: pccc_encoder.h:63
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
PCCC encoder.
Definition: pccc_encoder.h:41
pccc_encoder< std::uint8_t, std::int32_t > pccc_encoder_bi
Definition: pccc_encoder.h:62
Finite State Machine Specification class.
Definition: fsm.h:43