GNU Radio's LORA_SDR Package
header_impl.h
Go to the documentation of this file.
1#ifndef INCLUDED_LORA_HEADER_IMPL_H
2#define INCLUDED_LORA_HEADER_IMPL_H
3
5
6namespace gr {
7 namespace lora_sdr {
8
9 class header_impl : public header
10 {
11 private:
12 bool m_impl_head; ///< indicate if the header is implicit
13 bool m_has_crc; ///< indicate the presence of a payload crc
14 uint8_t m_cr; ///< Transmission coding rate
15 uint8_t m_payload_len; ///< Payload length
16 unsigned int m_cnt_nibbles; ///< count the processes nibbles in a frame
17 unsigned int m_cnt_header_nibbles; ///< count the number of explicit header nibbles output
18 std::vector<uint8_t> m_header; ///< contain the header to prepend
19
20 bool m_has_config_tag; ///<indicate that a configuration tag was received
21
22
23 std::vector<tag_t> m_tags;
24 void msg_handler(pmt::pmt_t message);
25
26 public:
27 header_impl(bool impl_head, bool has_crc, uint8_t cr);
29
30 void set_cr(uint8_t cr);
31 uint8_t get_cr();
32
33
34 void forecast (int noutput_items, gr_vector_int &ninput_items_required);
35
36 int general_work(int noutput_items,
37 gr_vector_int &ninput_items,
38 gr_vector_const_void_star &input_items,
39 gr_vector_void_star &output_items);
40
41 };
42
43 } // namespace lora
44} // namespace gr
45
46#endif /* INCLUDED_LORA_HEADER_IMPL_H */
Definition header_impl.h:10
void set_cr(uint8_t cr)
header_impl(bool impl_head, bool has_crc, uint8_t cr)
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 header.h:37
Definition add_crc.h:28