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
4
#include <
gnuradio/lora_sdr/hamming_enc.h
>
5
6
namespace
gr
{
7
namespace
lora_sdr
{
8
9
class
hamming_enc_impl
:
public
hamming_enc
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);
18
~hamming_enc_impl
();
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 */
gr::lora_sdr::hamming_enc_impl::get_cr
uint8_t get_cr()
gr::lora_sdr::hamming_enc_impl::set_cr
void set_cr(uint8_t cr)
gr::lora_sdr::hamming_enc_impl::set_sf
void set_sf(uint8_t sf)
gr::lora_sdr::hamming_enc_impl::hamming_enc_impl
hamming_enc_impl(uint8_t cr, uint8_t sf)
gr::lora_sdr::hamming_enc_impl::~hamming_enc_impl
~hamming_enc_impl()
gr::lora_sdr::hamming_enc_impl::work
int work(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
gr::lora_sdr::hamming_enc
<+description of block+>
Definition
hamming_enc.h:37
hamming_enc.h
gr::lora_sdr
Definition
add_crc.h:29
gr
Definition
add_crc.h:28
lib
hamming_enc_impl.h
Generated by
1.13.1