Loading...
Searching...
No Matches
gr-trellis/include/gnuradio/trellis/viterbi.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_H
#define VITERBI_H
#include <gnuradio/block.h>
#include <gnuradio/trellis/api.h>
#include <gnuradio/trellis/core_algorithms.h>
#include <gnuradio/trellis/fsm.h>
#include <cstdint>
namespace gr {
namespace trellis {
/*!
* \ingroup trellis_coding_blk
*/
template <class T>
class TRELLIS_API viterbi : virtual public block
{
public:
// gr::trellis::viterbi::sptr
typedef std::shared_ptr<viterbi<T>> sptr;
static sptr make(const fsm& FSM, int K, int S0, int SK);
virtual fsm FSM() const = 0;
virtual int K() const = 0;
virtual int S0() const = 0;
virtual int SK() 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;
};
typedef viterbi<std::uint8_t> viterbi_b;
typedef viterbi<std::int16_t> viterbi_s;
typedef viterbi<std::int32_t> viterbi_i;
} /* namespace trellis */
} /* namespace gr */
#endif /* VITERBI_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
Definition gr-trellis/include/gnuradio/trellis/viterbi.h:29
gr::trellis::viterbi::set_SK
virtual void set_SK(int SK)=0
gr::trellis::viterbi< std::uint8_t >::S0
virtual int S0() const=0
gr::trellis::viterbi::set_K
virtual void set_K(int K)=0
gr::trellis::viterbi::sptr
std::shared_ptr< viterbi< T > > sptr
Definition gr-trellis/include/gnuradio/trellis/viterbi.h:32
gr::trellis::viterbi::set_S0
virtual void set_S0(int S0)=0
gr::trellis::viterbi< std::uint8_t >::SK
virtual int SK() const=0
gr::trellis::viterbi::set_FSM
virtual void set_FSM(const fsm &FSM)=0
gr::trellis::viterbi< std::uint8_t >::FSM
virtual fsm FSM() const=0
gr::trellis::viterbi::make
static sptr make(const fsm &FSM, int K, int S0, int SK)
gr::trellis::viterbi< std::uint8_t >::K
virtual int K() const=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::trellis
Definition base.h:17
gr::trellis::viterbi_i
viterbi< std::int32_t > viterbi_i
Definition gr-trellis/include/gnuradio/trellis/viterbi.h:49
gr::trellis::viterbi_s
viterbi< std::int16_t > viterbi_s
Definition gr-trellis/include/gnuradio/trellis/viterbi.h:48
gr::trellis::viterbi_b
viterbi< std::uint8_t > viterbi_b
Definition gr-trellis/include/gnuradio/trellis/viterbi.h:47
gr
GNU Radio logging wrapper.
Definition basic_block.h:29