GNU Radio's LORA_SDR Package
RH_RF95_header_impl.h
Go to the documentation of this file.
1 #ifndef INCLUDED_LORA_SDR_RH_RF95_HEADER_IMPL_H
2 #define INCLUDED_LORA_SDR_RH_RF95_HEADER_IMPL_H
3 
5 
6 namespace gr {
7 namespace lora_sdr {
8 
10 private:
11  /**
12  * @brief radiohead specific header field "to"
13  *
14  */
15  char m_to;
16 
17  /**
18  * @brief radiohead specific header field "from"
19  *
20  */
21  char m_from;
22 
23  /**
24  * @brief radiohead specific header field "id"
25  *
26  */
27  char m_id;
28 
29  /**
30  * @brief radiohead specific header field "flags"
31  *
32  */
33  char m_flags;
34 
35  /**
36  * @brief <payload bytes
37  *
38  */
39  std::vector<uint8_t> m_payload;
40 
41  /**
42  * @brief
43  *
44  * @param message
45  */
46  void msg_handler(pmt::pmt_t message);
47 
48 public:
49  /**
50  * @brief Construct a new rh rf95 header impl object
51  *
52  * @param _to
53  * @param _from
54  * @param _id
55  * @param _flags
56  */
57  RH_RF95_header_impl(uint8_t _to, uint8_t _from, uint8_t _id, uint8_t _flags);
58  /**
59  * @brief Destroy the rh rf95 header impl object
60  *
61  */
63 
64  /**
65  * @brief
66  *
67  * @param noutput_items
68  * @param ninput_items_required
69  */
70  void forecast(int noutput_items, gr_vector_int &ninput_items_required);
71 
72  /**
73  * @brief
74  *
75  * @param noutput_items
76  * @param ninput_items
77  * @param input_items
78  * @param output_items
79  * @return int
80  */
81  int general_work(int noutput_items, gr_vector_int &ninput_items,
82  gr_vector_const_void_star &input_items,
83  gr_vector_void_star &output_items);
84 };
85 
86 } // namespace lora_sdr
87 } // namespace gr
88 
89 #endif /* INCLUDED_LORA_SDR_RH_RF95_HEADER_IMPL_H */
gr::lora_sdr::RH_RF95_header_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)
RH_RF95_header.h
gr::lora_sdr::RH_RF95_header_impl::~RH_RF95_header_impl
~RH_RF95_header_impl()
Destroy the rh rf95 header impl object.
gr::lora_sdr::RH_RF95_header_impl::forecast
void forecast(int noutput_items, gr_vector_int &ninput_items_required)
gr::lora_sdr::RH_RF95_header
Encode the data in the RH_RF95 header format For more information about the implementation visit RH_R...
Definition: RH_RF95_header.h:37
gr
Definition: add_crc.h:28
gr::lora_sdr::RH_RF95_header_impl
Definition: RH_RF95_header_impl.h:9
gr::lora_sdr::RH_RF95_header_impl::RH_RF95_header_impl
RH_RF95_header_impl(uint8_t _to, uint8_t _from, uint8_t _id, uint8_t _flags)
Construct a new rh rf95 header impl object.