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
4
#include <
lora_sdr/hamming_dec.h
>
5
6
namespace
gr
{
7
namespace
lora_sdr {
8
9
class
hamming_dec_impl
:
public
hamming_dec
{
10
private
:
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
29
public
:
30
/**
31
* @brief Construct a new hamming dec impl object
32
*
33
*/
34
hamming_dec_impl
();
35
36
/**
37
* @brief Destroy the hamming dec impl object
38
*
39
*/
40
~hamming_dec_impl
();
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 */
gr::lora_sdr::hamming_dec
Hamming decoding stage, decode the received payload. If necessary this block will preform error detec...
Definition:
hamming_dec.h:38
hamming_dec.h
gr::lora_sdr::hamming_dec_impl::hamming_dec_impl
hamming_dec_impl()
Construct a new hamming dec impl object.
gr::lora_sdr::hamming_dec_impl
Definition:
hamming_dec_impl.h:9
gr
Definition:
add_crc.h:28
gr::lora_sdr::hamming_dec_impl::work
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.
gr::lora_sdr::hamming_dec_impl::~hamming_dec_impl
~hamming_dec_impl()
Destroy the hamming dec impl object.
gr-lora_sdr
lib
hamming_dec_impl.h
Generated by
1.8.17