Radio Control  Control Software and GUI for the Panoradio SDR, by DC9ST 2016
Public Slots | Signals | Public Member Functions | Private Slots | Private Attributes | List of all members
Testgenerator Class Reference

Class for controlling the RF test generator and selecting the input source (RF/ADC, test generator or step/impulse stimulus) More...

#include <testgenerator.h>

Inheritance diagram for Testgenerator:

Public Slots

void get_signal_source (int source)
 request a change of the input source More...
 
void get_single (double frequency)
 request a change of the testgenerator to single frequency mode More...
 
void get_sweep (double start_f, double stop_f, double step_f)
 request a change of the testgenerator to sweep mode More...
 
void get_sweep_stopped (bool stopped)
 requests halt or continue for the sweep frequency
 

Signals

void send_true_frequency (double true_frequency)
 send the current test frequency (after it has been newly set) More...
 

Public Member Functions

 Testgenerator (QObject *parent=0)
 constructor
 
 ~Testgenerator ()
 destructor
 
void init_input_mux (int address, int memsize, int init_value)
 initialization function for the input mux GPIO More...
 
void init_generator (int address, int memsize, double master_frequency, int phase_width)
 initializes test generator IP core More...
 

Private Slots

void sweep_timer_slot ()
 increments the sweep frequency (timer slot)
 

Private Attributes

DDS * test_generator_
 
double test_sweep_start_freq_
 
double test_sweep_stop_freq_
 
double test_sweep_step_freq_
 
double test_sweep_frequency_
 
bool sweep_active_
 
bool sweep_stopped_
 
IP_Driver * input_mux_ctrl_
 

Detailed Description

Class for controlling the RF test generator and selecting the input source (RF/ADC, test generator or step/impulse stimulus)

Member Function Documentation

void Testgenerator::get_signal_source ( int  source)
slot

request a change of the input source

Parameters
source0: ADC/RF (normal), 1: sine(RF) test generator, 2: step/impulse stimulus
void Testgenerator::get_single ( double  frequency)
slot

request a change of the testgenerator to single frequency mode

Parameters
frequencyin kHz for single freuqency mode
void Testgenerator::get_sweep ( double  start_f,
double  stop_f,
double  step_f 
)
slot

request a change of the testgenerator to sweep mode

Parameters
start_fstart frequency in kHz
stop_fstop frequency in kHz
step_fstep frequency in kHz
void Testgenerator::init_generator ( int  address,
int  memsize,
double  master_frequency,
int  phase_width 
)

initializes test generator IP core

Parameters
addressIP core address (from Vivado)
memsizeIP core memory size in k (from Vivado)
master_frequencyDDS master frequency in kHz (from Vivado)
phase_widthDDS phase width (from Vivado)
void Testgenerator::init_input_mux ( int  address,
int  memsize,
int  init_value 
)

initialization function for the input mux GPIO

Parameters
addressIP core address for RF signal scaler (from Vivado)
memsizeIP core memory size in k (from Vivado)
init_value
void Testgenerator::send_true_frequency ( double  true_frequency)
signal

send the current test frequency (after it has been newly set)

Parameters
true_frequencytest frequency in kHz

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