stipcores library
Collection of Software Drivers for Hardware IP Cores for the Panoradio SDR
Public Member Functions | List of all members
DDS Class Reference

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...
 

Detailed Description

Driver for the Xilinx DDS core using the axi_dds_interface core.

Constructor & Destructor Documentation

DDS::DDS ( int  base_address,
int  size_in_k,
double  f_clk,
int  B_phase_width 
)

class constructor

Parameters
base_adressaddress of the spi core (from Vivado), e.g. 0x44C00000
size_in_ksize of the required adress space in k (from Vivado)
f_clkclock (master) clock frequency of the core in kHz
B_phase_widthphase width (look up in vivado under block design -> DDS menu -> Summary -> Phase Width (not Phase Angle Width))

Member Function Documentation

double DDS::get_frequency ( )

reads the current DDS output frequency in kHz

Returns
frequency in kHz
double DDS::set_frequency ( double  f_out)

sets DDS output frequency in kHz

Returns
actually set frequency in kHz or -1 if a timeout has occured

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