stipcores library
Collection of Software Drivers for Hardware IP Cores for the Panoradio SDR
|
Generic IP Driver Class Class, that allows access to a AXI Lite IP core over the Zynq Memory Mapped Interface. More...
#include <IP_Driver.h>
Public Member Functions | |
IP_Driver (int base_address, int size_in_k) | |
class constructor More... | |
void | write (int address, int data) |
writes data to an ip core More... | |
int | read (int address) |
reads data from an ip core More... | |
Generic IP Driver Class Class, that allows access to a AXI Lite IP core over the Zynq Memory Mapped Interface.
IP_Driver::IP_Driver | ( | int | base_address, |
int | size_in_k | ||
) |
class constructor
base_adress | address of the ip core (from Vivado), e.g. 0x44C0000 |
size_in_k | size of the required adress space in k (from Vivado) |
int IP_Driver::read | ( | int | address | ) |
reads data from an ip core
adress | offset adress of the read register inside the adress space of the ip core, e.g. 0,4,8,C etc. |
void IP_Driver::write | ( | int | address, |
int | data | ||
) |
writes data to an ip core
adress | offset adress of the write register inside the adress space of the ip core, e.g. 0,4,8,C etc. |
data | 32 bit data to be transferred |