GNU Radio's LORA_SDR Package
whitening_impl.h
Go to the documentation of this file.
1
2
3#ifndef INCLUDED_LORA_WHITENING_IMPL_H
4#define INCLUDED_LORA_WHITENING_IMPL_H
5
8namespace gr
9{
10 namespace lora_sdr
11 {
12
14 {
15 private:
16 bool m_is_hex; ///< indicate that the payload is given by a string of hex values
17 char m_separator; ///< the separator for file inputs
18 std::vector<uint8_t> m_payload; ///< store the payload bytes
19 std::vector<std::string> payload_str; ///< payload as a string
20 bool m_file_source; ///< indicate that the payload are provided by a file through an input stream
21 bool m_use_length_tag; ///< wheter to use the length tag to separate frames or the separator character
22 std::string m_length_tag_name; ///< name/key of the length tag
23 int m_input_byte_cnt; ///< number of bytes from the input already processed
24 uint64_t m_tag_offset; ///< offset of the length tag
25
26 void msg_handler(pmt::pmt_t message);
27 void frame_info_handler(pmt::pmt_t frame_info);
28
29
30 public:
31 whitening_impl(bool is_hex, bool use_length_tag, char separator, std::string length_tag_name);
33
34 // Where all the action really happens
35 int work(
36 int noutput_items,
37 gr_vector_const_void_star &input_items,
38 gr_vector_void_star &output_items);
39 };
40 } // namespace lora
41} // namespace gr
42
43#endif /* INCLUDED_LORA_WHITENING_IMPL_H */
Definition whitening_impl.h:14
whitening_impl(bool is_hex, bool use_length_tag, char separator, std::string length_tag_name)
int work(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
<+description of block+>
Definition whitening.h:37
Definition add_crc.h:28