v_sdirx
Vitis Drivers API Documentation
Overview

Functions

u32 XV_SdiRx_SelfTest (XV_SdiRx *InstancePtr)
 Runs a self-test on the driver/device. More...
 
u32 XV_SdiRxSelfTestExample (u32 DeviceId)
 This function checks if the Rx core initialization is successful and the default register values are matching. More...
 
int main (void)
 The entry point for this example. More...
 

Function Documentation

int main ( void  )

The entry point for this example.

It invokes the example function, and reports the execution status.

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

References XV_SdiRxSelfTestExample().

u32 XV_SdiRx_SelfTest ( XV_SdiRx InstancePtr)

Runs a self-test on the driver/device.

This test checks if the LaneCount present in register matches the one from the generated file.

Parameters
InstancePtris a pointer to the XV_SdiRx instance.
Returns
  • XST_SUCCESS if self-test was successful
  • XST_FAILURE if the read value was not equal to _g.c file
Note
None

References XV_SdiRx_Config::BaseAddress, XV_SdiRx::Config, XV_SdiRx::IsReady, XV_SdiRx_ReadReg, and XV_SdiRx_Stop().

Referenced by XV_SdiRxSelfTestExample().

u32 XV_SdiRxSelfTestExample ( u32  DeviceId)

This function checks if the Rx core initialization is successful and the default register values are matching.

Parameters
DeviceIdis the XV_SdiRx Controller Device id.
Returns
  • XST_SUCCESS if Rx initialixation and self test are successsful
  • XST_FAILURE if either Rx initialixation and self test fails
Note
None.

References XV_SdiRx_Config::BaseAddress, XV_SdiRx_CfgInitialize(), XV_SdiRx_LookupConfig(), and XV_SdiRx_SelfTest().

Referenced by main().