Class for controlling a single Audio DDC.
More...
#include <audioddc.h>
|
void | send_new_lo_frequency (double frequency) |
| send the current LO frequency (after it has been newly set, e.g. by a waterfall shift) More...
|
|
|
void | init_lo (int address, int memsize, double master_frequency, int phase_width, double init_frequency) |
| initializes LO IP core, required to run before using the DDC! More...
|
|
void | init_capture (int address, int memsize, int capture_size) |
| initializes Dual Capture IP core for IQ data, required to run before using the DDC! More...
|
|
void | init_waterfall (WaterfallPlot *waterfall_audio, int max_frequency, double data_range_min, double data_range_max, double span_init, int data_size, int waterfall_depth) |
| initializes the audio DDC, required to run after use! More...
|
|
double | set_rx_frequency (double rx_frequency) |
| sets LO frequency of DDC More...
|
|
void | capture_and_show (double gain_correction) |
| captures IQ data (after DDC) and shows them as a new line in the waterfall plot More...
|
|
void | get_captured_data (double in[], double qu[]) |
| return the I&Q data for the last data capture (for debugging) More...
|
|
void | correct_waterfall_size () |
| selects the correct size of the audio receiver's waterfall
|
|
|
fft_basic * | fft_ |
|
DDS * | local_oscillator_ |
|
Data_Capture_Dual * | capture_data_ |
|
WaterfallPlot * | waterfall_audio_ |
|
double * | captured_data_i_ |
|
double * | captured_data_q_ |
|
double * | captured_data_fft_dbm_ |
|
int | capture_max_size_ |
|
int | data_size_ |
|
bool | lo_initialized_ |
|
bool | capture_initialized_ |
|
bool | waterfall_initialized_ |
|
Class for controlling a single Audio DDC.
- first call init functions init_lo, init_capture and init_waterfall (in this order) to set up the class before use
- use other functions to set the RX frequency or display a new line in the waterfall
void AudioDDC::capture_and_show |
( |
double |
gain_correction | ) |
|
captures IQ data (after DDC) and shows them as a new line in the waterfall plot
- Parameters
-
gain_correction | correction factor in dB (will be subtracted from measured results in dbm) for the gain, that includes e.g. RF scaling gain, filter gain etc. |
void AudioDDC::get_captured_data |
( |
double |
in[], |
|
|
double |
qu[] |
|
) |
| |
|
inline |
return the I&Q data for the last data capture (for debugging)
- Parameters
-
in[] | array for writing the I data, array length = "data_size" (=size of data block to be captured and displayed) |
qu[] | array for writing the Q data, array length = "data_size" (=size of data block to be captured and displayed) |
void AudioDDC::init_capture |
( |
int |
address, |
|
|
int |
memsize, |
|
|
int |
capture_size |
|
) |
| |
initializes Dual Capture IP core for IQ data, required to run before using the DDC!
- Parameters
-
address | IP core address (from Vivado) |
memsize | IP core memory size in k (from Vivado) |
capture_size | depth of capture memory in i/q sample pairs |
void AudioDDC::init_lo |
( |
int |
address, |
|
|
int |
memsize, |
|
|
double |
master_frequency, |
|
|
int |
phase_width, |
|
|
double |
init_frequency |
|
) |
| |
initializes LO IP core, required to run before using the DDC!
- Parameters
-
address | IP core address (from Vivado) |
memsize | IP core memory size in k (from Vivado) |
master_frequency | DDS master frequency in kHz (from Vivado) |
phase_width | DDS phase width (from Vivado) |
init_frequency | inital LO frequency in kHz |
void AudioDDC::init_waterfall |
( |
WaterfallPlot * |
waterfall_audio, |
|
|
int |
max_frequency, |
|
|
double |
data_range_min, |
|
|
double |
data_range_max, |
|
|
double |
span_init, |
|
|
int |
data_size, |
|
|
int |
waterfall_depth |
|
) |
| |
initializes the audio DDC, required to run after use!
- Parameters
-
*waterfall_audio | pointer to waterfall display |
max_frequency | maximum frequency the waterfall can be scrolled to in kHz (e.g. 125000 for 125 MHz) |
data_range_min | minimum data value in waterfall |
data_range_max | maximum data value in waterfall |
span_init | initial frequency span of waterfall in kHz (= audio IQ signal's sample rate) |
data_size | size of data block to be captured and displayed |
waterfall_depth | depth of waterfall display |
void AudioDDC::send_new_lo_frequency |
( |
double |
frequency | ) |
|
|
signal |
send the current LO frequency (after it has been newly set, e.g. by a waterfall shift)
- Parameters
-
frequency | LO frequency in kHz |
double AudioDDC::set_rx_frequency |
( |
double |
rx_frequency | ) |
|
sets LO frequency of DDC
- Parameters
-
- Returns
- actually set frequency in kHz
The documentation for this class was generated from the following files:
- radio_control/audio_rx/audioddc.h
- radio_control/audio_rx/audioddc.cpp