GNU Radio's SATELLITES Package
decode_rs_general_impl.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2018,2020 Daniel Estevez <daniel@destevez.net>
4  *
5  * This file is part of gr-satellites
6  *
7  * SPDX-License-Identifier: GPL-3.0-or-later
8  *
9  */
10 
11 #ifndef INCLUDED_SATELLITES_DECODE_RS_GENERAL_IMPL_H
12 #define INCLUDED_SATELLITES_DECODE_RS_GENERAL_IMPL_H
13 
15 
16 #include <array>
17 
18 #include "rs.h"
19 
20 namespace gr {
21 namespace satellites {
22 
24 {
25 private:
26  const bool d_verbose;
27  void* d_rs;
28  const unsigned d_nroots;
29  std::array<uint8_t, MAX_FRAME_LEN> d_data;
30 
31 public:
32  decode_rs_general_impl(int gfpoly, int fcr, int prim, int nroots, bool verbose);
34 
35  // Where all the action really happens
36  void forecast(int noutput_items, gr_vector_int& ninput_items_required);
37 
38  int general_work(int noutput_items,
39  gr_vector_int& ninput_items,
40  gr_vector_const_void_star& input_items,
41  gr_vector_void_star& output_items);
42 
43  void msg_handler(pmt::pmt_t pmt_msg);
44 };
45 
46 } // namespace satellites
47 } // namespace gr
48 
49 #endif /* INCLUDED_SATELLITES_DECODE_RS_GENERAL_IMPL_H */
gr::satellites::decode_rs_general_impl::msg_handler
void msg_handler(pmt::pmt_t pmt_msg)
nroots
rs nroots
Definition: init_rs.h:80
gr::satellites::decode_rs_general_impl::decode_rs_general_impl
decode_rs_general_impl(int gfpoly, int fcr, int prim, int nroots, bool verbose)
gr::satellites::decode_rs_general_impl::forecast
void forecast(int noutput_items, gr_vector_int &ninput_items_required)
fcr
rs fcr
Definition: init_rs.h:78
gr::satellites::decode_rs_general_impl
Definition: decode_rs_general_impl.h:24
gr::satellites::decode_rs_general_impl::~decode_rs_general_impl
~decode_rs_general_impl()
gr::satellites::decode_rs_general
<+description of block+>
Definition: decode_rs_general.h:26
gr::satellites::decode_rs_general_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)
prim
rs prim
Definition: init_rs.h:79
rs.h
gr
Definition: ao40_rs_decoder.h:17
decode_rs_general.h