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

Driver for the Xilinx CIC core using the axi_dds_interface core. More...

#include <CIC.h>

Public Member Functions

 CIC (int base_address, int size_in_k, int initial_rate)
 class constructor More...
 
 ~CIC ()
 class deconstructor
 
int set_rate (int rate)
 sets CIC decimation rate More...
 
int get_rate ()
 gets CIC decimation rate More...
 

Detailed Description

Driver for the Xilinx CIC core using the axi_dds_interface core.

Constructor & Destructor Documentation

CIC::CIC ( int  base_address,
int  size_in_k,
int  initial_rate 
)

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)

Member Function Documentation

int CIC::get_rate ( )
inline

gets CIC decimation rate

Returns
decimation rate
int CIC::set_rate ( int  rate)

sets CIC decimation rate

Returns
error code (0:ok, -1:timeout/no response, -2: invalid rate)

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