vtc
Vitis Drivers API Documentation
 All Data Structures Files Functions Variables Typedefs Enumerations Groups Pages
vtc_selftest_example.c File Reference

Overview

This file contains an example using the VTC driver to do self test on the core.

Note
None.
MODIFICATION HISTORY:
Ver   Who    Date     Changes


6.1 adk 08/23/14 First Release.

#include "xparameters.h"
#include "xvtc.h"
#include "xil_printf.h"

Functions

int XVtcSelfTestExample (UINTPTR BaseAddress)
 The following constants map to the XPAR parameters created in the xparameters.h file. More...
 
int main (void)
 Main/Entry function for self test example. More...
 

Variables

XVtc VtcInst
 Instance of the VTC core. More...
 

Function Documentation

int main ( void  )

Main/Entry function for self test example.

Returns
  • XST_SUCCESS if successful.
  • XST_FAILURE if unsuccessful.
Note
None.

References XVtcSelfTestExample().

int XVtcSelfTestExample ( UINTPTR  BaseAddress)

The following constants map to the XPAR parameters created in the xparameters.h file.

This function does a minimal test on the VTC driver.

They are defined here such that a user can easily change all the needed parameters in one place.

Parameters
DeviceIdis an ID of VTC core or device.
Returns
  • XST_SUCCESS if successful.
  • XST_FAILURE if unsuccessful.
Note
None.

References XVtc_Config::BaseAddress, XVtc_CfgInitialize(), XVtc_LookupConfig(), and XVtc_SelfTest().

Referenced by main().

Variable Documentation

XVtc VtcInst

Instance of the VTC core.