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
6namespace gr {
7namespace lora_sdr {
8
10private:
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
48public:
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 */
Definition: RH_RF95_header_impl.h:9
RH_RF95_header_impl(uint8_t _to, uint8_t _from, uint8_t _id, uint8_t _flags)
Construct a new rh rf95 header impl object.
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)
~RH_RF95_header_impl()
Destroy the rh rf95 header impl object.
Encode the data in the RH_RF95 header format For more information about the implementation visit RH_R...
Definition: RH_RF95_header.h:38
Definition: add_crc.h:28