GNU Radio Manual and C++ API Reference 3.8.5.0
The Free & Open Software Radio Ecosystem
 
Loading...
Searching...
No Matches
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>
30#include <cstdint>
31#include <vector>
32
33namespace gr {
34namespace trellis {
35
36/*!
37 * \brief PCCC encoder.
38 * \ingroup trellis_coding_blk
39 */
40template <class IN_T, class OUT_T>
41class TRELLIS_API pccc_encoder : virtual public sync_block
42{
43public:
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 */
synchronous 1:1 input to output with history
Definition sync_block.h:38
Finite State Machine Specification class.
Definition fsm.h:45
INTERLEAVER class.
Definition interleaver.h:38
PCCC encoder.
Definition pccc_encoder.h:42
virtual fsm FSM2() const =0
virtual int ST1() const =0
virtual int ST2() const =0
virtual fsm FSM1() const =0
static sptr make(const fsm &FSM1, int ST1, const fsm &FSM2, int ST2, const interleaver &INTERLEAVER, int blocklength)
virtual interleaver INTERLEAVER() const =0
boost::shared_ptr< pccc_encoder< IN_T, OUT_T > > sptr
Definition pccc_encoder.h:44
virtual int blocklength() const =0
#define TRELLIS_API
Definition gr-trellis/include/gnuradio/trellis/api.h:30
pccc_encoder< std::uint8_t, std::uint8_t > pccc_encoder_bb
Definition pccc_encoder.h:60
pccc_encoder< std::int16_t, std::int16_t > pccc_encoder_ss
Definition pccc_encoder.h:63
pccc_encoder< std::uint8_t, std::int32_t > pccc_encoder_bi
Definition pccc_encoder.h:62
pccc_encoder< std::int32_t, std::int32_t > pccc_encoder_ii
Definition pccc_encoder.h:65
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
GNU Radio logging wrapper for log4cpp library (C++ port of log4j)
Definition basic_block.h:46