![]() |
csudma
Xilinx SDK Drivers API Documentation
|
This file contains an example using the XCsuDma driver in polled mode.
This function works in loop back mode and tests whether transfer of data is completed properly or not.
MODIFICATION HISTORY:
Ver Who Date Changes
1.0 vnsld 22/10/14 First release
Macros | |
#define | CSU_SSS_CONFIG_OFFSET 0x008 |
CSU SSS_CFG Offset. More... | |
#define | CSUDMA_LOOPBACK_CFG 0x00000050 |
LOOP BACK configuration macro. More... | |
#define | SRC_ADDR 0x04200000 |
Source Address. More... | |
#define | DST_ADDR 0x04300000 |
Destination Address. More... | |
#define | SIZE 0x100 |
Size of the data to be transfered. More... | |
Functions | |
int | XCsuDma_PolledExample (u16 DeviceId) |
This function performs data transfer in loop back mode in polled mode and verify the data. More... | |
int | main (void) |
Main function to call the example. More... | |
Variables | |
XCsuDma | CsuDma |
Instance of the Csu_Dma Device. More... | |
#define CSU_SSS_CONFIG_OFFSET 0x008 |
CSU SSS_CFG Offset.
#define CSUDMA_LOOPBACK_CFG 0x00000050 |
LOOP BACK configuration macro.
#define DST_ADDR 0x04300000 |
Destination Address.
#define SIZE 0x100 |
Size of the data to be transfered.
#define SRC_ADDR 0x04200000 |
Source Address.
int main | ( | void | ) |
Main function to call the example.
int XCsuDma_PolledExample | ( | u16 | DeviceId | ) |
This function performs data transfer in loop back mode in polled mode and verify the data.
DeviceId | is the XPAR_<CSUDMA Instance>_DEVICE_ID value from xparameters.h. |
XCsuDma CsuDma |
Instance of the Csu_Dma Device.