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

#include <fir.hpp>

Collaboration diagram for FIR:
Collaboration graph

Public Member Functions

 FIR (cublasHandle_t handle, cudaStream_t stream, float2 *hcoeff, int M, int f, int nt)
 
 ~FIR ()
 
void fir_apply (const float2 *din)
 
void fir_shift ()
 
void fir_to_host (float2 *hout)
 
void fir_to_dev (float2 *dout)
 
void run_fir (const float2 *din, float2 *hout)
 

Public Attributes

cublasHandle_t _handle
 
cudaStream_t _stream
 
int _M
 
int _f
 
int _ntap
 
int _nb
 
int _nt
 
int _nout
 
float2 * _dcoeff
 
float2 * _dout
 
float2 * _hout
 
float2 * _dtrapz
 

Detailed Description

Definition at line 7 of file fir.hpp.

Constructor & Destructor Documentation

◆ FIR()

FIR::FIR ( cublasHandle_t  handle,
cudaStream_t  stream,
float2 *  hcoeff,
int  M,
int  f,
int  nt 
)

Definition at line 15 of file fir.cu.

References _dcoeff, _dout, _dtrapz, _f, _nb, _nout, _nt, and _ntap.

◆ ~FIR()

FIR::~FIR ( )

Definition at line 36 of file fir.cu.

References _dcoeff, _dout, and _dtrapz.

Member Function Documentation

◆ fir_apply()

void FIR::fir_apply ( const float2 *  din)

Definition at line 44 of file fir.cu.

References _dcoeff, _dout, _dtrapz, _f, _handle, _M, _nb, and checkcublas.

Referenced by run_fir().

Here is the caller graph for this function:

◆ fir_shift()

void FIR::fir_shift ( )

Definition at line 64 of file fir.cu.

References _dout, _f, _nb, and _stream.

Referenced by run_fir().

Here is the caller graph for this function:

◆ fir_to_host()

void FIR::fir_to_host ( float2 *  hout)

Definition at line 71 of file fir.cu.

References _dout, _nb, and _stream.

◆ fir_to_dev()

void FIR::fir_to_dev ( float2 *  dout)
Todo:
refine names

Definition at line 79 of file fir.cu.

References _dout, _nb, and _stream.

Referenced by run_fir().

Here is the caller graph for this function:

◆ run_fir()

void FIR::run_fir ( const float2 *  din,
float2 *  hout 
)

Definition at line 83 of file fir.cu.

References fir_apply(), fir_shift(), and fir_to_dev().

Here is the call graph for this function:

Member Data Documentation

◆ _handle

cublasHandle_t FIR::_handle

Definition at line 17 of file fir.hpp.

Referenced by fir_apply().

◆ _stream

cudaStream_t FIR::_stream

Definition at line 18 of file fir.hpp.

Referenced by fir_shift(), fir_to_dev(), and fir_to_host().

◆ _M

int FIR::_M

Definition at line 19 of file fir.hpp.

Referenced by fir_apply().

◆ _f

int FIR::_f

Definition at line 20 of file fir.hpp.

Referenced by FIR(), fir_apply(), and fir_shift().

◆ _ntap

int FIR::_ntap

Definition at line 21 of file fir.hpp.

Referenced by FIR().

◆ _nb

int FIR::_nb

Definition at line 22 of file fir.hpp.

Referenced by FIR(), fir_apply(), fir_shift(), fir_to_dev(), and fir_to_host().

◆ _nt

int FIR::_nt

Definition at line 23 of file fir.hpp.

Referenced by FIR().

◆ _nout

int FIR::_nout

Definition at line 24 of file fir.hpp.

Referenced by FIR().

◆ _dcoeff

float2* FIR::_dcoeff

Definition at line 25 of file fir.hpp.

Referenced by FIR(), fir_apply(), and ~FIR().

◆ _dout

float2* FIR::_dout

Definition at line 26 of file fir.hpp.

Referenced by FIR(), fir_apply(), fir_shift(), fir_to_dev(), fir_to_host(), and ~FIR().

◆ _hout

float2* FIR::_hout

Definition at line 27 of file fir.hpp.

◆ _dtrapz

float2* FIR::_dtrapz

Definition at line 28 of file fir.hpp.

Referenced by FIR(), fir_apply(), and ~FIR().


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