stipcores library
Collection of Software Drivers for Hardware IP Cores for the Panoradio SDR
CIC.h
1 #ifndef CIC_H
2 #define CIC_H
3 
4 /*
5  ---------------------------------------------------------------------------------------------------
6  CIC.h
7  CIC interface class for the Xilinx CIC core
8  with AXI -> AXIS core (dds_axi_interface) as interface to the Xilinx CIC core
9  Stefan Scholl, DC9ST, TU Kaiserslautern, 2015
10  ---------------------------------------------------------------------------------------------------
11 */
12 
13 #include "IP_Driver.h"
14 
16 class CIC {
17 
18 private:
19 
20  IP_Driver *cic_iface_core_;
21  int decimation_rate_;
22 
23 public:
27  CIC(int base_address, int size_in_k, int initial_rate);
28 
30  ~CIC();
31 
34  int set_rate(int rate);
35 
38  int get_rate() {return decimation_rate_;}
39 };
40 
41 #endif /* CIC_H */
Driver for the Xilinx CIC core using the axi_dds_interface core.
Definition: CIC.h:16
~CIC()
class deconstructor
Definition: CIC.cpp:26
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
int get_rate()
gets CIC decimation rate
Definition: CIC.h:38
CIC(int base_address, int size_in_k, int initial_rate)
class constructor
Definition: CIC.cpp:19
int set_rate(int rate)
sets CIC decimation rate
Definition: CIC.cpp:34