GNU Radio's LORA_SDR Package
data_source_impl.h
Go to the documentation of this file.
1 #ifndef INCLUDED_LORA_SDR_DATA_SOURCE_IMPL_H
2 #define INCLUDED_LORA_SDR_DATA_SOURCE_IMPL_H
3 
6 
7 namespace gr {
8  namespace lora_sdr {
9 
11  {
12  private:
13  int frame_cnt; ///< count the number of frame sent
14  int m_n_frames;///< The maximal number of frame to send
15  int m_pay_len; ///< The payload length
16 
17  /**
18  * \brief return a random string containing [a-z A-Z 0-9]
19  *
20  * \param nbytes
21  * The number of char in the string
22  */
23  std::string random_string(int nbytes);
24  /**
25  * \brief Handles trigger messages
26  */
27  void trigg_handler(pmt::pmt_t id);
28 
29  public:
30  data_source_impl(int pay_len,int n_frames);
32 
33  int work(int noutput_items,
34  gr_vector_const_void_star &input_items,
35  gr_vector_void_star &output_items);
36  };
37  } // namespace lora_sdr
38 } // namespace gr
39 
40 #endif /* INCLUDED_LORA_SDR_DATA_SOURCE_IMPL_H */
Definition: data_source_impl.h:11
int work(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
data_source_impl(int pay_len, int n_frames)
<+description of block+>
Definition: data_source.h:37
Definition: add_crc.h:28