GNU Radio's LORA_SDR Package
data_source_impl.h
Go to the documentation of this file.
1
#ifndef INCLUDED_LORA_SDR_DATA_SOURCE_IMPL_H
2
#define INCLUDED_LORA_SDR_DATA_SOURCE_IMPL_H
3
4
#include <
gnuradio/lora_sdr/data_source.h
>
5
#include <
gnuradio/lora_sdr/utilities.h
>
6
7
namespace
gr
{
8
namespace
lora_sdr {
9
10
class
data_source_impl
:
public
data_source
11
{
12
private
:
13
int
frame_cnt;
///< count the number of frame sent
14
int
m_n_frames;
///< The maximal number of frame to send
15
int
m_pay_len;
///< The payload length
16
17
/**
18
* \brief return a random string containing [a-z A-Z 0-9]
19
*
20
* \param nbytes
21
* The number of char in the string
22
*/
23
std::string random_string(
int
nbytes);
24
/**
25
* \brief Handles trigger messages
26
*/
27
void
trigg_handler(pmt::pmt_t
id
);
28
29
public
:
30
data_source_impl
(
int
pay_len,
int
n_frames);
31
~data_source_impl
();
32
33
int
work
(
int
noutput_items,
34
gr_vector_const_void_star &input_items,
35
gr_vector_void_star &output_items);
36
};
37
}
// namespace lora_sdr
38
}
// namespace gr
39
40
#endif
/* INCLUDED_LORA_SDR_DATA_SOURCE_IMPL_H */
gr::lora_sdr::data_source_impl
Definition
data_source_impl.h:11
gr::lora_sdr::data_source_impl::work
int work(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
gr::lora_sdr::data_source_impl::~data_source_impl
~data_source_impl()
gr::lora_sdr::data_source_impl::data_source_impl
data_source_impl(int pay_len, int n_frames)
gr::lora_sdr::data_source
<+description of block+>
Definition
data_source.h:37
data_source.h
gr
Definition
add_crc.h:28
utilities.h
lib
data_source_impl.h
Generated by
1.10.0