GNU Radio's LORA_SDR Package
hamming_enc_impl.h
Go to the documentation of this file.
1#ifndef INCLUDED_LORA_HAMMING_ENC_IMPL_H
2#define INCLUDED_LORA_HAMMING_ENC_IMPL_H
3
5
6namespace gr {
7 namespace lora_sdr {
8
10 {
11 private:
12 uint8_t m_cr; ///< Transmission coding rate
13 uint8_t m_sf; ///< Transmission spreading factor
14 int m_cnt; ///< count the number of processed items in the current frame
15
16 public:
17 hamming_enc_impl(uint8_t cr, uint8_t sf);
19
20
21 void set_cr(uint8_t cr);
22 uint8_t get_cr();
23 void set_sf(uint8_t sf);
24
25
26 // Where all the action really happens
27 int work(
28 int noutput_items,
29 gr_vector_const_void_star &input_items,
30 gr_vector_void_star &output_items
31 );
32 };
33
34 } // namespace lora
35} // namespace gr
36
37#endif /* INCLUDED_LORA_HAMMING_ENC_IMPL_H */
Definition hamming_enc_impl.h:10
hamming_enc_impl(uint8_t cr, uint8_t sf)
int work(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
<+description of block+>
Definition hamming_enc.h:37
Definition add_crc.h:28