Loading...
Searching...
No Matches
viterbi_combined.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 VITERBI_COMBINED_H
#define VITERBI_COMBINED_H
#include <gnuradio/block.h>
#include <gnuradio/trellis/api.h>
#include <gnuradio/trellis/calc_metric.h>
#include <gnuradio/trellis/core_algorithms.h>
#include <gnuradio/trellis/fsm.h>
#include <cstdint>
namespace gr {
namespace trellis {
/*!
* \ingroup trellis_coding_blk
*/
template <class IN_T, class OUT_T>
class TRELLIS_API viterbi_combined : virtual public block
{
public:
typedef std::shared_ptr<viterbi_combined<IN_T, OUT_T>> sptr;
static sptr make(const fsm& FSM,
int K,
int S0,
int SK,
int D,
const std::vector<IN_T>& TABLE,
digital::trellis_metric_type_t TYPE);
virtual fsm FSM() const = 0;
virtual int K() const = 0;
virtual int S0() const = 0;
virtual int SK() const = 0;
virtual int D() const = 0;
virtual std::vector<IN_T> TABLE() const = 0;
virtual digital::trellis_metric_type_t TYPE() const = 0;
virtual void set_FSM(const fsm& FSM) = 0;
virtual void set_K(int K) = 0;
virtual void set_S0(int S0) = 0;
virtual void set_SK(int SK) = 0;
virtual void set_D(int D) = 0;
virtual void set_TABLE(const std::vector<IN_T>& table) = 0;
virtual void set_TYPE(digital::trellis_metric_type_t type) = 0;
};
typedef viterbi_combined<std::int16_t, std::uint8_t> viterbi_combined_sb;
typedef viterbi_combined<std::int16_t, std::int16_t> viterbi_combined_ss;
typedef viterbi_combined<std::int16_t, std::int32_t> viterbi_combined_si;
typedef viterbi_combined<std::int32_t, std::uint8_t> viterbi_combined_ib;
typedef viterbi_combined<std::int32_t, std::int16_t> viterbi_combined_is;
typedef viterbi_combined<std::int32_t, std::int32_t> viterbi_combined_ii;
typedef viterbi_combined<float, std::uint8_t> viterbi_combined_fb;
typedef viterbi_combined<float, std::int16_t> viterbi_combined_fs;
typedef viterbi_combined<float, std::int32_t> viterbi_combined_fi;
typedef viterbi_combined<gr_complex, std::uint8_t> viterbi_combined_cb;
typedef viterbi_combined<gr_complex, std::int16_t> viterbi_combined_cs;
typedef viterbi_combined<gr_complex, std::int32_t> viterbi_combined_ci;
} /* namespace trellis */
} /* namespace gr */
#endif /* VITERBI_COMBINED_H */
calc_metric.h
gr::block::block
block(void)
Definition gnuradio-runtime/include/gnuradio/block.h:806
gr::trellis::fsm
Finite State Machine Specification class.
Definition fsm.h:33
gr::trellis::viterbi_combined
Definition viterbi_combined.h:29
gr::trellis::viterbi_combined::make
static sptr make(const fsm &FSM, int K, int S0, int SK, int D, const std::vector< IN_T > &TABLE, digital::trellis_metric_type_t TYPE)
gr::trellis::viterbi_combined::set_K
virtual void set_K(int K)=0
gr::trellis::viterbi_combined< std::int16_t, std::uint8_t >::TABLE
virtual std::vector< std::int16_t > TABLE() const=0
gr::trellis::viterbi_combined::set_TABLE
virtual void set_TABLE(const std::vector< IN_T > &table)=0
gr::trellis::viterbi_combined::set_FSM
virtual void set_FSM(const fsm &FSM)=0
gr::trellis::viterbi_combined< std::int16_t, std::uint8_t >::D
virtual int D() const=0
gr::trellis::viterbi_combined< std::int16_t, std::uint8_t >::SK
virtual int SK() const=0
gr::trellis::viterbi_combined::set_SK
virtual void set_SK(int SK)=0
gr::trellis::viterbi_combined::set_TYPE
virtual void set_TYPE(digital::trellis_metric_type_t type)=0
gr::trellis::viterbi_combined< std::int16_t, std::uint8_t >::K
virtual int K() const=0
gr::trellis::viterbi_combined< std::int16_t, std::uint8_t >::S0
virtual int S0() const=0
gr::trellis::viterbi_combined::sptr
std::shared_ptr< viterbi_combined< IN_T, OUT_T > > sptr
Definition viterbi_combined.h:31
gr::trellis::viterbi_combined::set_S0
virtual void set_S0(int S0)=0
gr::trellis::viterbi_combined< std::int16_t, std::uint8_t >::TYPE
virtual digital::trellis_metric_type_t TYPE() const=0
gr::trellis::viterbi_combined< std::int16_t, std::uint8_t >::FSM
virtual fsm FSM() const=0
gr::trellis::viterbi_combined::set_D
virtual void set_D(int D)=0
core_algorithms.h
fsm.h
block.h
api.h
TRELLIS_API
#define TRELLIS_API
Definition gr-trellis/include/gnuradio/trellis/api.h:18
gr::digital::trellis_metric_type_t
trellis_metric_type_t
Definition metric_type.h:17
gr::trellis
Definition base.h:17
gr::trellis::viterbi_combined_sb
viterbi_combined< std::int16_t, std::uint8_t > viterbi_combined_sb
Definition viterbi_combined.h:58
gr::trellis::viterbi_combined_ii
viterbi_combined< std::int32_t, std::int32_t > viterbi_combined_ii
Definition viterbi_combined.h:63
gr::trellis::viterbi_combined_fs
viterbi_combined< float, std::int16_t > viterbi_combined_fs
Definition viterbi_combined.h:65
gr::trellis::viterbi_combined_ss
viterbi_combined< std::int16_t, std::int16_t > viterbi_combined_ss
Definition viterbi_combined.h:59
gr::trellis::viterbi_combined_ci
viterbi_combined< gr_complex, std::int32_t > viterbi_combined_ci
Definition viterbi_combined.h:69
gr::trellis::viterbi_combined_ib
viterbi_combined< std::int32_t, std::uint8_t > viterbi_combined_ib
Definition viterbi_combined.h:61
gr::trellis::viterbi_combined_cb
viterbi_combined< gr_complex, std::uint8_t > viterbi_combined_cb
Definition viterbi_combined.h:67
gr::trellis::viterbi_combined_is
viterbi_combined< std::int32_t, std::int16_t > viterbi_combined_is
Definition viterbi_combined.h:62
gr::trellis::viterbi_combined_fi
viterbi_combined< float, std::int32_t > viterbi_combined_fi
Definition viterbi_combined.h:66
gr::trellis::viterbi_combined_cs
viterbi_combined< gr_complex, std::int16_t > viterbi_combined_cs
Definition viterbi_combined.h:68
gr::trellis::viterbi_combined_si
viterbi_combined< std::int16_t, std::int32_t > viterbi_combined_si
Definition viterbi_combined.h:60
gr::trellis::viterbi_combined_fb
viterbi_combined< float, std::uint8_t > viterbi_combined_fb
Definition viterbi_combined.h:64
gr
GNU Radio logging wrapper.
Definition basic_block.h:29