USRP_Server  2.0
A flexible, GPU-accelerated radio-frequency readout software.
RX_buffer_demodulator Class Reference

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>

Collaboration diagram for RX_buffer_demodulator:
Collaboration graph

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ RX_buffer_demodulator()

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().

Here is the call graph for this function:

Member Function Documentation

◆ process()

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().

Here is the caller graph for this function:

◆ close()

Member Data Documentation

◆ parameters

param* RX_buffer_demodulator::parameters

Definition at line 17 of file USRP_demodulator.hpp.

Referenced by close(), RX_buffer_demodulator(), and TXRX::stop().

◆ fcut

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().


The documentation for this class was generated from the following files: