GNU Radio's LORA_SDR Package
whitening_impl.h
Go to the documentation of this file.
1 
2 
3 #ifndef INCLUDED_LORA_WHITENING_IMPL_H
4 #define INCLUDED_LORA_WHITENING_IMPL_H
5 
6 
7 #include <lora_sdr/whitening.h>
8 #include <lora_sdr/utilities.h>
9 namespace gr {
10  namespace lora_sdr {
11 
12  class whitening_impl : public whitening
13  {
14  private:
15  bool m_is_hex; ///< indicate that the payload is given by a string of hex values
16  std::vector<uint8_t> m_payload; ///< store the payload bytes
17  std::vector<std::string> payload_str;
18  bool m_file_source; ///< indicate that the payload are provided by a file through an input stream
19  void msg_handler(pmt::pmt_t message);
20 
21 
22  public:
23  whitening_impl(bool is_hex);
25 
26  // Where all the action really happens
27  int work(
28  int noutput_items,
29  gr_vector_const_void_star &input_items,
30  gr_vector_void_star &output_items
31  );
32  };
33  } // namespace lora
34 } // namespace gr
35 
36 #endif /* INCLUDED_LORA_WHITENING_IMPL_H */
<+description of block+>
Definition: whitening.h:36
Definition: add_crc.h:28
Definition: whitening_impl.h:12
int work(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)