GNU Radio's LORA_SDR Package
data_source_sim.h
Go to the documentation of this file.
1
/**
2
* @file data_source_sim.h
3
* @author your name (you@domain.com)
4
* @brief
5
* @version 0.1
6
* @date 2021-01-05
7
*
8
* @copyright Copyright (c) 2021
9
*
10
*/
11
12
#ifndef INCLUDED_LORA_SDR_DATA_SOURCE_SIM_H
13
#define INCLUDED_LORA_SDR_DATA_SOURCE_SIM_H
14
15
#include <
lora_sdr/api.h
>
16
#include <gnuradio/sync_block.h>
17
18
namespace
gr
{
19
namespace
lora_sdr {
20
21
/*!
22
* \brief Data source that can both generate random strings or static strings, for more information about the implementation visit data_source_impl
23
* Main difference from data_source is that this implementation uses an internal uniform distribution, for the timing of the msg pmt channel.
24
* \ingroup lora_sdr
25
*
26
*/
27
class
LORA_SDR_API
data_source_sim
:
virtual
public
gr::block
28
{
29
public
:
30
typedef
std::shared_ptr<data_source_sim>
sptr
;
31
32
/*!
33
* \brief Return a shared_ptr to a new instance of lora_sdr::data_source.
34
*
35
* To avoid accidental use of raw pointers, lora_sdr::data_source's
36
* constructor is in a private implementation
37
* class. lora_sdr::data_source::make is the public interface for
38
* creating new instances.
39
*/
40
static
sptr
make(
int
pay_len,
int
n_frames, std::string string_input, uint32_t mean,
bool
exit_control);
41
};
42
43
}
// namespace lora_sdr
44
}
// namespace gr
45
46
#endif
/* INCLUDED_LORA_SDR_DATA_SOURCE_H */
gr::lora_sdr::data_source_sim
Data source that can both generate random strings or static strings, for more information about the i...
Definition:
data_source_sim.h:27
LORA_SDR_API
#define LORA_SDR_API
Definition:
api.h:19
gr::lora_sdr::data_source_sim::sptr
std::shared_ptr< data_source_sim > sptr
Definition:
data_source_sim.h:30
gr
Definition:
add_crc.h:28
api.h
gr-lora_sdr
include
lora_sdr
data_source_sim.h
Generated by
1.8.17