stipcores library
Collection of Software Drivers for Hardware IP Cores for the Panoradio SDR
DDS.h
1 #ifndef DDS_H
2 #define DDS_H
3 
4 /*
5  ---------------------------------------------------------------------------------------------------
6  DDS.h
7  DDS interface driver class for the Xilinx DDS core
8  with AXI -> AXIS core (dds_axi_interface) as interface to the Xilinx DDS core
9  Stefan Scholl, DC9ST, TU Kaiserslautern, 2014
10  ---------------------------------------------------------------------------------------------------
11 */
12 
13 #include "IP_Driver.h"
14 
16 class DDS {
17 
18 private:
19 
20  IP_Driver *dds_iface_core_; // low level driver
21  double current_frequency_; // current frequency in Hz
22  double f_clk_; // (master) clock frequency in Hz
23  int B_phase_width_; // phase width (bits)
24 
25 public:
31  DDS(int base_address, int size_in_k, double f_clk, int B_phase_width);
32 
34  ~DDS();
35 
38  double set_frequency(double f_out);
39 
42  double get_frequency();
43 };
44 
45 #endif /* DDS_H */
double get_frequency()
reads the current DDS output frequency in kHz
Definition: DDS.cpp:65
double set_frequency(double f_out)
sets DDS output frequency in kHz
Definition: DDS.cpp:36
Generic IP Driver Class Class, that allows access to a AXI Lite IP core over the Zynq Memory Mapped I...
Definition: IP_Driver.h:14
DDS(int base_address, int size_in_k, double f_clk, int B_phase_width)
class constructor
Definition: DDS.cpp:19
~DDS()
class deconstructor
Definition: DDS.cpp:27
Driver for the Xilinx DDS core using the axi_dds_interface core.
Definition: DDS.h:16