![]() |
USRP_Server
2.0
A flexible, GPU-accelerated radio-frequency readout software.
|
This class handles the DSP of the buffer coming from the the SDR. This is the class to implement to add a different DSP algorithm to the sevrer. More...
#include <USRP_demodulator.hpp>
Public Member Functions | |
RX_buffer_demodulator (param *init_parameters, bool init_diagnostic=false) | |
Initialization method for the class called when a new command is received. iagnostic allows to print the window on a binary file and stores some diagnostic information. More... | |
int | process (float2 **__restrict__ in, float2 **__restrict__ out) |
PAcket handler for DSP class. This method process information pointed by the in parameter and write the output in the memory pointed by out parameter. Both in and out are CPU RAM pointers already allocated. The memory input memory is NOT modified. The output memory has to be already allocated. This function assumes that there is enough memory allocated to write the full output. More... | |
void | close () |
Wrapper to the correct cleaning function. More... | |
Public Attributes | |
param * | parameters |
float | fcut |
PFB cut-off frequency fo the window. 1.f is Nyquist at the higher sampling frequency. this parameter will be movoed to the param struct soon. More... | |
This class handles the DSP of the buffer coming from the the SDR. This is the class to implement to add a different DSP algorithm to the sevrer.
Definition at line 13 of file USRP_demodulator.hpp.
RX_buffer_demodulator::RX_buffer_demodulator | ( | param * | init_parameters, |
bool | init_diagnostic = false |
||
) |
Initialization method for the class called when a new command is received. iagnostic allows to print the window on a binary file and stores some diagnostic information.
Definition at line 7 of file USRP_demodulator.cpp.
References chirp_parameter::chirpness, chirp_parameter::f0, fcut, chirp_parameter::length, make_flat_window(), make_sinc_window(), chirp_parameter::num_steps, parameters, print_error(), and print_warning().
int RX_buffer_demodulator::process | ( | float2 **__restrict__ | in, |
float2 **__restrict__ | out | ||
) |
PAcket handler for DSP class. This method process information pointed by the in parameter and write the output in the memory pointed by out parameter. Both in and out are CPU RAM pointers already allocated. The memory input memory is NOT modified. The output memory has to be already allocated. This function assumes that there is enough memory allocated to write the full output.
Definition at line 330 of file USRP_demodulator.cpp.
Referenced by TXRX::stop().
void RX_buffer_demodulator::close | ( | ) |
Wrapper to the correct cleaning function.
Definition at line 333 of file USRP_demodulator.cpp.
References filter_param::average_buffer, filter_param::batching, checkcublas, chirp_demodulator_wrapper(), buffer_helper::copy_size, cublas_decim(), buffer_helper::current_batch, decimate_pfb(), decimate_spectra(), direct_demodulator_wrapper(), filter_param::eff_n_tones, filter_param::length, chirp_parameter::length, move_buffer_wrapper(), filter_param::n_tones, VNA_decimator_helper::new0, pfb_decimator_helper::new_0, buffer_helper::new_0, chirp_parameter::num_steps, pfb_decimator_helper::out_size, parameters, polyphase_filter_wrapper(), VNA_decimator_helper::spare_begin, buffer_helper::spare_begin, buffer_helper::spare_samples, tone_select_wrapper(), filter_param::tones, VNA_decimator_helper::update(), pfb_decimator_helper::update(), buffer_helper::update(), VNA_decimator_helper::valid_size, and filter_param::window.
param* RX_buffer_demodulator::parameters |
Definition at line 17 of file USRP_demodulator.hpp.
Referenced by close(), RX_buffer_demodulator(), and TXRX::stop().
float RX_buffer_demodulator::fcut |
PFB cut-off frequency fo the window. 1.f is Nyquist at the higher sampling frequency. this parameter will be movoed to the param struct soon.
Definition at line 21 of file USRP_demodulator.hpp.
Referenced by RX_buffer_demodulator().