axivdma
Xilinx SDK Drivers API Documentation
xaxivdma_example_intr.c File Reference

Overview

This example demonstrates how to use the AXI Video DMA with other video IPs to do video frame transfers.

This example does not work by itself. It needs two other Video IPs, one for writing video frames to the memory and one for reading video frames from the memory.

To see the debug print, you need a Uart16550 or uartlite in your system, and please set "-DDEBUG" in your compiler options. You need to rebuild your software executable.

Note
The values of DDR_BASE_ADDR and DDR_HIGH_ADDR should be as per the HW system.
MODIFICATION HISTORY:
Ver   Who  Date     Changes
----- ---- -------- -------------------------------------------------------
1.00a jz   07/26/10 First release
1.01a jz   09/26/10 Updated callback function signature
2.00a jz   12/10/10 Added support for direct register access mode, v3 core
2.01a rvp  01/22/11 Renamed the example file to be consistent
                       Added support to the example to use SCU GIC interrupt
               controller for ARM, some functions in this example have
               changed.
      rkv  03/28/11 Updated to support for frame store register.
3.00a srt  08/26/11 Added support for Flush on Frame Sync Feature.
4.00a srt  03/06/12 Modified interrupt support for Zynq.
4.02a srt  09/25/12 Fixed CR 677704
               Description - Arguments misused in function
                    XAxiVdma_IntrEnable().
4.03a srt  03/01/13 Updated DDR base address for IPI designs (CR 703656).
6.2   ms   01/23/17 Modified xil_printf statement in main function to
                    ensure that "Successfully ran" and "Failed" strings
                    are available in all examples. This is a fix for
                    CR-965028.
6.5   rsp  12/01/17 Set TX/RX framebuffer count to IP default. CR-990409
6.6   rsp  07/02/18 Set Vertical Flip state to IP default. CR-989453

Functions

int main (void)
 Main function. More...
 

Function Documentation

◆ main()

int main ( void  )

Main function.

This function is the main entry point of the example on DMA core. It sets up DMA engine to be ready to receive and send frames, and start the transfers. It waits for the transfer of the specified number of frame sets, and check for transfer errors.

Returns
  • XST_SUCCESS if example finishes successfully
  • XST_FAILURE if example fails.
Note
None.