vphy
Vitis Drivers API Documentation
 All Data Structures Files Functions Variables Enumerations Enumerator Macros Groups
xvphy_selftest.c File Reference

Overview

This file contains a diagnostic self-test function for the XVphy driver.

It will check many of the Video PHY's register values against the default reset values as a sanity-check that the core is ready to be used.

Note
None.
MODIFICATION HISTORY:
Ver   Who  Date     Changes


1.0 als 10/19/15 Initial release.

#include "xvphy.h"
#include "xstatus.h"

Functions

u32 XVphy_SelfTest (XVphy *InstancePtr)
 This function runs a self-test on the XVphy driver/device. More...
 

Function Documentation

u32 XVphy_SelfTest ( XVphy InstancePtr)

This function runs a self-test on the XVphy driver/device.

The sanity test checks whether or not all tested registers hold their default reset values.

Parameters
InstancePtris a pointer to the XVphy instance.
Returns
  • XST_SUCCESS if the self-test passed - all tested registers hold their default reset values.
  • XST_FAILURE otherwise.
Note
None.

References XVphy_Config::BaseAddr, XVphy::Config, and XVphy_ReadReg.