mirror of
https://github.com/hb9fxq/gr-digitalhf
synced 2024-12-22 15:10:00 +00:00
54 lines
1.5 KiB
C++
54 lines
1.5 KiB
C++
/* -*- c++ -*- */
|
|
/*
|
|
* Copyright 2018 hcab14@mail.com.
|
|
*
|
|
* This is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 3, or (at your option)
|
|
* any later version.
|
|
*
|
|
* This software is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this software; see the file COPYING. If not, write to
|
|
* the Free Software Foundation, Inc., 51 Franklin Street,
|
|
* Boston, MA 02110-1301, USA.
|
|
*/
|
|
|
|
#ifndef INCLUDED_DIGITALHF_VITERBI39IMPL_H
|
|
#define INCLUDED_DIGITALHF_VITERBI39IMPL_H
|
|
|
|
#include <digitalhf/viterbi39.h>
|
|
|
|
#include "viterbi.h"
|
|
#include "llr_to_prob.h"
|
|
|
|
namespace gr {
|
|
namespace digitalhf {
|
|
|
|
class viterbi39_impl : public viterbi39, public llr_to_prob<1024> {
|
|
private:
|
|
viterbi<3,9> _v;
|
|
float _quality;
|
|
size_t _num_bits;
|
|
std::vector<std::uint8_t> _bits;
|
|
|
|
public:
|
|
viterbi39_impl(std::uint32_t pol0,
|
|
std::uint32_t pol1,
|
|
std::uint32_t pol2);
|
|
virtual ~viterbi39_impl();
|
|
|
|
virtual void reset();
|
|
virtual const std::vector<std::uint8_t>& udpate(const std::vector<float>& soft_dec);
|
|
virtual float quality();
|
|
} ;
|
|
|
|
} // namespace digitalhf
|
|
} // namespace gr
|
|
|
|
#endif /* INCLUDED_DIGITALHF_VITERBI39IMPL_H */
|