codeword_demapper_ib_impl.h
Go to the documentation of this file.
/* -*- c++ -*- */
/*
* Copyright 2015 Felix Wunsch, Communications Engineering Lab (CEL) / Karlsruhe Institute of Technology (KIT) <wunsch.felix@googlemail.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_IEEE802_15_4_CODEWORD_DEMAPPER_IB_IMPL_H
#define INCLUDED_IEEE802_15_4_CODEWORD_DEMAPPER_IB_IMPL_H
#include <ieee802_15_4/codeword_demapper_ib.h>
namespace gr {
namespace ieee802_15_4 {
class codeword_demapper_ib_impl : public codeword_demapper_ib
{
private:
int d_bits_per_cw;
std::vector < std::vector<int> > d_codewords;
int d_len_cw;
float d_coderate;
std::vector<int> calc_distances(const int* in);
std::vector<unsigned char> dec2bin(int dec, int nbit);
public:
codeword_demapper_ib_impl(int bits_per_cw, std::vector< std::vector< int > > codewords);
~codeword_demapper_ib_impl();
void forecast (int noutput_items, gr_vector_int &ninput_items_required);
int general_work(int noutput_items,
gr_vector_int &ninput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items);
};
} // namespace ieee802_15_4
} // namespace gr
#endif /* INCLUDED_IEEE802_15_4_CODEWORD_DEMAPPER_IB_IMPL_H */
gr::ieee802_15_4::codeword_demapper_ib_impl
Definition: codeword_demapper_ib_impl.h:30
gr::ieee802_15_4::codeword_demapper_ib_impl::general_work
int general_work(int noutput_items, gr_vector_int &ninput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
gr::ieee802_15_4::codeword_demapper_ib_impl::forecast
void forecast(int noutput_items, gr_vector_int &ninput_items_required)
gr::ieee802_15_4::codeword_demapper_ib_impl::~codeword_demapper_ib_impl
~codeword_demapper_ib_impl()
gr::ieee802_15_4::codeword_demapper_ib_impl::codeword_demapper_ib_impl
codeword_demapper_ib_impl(int bits_per_cw, std::vector< std::vector< int > > codewords)
gr::ieee802_15_4::codeword_demapper_ib
<+description of block+>
Definition: codeword_demapper_ib.h:37
codeword_demapper_ib.h
gr
Definition: access_code_prefixer.h:23