GNU Radio's LORA_SDR Package
dewhitening_impl.h
Go to the documentation of this file.
1#ifndef INCLUDED_LORA_DEWHITENING_IMPL_H
2#define INCLUDED_LORA_DEWHITENING_IMPL_H
3
4// #define GRLORA_DEBUG
6
7namespace gr {
8 namespace lora_sdr {
9
11 {
12 private:
13 int m_payload_len; ///< Payload length in bytes
14 int m_crc_presence; ///< indicate the precence of a CRC
15 int offset = 0; ///< The offset in the whitening table
16 std::vector<uint8_t> dewhitened; ///< The dewhitened bytes
17
18 /**
19 * \brief Handles the payload length received from the header_decoder block.
20 */
21 void header_pay_len_handler(pmt::pmt_t payload_len);
22
23 /**
24 * \brief Reset the block variables for a new frame.
25 */
26 void new_frame_handler(pmt::pmt_t id);
27 /**
28 * \brief Receive indication on the CRC presence
29 */
30 void header_crc_handler(pmt::pmt_t crc_presence);
31
32 public:
35
36 void forecast (int noutput_items, gr_vector_int &ninput_items_required);
37
38 int general_work(int noutput_items,
39 gr_vector_int &ninput_items,
40 gr_vector_const_void_star &input_items,
41 gr_vector_void_star &output_items);
42 };
43
44 } // namespace lora
45} // namespace gr
46
47#endif /* INCLUDED_LORA_DEWHITENING_IMPL_H */
Definition dewhitening_impl.h:11
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 dewhitening.h:37
Definition add_crc.h:28