stipcores library
Collection of Software Drivers for Hardware IP Cores for the Panoradio SDR
|
Driver for the Xilinx DDS core using the axi_dds_interface core. More...
#include <DDS.h>
Public Member Functions | |
DDS (int base_address, int size_in_k, double f_clk, int B_phase_width) | |
class constructor More... | |
~DDS () | |
class deconstructor | |
double | set_frequency (double f_out) |
sets DDS output frequency in kHz More... | |
double | get_frequency () |
reads the current DDS output frequency in kHz More... | |
Driver for the Xilinx DDS core using the axi_dds_interface core.
DDS::DDS | ( | int | base_address, |
int | size_in_k, | ||
double | f_clk, | ||
int | B_phase_width | ||
) |
class constructor
base_adress | address of the spi core (from Vivado), e.g. 0x44C00000 |
size_in_k | size of the required adress space in k (from Vivado) |
f_clk | clock (master) clock frequency of the core in kHz |
B_phase_width | phase width (look up in vivado under block design -> DDS menu -> Summary -> Phase Width (not Phase Angle Width)) |
double DDS::get_frequency | ( | ) |
reads the current DDS output frequency in kHz
double DDS::set_frequency | ( | double | f_out | ) |
sets DDS output frequency in kHz