GNSS-SDR  0.0.19
An Open Source GNSS Software Defined Receiver
Public Member Functions | List of all members
Fpga_Acquisition Class Reference

Class that implements carrier wipe-off and correlators. More...

#include <fpga_acquisition.h>

Public Member Functions

 Fpga_Acquisition (std::string device_name, uint32_t nsamples, uint32_t doppler_max, uint32_t nsamples_total, int64_t fs_in, uint32_t select_queue, uint32_t *all_fft_codes, uint32_t excludelimit)
 Constructor. More...
 
 ~Fpga_Acquisition ()=default
 Destructor. More...
 
bool set_local_code (uint32_t PRN)
 Select the code with the chosen PRN. More...
 
void set_doppler_sweep (uint32_t num_sweeps, uint32_t doppler_step, int32_t doppler_min)
 Configure the doppler sweep parameters in the FPGA. More...
 
void run_acquisition ()
 Run the acquisition process in the FPGA. More...
 
void read_acquisition_results (uint32_t *max_index, float *firstpeak, float *secondpeak, uint64_t *initial_sample, float *power_sum, uint32_t *doppler_index, uint32_t *total_blk_exp)
 Read the results of the acquisition process. More...
 
void set_doppler_max (uint32_t doppler_max)
 Set maximum Doppler grid search. More...
 
void set_doppler_step (uint32_t doppler_step)
 Set Doppler steps for the grid search. More...
 
void reset_acquisition ()
 Reset the FPGA PL. More...
 
void stop_acquisition ()
 stop the acquisition and the FPGA modules. More...
 
void read_fpga_total_scale_factor (uint32_t *total_scale_factor, uint32_t *fw_scale_factor)
 Read the scaling factor that has been used by the FFT-IFFT. More...
 
void set_block_exp (uint32_t total_block_exp)
 Set the block exponent of the FFT in the FPGA. More...
 
void write_local_code (void)
 Write the PRN code in the FPGA. More...
 
void configure_acquisition (void)
 Write the acquisition parameters into the FPGA. More...
 
void open_device ()
 Open the device driver. More...
 
void close_device ()
 Close the device driver. More...
 

Detailed Description

Class that implements carrier wipe-off and correlators.

Definition at line 37 of file fpga_acquisition.h.

Constructor & Destructor Documentation

◆ Fpga_Acquisition()

Fpga_Acquisition::Fpga_Acquisition ( std::string  device_name,
uint32_t  nsamples,
uint32_t  doppler_max,
uint32_t  nsamples_total,
int64_t  fs_in,
uint32_t  select_queue,
uint32_t *  all_fft_codes,
uint32_t  excludelimit 
)

Constructor.

◆ ~Fpga_Acquisition()

Fpga_Acquisition::~Fpga_Acquisition ( )
default

Destructor.

Member Function Documentation

◆ close_device()

void Fpga_Acquisition::close_device ( )

Close the device driver.

◆ configure_acquisition()

void Fpga_Acquisition::configure_acquisition ( void  )

Write the acquisition parameters into the FPGA.

◆ open_device()

void Fpga_Acquisition::open_device ( )

Open the device driver.

◆ read_acquisition_results()

void Fpga_Acquisition::read_acquisition_results ( uint32_t *  max_index,
float *  firstpeak,
float *  secondpeak,
uint64_t *  initial_sample,
float *  power_sum,
uint32_t *  doppler_index,
uint32_t *  total_blk_exp 
)

Read the results of the acquisition process.

◆ read_fpga_total_scale_factor()

void Fpga_Acquisition::read_fpga_total_scale_factor ( uint32_t *  total_scale_factor,
uint32_t *  fw_scale_factor 
)

Read the scaling factor that has been used by the FFT-IFFT.

◆ reset_acquisition()

void Fpga_Acquisition::reset_acquisition ( )

Reset the FPGA PL.

◆ run_acquisition()

void Fpga_Acquisition::run_acquisition ( )

Run the acquisition process in the FPGA.

◆ set_block_exp()

void Fpga_Acquisition::set_block_exp ( uint32_t  total_block_exp)

Set the block exponent of the FFT in the FPGA.

◆ set_doppler_max()

void Fpga_Acquisition::set_doppler_max ( uint32_t  doppler_max)
inline

Set maximum Doppler grid search.

Parameters
doppler_max- Maximum Doppler shift considered in the grid search [Hz].

Definition at line 89 of file fpga_acquisition.h.

◆ set_doppler_step()

void Fpga_Acquisition::set_doppler_step ( uint32_t  doppler_step)
inline

Set Doppler steps for the grid search.

Parameters
doppler_step- Frequency bin of the search grid [Hz].

Definition at line 98 of file fpga_acquisition.h.

◆ set_doppler_sweep()

void Fpga_Acquisition::set_doppler_sweep ( uint32_t  num_sweeps,
uint32_t  doppler_step,
int32_t  doppler_min 
)

Configure the doppler sweep parameters in the FPGA.

◆ set_local_code()

bool Fpga_Acquisition::set_local_code ( uint32_t  PRN)

Select the code with the chosen PRN.

◆ stop_acquisition()

void Fpga_Acquisition::stop_acquisition ( )

stop the acquisition and the FPGA modules.

◆ write_local_code()

void Fpga_Acquisition::write_local_code ( void  )

Write the PRN code in the FPGA.


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