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