GNU Radio's SATELLITES Package
decode_rs_impl.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2016 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_IMPL_H
12 #define INCLUDED_SATELLITES_DECODE_RS_IMPL_H
13 
14 #include <satellites/decode_rs.h>
15 
16 #include <array>
17 
18 #include "rs.h"
19 
20 namespace gr {
21 namespace satellites {
22 
23 class decode_rs_impl : public decode_rs
24 {
25 private:
26  bool d_verbose;
27  int d_basis;
28  std::array<uint8_t, MAX_FRAME_LEN> d_data;
29 
30 public:
31  decode_rs_impl(bool verbose, int basis);
33 
34  // Where all the action really happens
35  void forecast(int noutput_items, gr_vector_int& ninput_items_required);
36 
37  int general_work(int noutput_items,
38  gr_vector_int& ninput_items,
39  gr_vector_const_void_star& input_items,
40  gr_vector_void_star& output_items);
41 
42  void msg_handler(pmt::pmt_t pmt_msg);
43 };
44 
45 } // namespace satellites
46 } // namespace gr
47 
48 #endif /* INCLUDED_SATELLITES_DECODE_RS_IMPL_H */
Definition: decode_rs_impl.h:24
int general_work(int noutput_items, gr_vector_int &ninput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
void forecast(int noutput_items, gr_vector_int &ninput_items_required)
decode_rs_impl(bool verbose, int basis)
void msg_handler(pmt::pmt_t pmt_msg)
<+description of block+>
Definition: include/satellites/decode_rs.h:26
Definition: ao40_rs_decoder.h:17