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

Driver for the data interface of the AD9467. More...

#include <AD9467_Data_Interface.h>

Public Member Functions

 AD9467_Data_Interface (int base_address, int size_in_k)
 class constructor More...
 
 ~AD9467_Data_Interface ()
 class deconstructor
 
int set_delay (int line_addr, int delay_value)
 sets delay value for one delay element More...
 
void capture_test_data ()
 captures data from the ADC to the test data memory More...
 
int read_test_data (int addr)
 reads one sample of data from the test data memory More...
 
int init_delay_controller ()
 inits the delay controller (necessary for the delay controller) More...
 
void check_availability_on_fpga ()
 check core availability on FPGA (i.e. shows if hardware design is loaded)
 

Detailed Description

Driver for the data interface of the AD9467.

Constructor & Destructor Documentation

AD9467_Data_Interface::AD9467_Data_Interface ( int  base_address,
int  size_in_k 
)

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

void AD9467_Data_Interface::capture_test_data ( )

captures data from the ADC to the test data memory

Returns
int 8 bit chip ID
int AD9467_Data_Interface::init_delay_controller ( )

inits the delay controller (necessary for the delay controller)

Returns
error code: 0: no error, 1: timeout errror
int AD9467_Data_Interface::read_test_data ( int  addr)

reads one sample of data from the test data memory

Parameters
addressof test data memory data word to be read
Returns
test sample (16 bit)
int AD9467_Data_Interface::set_delay ( int  line_addr,
int  delay_value 
)

sets delay value for one delay element

Parameters
addressof I/O line (0 to 7)
delayvalue to be written to delay module (0 to 31);
Returns
error code: 0: no error, -1: timeout, -2: invalid delay value, -3: invalid line address

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