GNU Radio's LORA_SDR Package
hamming_dec_impl.h
Go to the documentation of this file.
1#ifndef INCLUDED_LORA_hamming_dec_IMPL_H
2#define INCLUDED_LORA_hamming_dec_IMPL_H
3
5
6namespace gr {
7namespace lora_sdr {
8
10private:
11 /**
12 * @brief Transmission coding rate
13 *
14 */
15 uint8_t m_cr;
16
17 /**
18 * @brief Coding rate use for the block
19 *
20 */
21 uint8_t cr_app;
22
23 /**
24 * @brief Indicate that it is the first block
25 *
26 */
27 bool is_header;
28
29public:
30 /**
31 * @brief Construct a new hamming dec impl object
32 *
33 */
35
36 /**
37 * @brief Destroy the hamming dec impl object
38 *
39 */
41
42 /**
43 * @brief Main function where the actual computation resides
44 *
45 * @param noutput_items : number of output items
46 * @param input_items : input items (i.e. data from deinterleaver)
47 * @param output_items : output data
48 * @return int
49 */
50 int work(int noutput_items, gr_vector_const_void_star &input_items,
51 gr_vector_void_star &output_items);
52};
53
54} // namespace lora_sdr
55} // namespace gr
56
57#endif /* INCLUDED_LORA_hamming_dec_IMPL_H */
Definition: hamming_dec_impl.h:9
hamming_dec_impl()
Construct a new hamming dec impl object.
~hamming_dec_impl()
Destroy the hamming dec impl object.
int work(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
Main function where the actual computation resides.
Hamming decoding stage, decode the received payload. If necessary this block will preform error detec...
Definition: hamming_dec.h:39
Definition: add_crc.h:28