GNU Radio's LORA_SDR Package
interleaver_impl.h
Go to the documentation of this file.
1 #ifndef INCLUDED_LORA_INTERLEAVER_IMPL_H
2 #define INCLUDED_LORA_INTERLEAVER_IMPL_H
3 
4 #include <lora_sdr/interleaver.h>
5 // #define GRLORA_DEBUG
6 
7 namespace gr {
8  namespace lora_sdr {
9 
11  {
12  private:
13  uint8_t m_cr; ///< Transmission coding rate
14  uint8_t m_sf; ///< Transmission spreading factor
15 
16  uint32_t cw_cnt; ///< count the number of codewords
17  int m_frame_len; ///<length of the frame in number of items
18 
19  public:
20  interleaver_impl(uint8_t cr, uint8_t sf);
22 
23  void set_cr(uint8_t cr);
24  uint8_t get_cr();
25  void set_sf(uint8_t sf);
26 
27  void forecast (int noutput_items, gr_vector_int &ninput_items_required);
28 
29  int general_work(int noutput_items,
30  gr_vector_int &ninput_items,
31  gr_vector_const_void_star &input_items,
32  gr_vector_void_star &output_items);
33 
34  };
35 
36  } // namespace lora
37 } // namespace gr
38 
39 #endif /* INCLUDED_LORA_INTERLEAVER_IMPL_H */
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)
<+description of block+>
Definition: interleaver.h:36
Definition: add_crc.h:28
Definition: interleaver_impl.h:10
interleaver_impl(uint8_t cr, uint8_t sf)