axivdma
Vitis Drivers API Documentation
 All Data Structures Files Functions Variables Typedefs Macros Groups Pages
xaxivdma_example_intr.c File Reference
#include "xaxivdma.h"
#include "xparameters.h"
#include "xil_exception.h"
#include "xil_printf.h"
#include "xinterrupt_wrap.h"
#include "xil_cache.h"
#include "xpseudo_asm_gcc.h"

Macros

#define FRAME_HORIZONTAL_LEN   0x1E00
 Horizontal frame length in bytes (1920 pixels, 4 bytes each). More...
 
#define FRAME_VERTICAL_LEN   0x438
 Vertical frame length in lines (1080 pixels). More...
 
#define FRAME_SIZE   (FRAME_HORIZONTAL_LEN * FRAME_VERTICAL_LEN)
 Frame size in bytes. More...
 
#define MAX_FRAME_STORE   XAXIVDMA_MAX_FRAMESTORE
 Maximum frame store count. More...
 
#define READ_BUFFER_SIZE   (MAX_FRAME_STORE * FRAME_SIZE)
 Read buffer size in bytes. More...
 
#define WRITE_BUFFER_SIZE   (MAX_FRAME_STORE * FRAME_SIZE)
 Write buffer size in bytes. More...
 
#define SUBFRAME_START_OFFSET   (FRAME_HORIZONTAL_LEN * 5 + 64)
 Byte offset of the subframe within a frame. More...
 
#define SUBFRAME_HORIZONTAL_SIZE   0x100
 Horizontal subframe size in bytes. More...
 
#define SUBFRAME_VERTICAL_SIZE   0x100
 Vertical subframe size in lines. More...
 
#define NUM_TEST_FRAME_SETS   10
 Number of frame sets to transfer for the test. More...
 
#define TEST_START_VALUE   0xC
 Starting value used to fill and verify frame data. More...
 
#define DELAY_TIMER_COUNTER   10
 Delay timer counter programmed into the VDMA. More...
 
#define XAXIVDMA_RESET_TIMEOUT_USEC   500
 Maximum microseconds to wait for VDMA reset. More...
 
#define POLL_TIMEOUT_COUNTER   1100000U
 Maximum poll iterations before a transfer times out. More...
 
#define NUMBER_OF_EVENTS   1
 Number of interrupt events expected to complete the test. More...
 

Functions

int main ()
 Runs the VDMA triple-frame-buffer example entry point. More...