|
GNU Radio's LORA_SDR Package
|
Go to the documentation of this file.
11 #ifndef INCLUDED_LORA_SDR_DATA_SOURCE_SIM_IMPL_H
12 #define INCLUDED_LORA_SDR_DATA_SOURCE_SIM_IMPL_H
48 std::string m_string_input;
88 std::string random_string(
int nbytes);
101 uint32_t mean,
bool multi_control);
115 void forecast(
int noutput_items, gr_vector_int &ninput_items_required);
128 int general_work(
int noutput_items, gr_vector_int &ninput_items,
129 gr_vector_const_void_star &input_items,
130 gr_vector_void_star &output_items);
Data source that can both generate random strings or static strings, for more information about the i...
Definition: data_source_sim.h:27
~data_source_sim_impl()
Destroy the data source impl object.
data_source_sim_impl(int pay_len, int n_frames, std::string string_input, uint32_t mean, bool multi_control)
Construct a new data source impl object.
Definition: data_source_sim_impl.h:20
void forecast(int noutput_items, gr_vector_int &ninput_items_required)
Place holder function does not do anything for the data source.
int general_work(int noutput_items, gr_vector_int &ninput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
Main function, generates random ([a-z A-Z 0-9]) data input to be sent over the network or if input_st...