Loading...
Searching...
No Matches
gr-trellis/include/gnuradio/trellis/encoder.h
Go to the documentation of this file.
/* -*- c++ -*- */
/*
* Copyright 2004,2012,2018 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
* SPDX-License-Identifier: GPL-3.0-or-later
*
*/
#ifndef ENCODER_H
#define ENCODER_H
#include <gnuradio/sync_block.h>
#include <gnuradio/trellis/api.h>
#include <gnuradio/trellis/fsm.h>
#include <cstdint>
namespace gr {
namespace trellis {
/*!
* \brief Convolutional encoder.
* \ingroup trellis_coding_blk
*/
template <class IN_T, class OUT_T>
class TRELLIS_API encoder : virtual public sync_block
{
public:
typedef std::shared_ptr<encoder<IN_T, OUT_T>> sptr;
static sptr make(const fsm& FSM, int ST, int K = 0);
virtual fsm FSM() const = 0;
virtual int ST() const = 0;
virtual int K() const = 0;
virtual void set_FSM(const fsm& FSM) = 0;
virtual void set_ST(int ST) = 0;
virtual void set_K(int K) = 0;
};
typedef encoder<std::uint8_t, std::uint8_t> encoder_bb;
typedef encoder<std::uint8_t, std::int16_t> encoder_bs;
typedef encoder<std::uint8_t, std::int32_t> encoder_bi;
typedef encoder<std::int16_t, std::int16_t> encoder_ss;
typedef encoder<std::int16_t, std::int32_t> encoder_si;
typedef encoder<std::int32_t, std::int32_t> encoder_ii;
} /* namespace trellis */
} /* namespace gr */
#endif /* ENCODER_H */
gr::sync_block::sync_block
sync_block(void)
Definition sync_block.h:28
gr::trellis::encoder
Convolutional encoder.
Definition gr-trellis/include/gnuradio/trellis/encoder.h:28
gr::trellis::encoder::set_FSM
virtual void set_FSM(const fsm &FSM)=0
gr::trellis::encoder::set_K
virtual void set_K(int K)=0
gr::trellis::encoder< std::uint8_t, std::uint8_t >::ST
virtual int ST() const=0
gr::trellis::encoder< std::uint8_t, std::uint8_t >::K
virtual int K() const=0
gr::trellis::encoder::make
static sptr make(const fsm &FSM, int ST, int K=0)
gr::trellis::encoder::set_ST
virtual void set_ST(int ST)=0
gr::trellis::encoder< std::uint8_t, std::uint8_t >::FSM
virtual fsm FSM() const=0
gr::trellis::encoder::sptr
std::shared_ptr< encoder< IN_T, OUT_T > > sptr
Definition gr-trellis/include/gnuradio/trellis/encoder.h:30
gr::trellis::fsm
Finite State Machine Specification class.
Definition fsm.h:33
fsm.h
api.h
TRELLIS_API
#define TRELLIS_API
Definition gr-trellis/include/gnuradio/trellis/api.h:18
gr::trellis
Definition base.h:17
gr::trellis::encoder_bb
encoder< std::uint8_t, std::uint8_t > encoder_bb
Definition gr-trellis/include/gnuradio/trellis/encoder.h:41
gr::trellis::encoder_bi
encoder< std::uint8_t, std::int32_t > encoder_bi
Definition gr-trellis/include/gnuradio/trellis/encoder.h:43
gr::trellis::encoder_ii
encoder< std::int32_t, std::int32_t > encoder_ii
Definition gr-trellis/include/gnuradio/trellis/encoder.h:46
gr::trellis::encoder_bs
encoder< std::uint8_t, std::int16_t > encoder_bs
Definition gr-trellis/include/gnuradio/trellis/encoder.h:42
gr::trellis::encoder_ss
encoder< std::int16_t, std::int16_t > encoder_ss
Definition gr-trellis/include/gnuradio/trellis/encoder.h:44
gr::trellis::encoder_si
encoder< std::int16_t, std::int32_t > encoder_si
Definition gr-trellis/include/gnuradio/trellis/encoder.h:45
gr
GNU Radio logging wrapper.
Definition basic_block.h:29
sync_block.h