v_sdirxss
Vitis Drivers API Documentation
xsdi_example.c File Reference

Overview

This file demonstrates how to use Xilinx SDI Subsystem for passthrough mode on ZCU106 board.

This file demonstrates how to use Xilinx SDI Rx Subsystem for standalone.

It takes SDI data input through SDI Rx Subsystem and passes the same data as SDI Data out through SDI Tx Subsystem.

MODIFICATION HISTORY:
Ver   Who  Date       Changes


1.0 PG 05/09/2017 Initial version

MODIFICATION HISTORY:
Ver   Who    Date     Changes


1.00 PG 08/11/17 Initial release.

Macros

#define I2C_MUX_ADDR   0x74
 I2C Mux Address. More...
 
#define I2C_CLK_ADDR   0x69
 I2C Clk Address. More...
 
#define I2C_CLK_ADDR_570   0x5D
 I2C Clk Address for Si570. More...
 

Functions

void ClearScreen (void)
 This function Clears Uart terminal screen. More...
 
void RxStreamUpCallback (void *CallbackRef)
 This function is called when the RX Lock occurs, it calculates the frequency wrt RxTransMode, programs SI5324 with the calculated frequency and then enables Rx stream flow IPs. More...
 
void RxStreamDownCallback (void *CallbackRef)
 This function is called when the RX looses lock, and it stops SDI Tx Subsystem. More...
 
void Xil_AssertCallbackRoutine (u8 *File, s32 Line)
 This function is called when assertion hits in the file. More...
 
int Si570_SetClock (u32 IICBaseAddress, u8 IICAddress1)
 Set the output frequency of the Si570 clock generator. More...
 
void Info (void)
 This function outputs the video information on TX and RX. More...
 
void DebugInfo (void)
 This function outputs the debug information. More...
 
void RxOverFlowCallback (void *CallbackRef)
 This function is called when the RX Over flow happens. More...
 
void RxUnderFlowCallback (void *CallbackRef)
 This function is called when the RX Under flow happens. More...
 
int main (void)
 Main function to call example with SDI TX and SDI RX drivers. More...
 

Variables

XSdi_Menu SdiMenu
 Menu structure. More...
 

Macro Definition Documentation

#define I2C_CLK_ADDR   0x69

I2C Clk Address.

#define I2C_CLK_ADDR_570   0x5D

I2C Clk Address for Si570.

Referenced by main().

#define I2C_MUX_ADDR   0x74

I2C Mux Address.

Function Documentation

void ClearScreen ( void  )

This function Clears Uart terminal screen.

Returns
None
Note
None.

< Clear Sreen

< Bring Cursor to 0,0

Referenced by main().

void DebugInfo ( void  )

This function outputs the debug information.

Returns
None.
Note
None.

References XV_SdiRxSs_ReportDebugInfo().

void Info ( void  )

This function outputs the video information on TX and RX.

Returns
None.
Note
None.

References XV_SdiRxSs_ReportInfo().

void RxOverFlowCallback ( void *  CallbackRef)

This function is called when the RX Over flow happens.

Parameters
CallbackRefis a callback function reference.
Returns
None.
Note
None.

Referenced by main().

void RxStreamDownCallback ( void *  CallbackRef)

This function is called when the RX looses lock, and it stops SDI Tx Subsystem.

Parameters
CallbackRefis a callback function reference.
Returns
None.
Note
None.

Referenced by main().

void RxStreamUpCallback ( void *  CallbackRef)

This function is called when the RX Lock occurs, it calculates the frequency wrt RxTransMode, programs SI5324 with the calculated frequency and then enables Rx stream flow IPs.

Parameters
CallbackRefis a callback function reference.
Returns
None.
Note
None.

Referenced by main().

void RxUnderFlowCallback ( void *  CallbackRef)

This function is called when the RX Under flow happens.

Parameters
CallbackRefis a callback function reference.
Returns
None.
Note
None.

Referenced by main().

int Si570_SetClock ( u32  IICBaseAddress,
u8  IICAddress1 
)

Set the output frequency of the Si570 clock generator.

Parameters
IICBaseAddresscontains the base address of the IIC master device.
IICAddress1contains the 7 bit IIC address of the Si5324 device.
Returns
SI5324_SUCCESS for success, SI5324_ERR_IIC for IIC access failure, SI5324_ERR_FREQ when the requested frequency cannot be generated, SI5324_ERR_PARM when the ClkSrc or ClkDest parameters are invalid or the ClkInFreq or ClkOutFreq are out of range.
void Xil_AssertCallbackRoutine ( u8 *  File,
s32  Line 
)

This function is called when assertion hits in the file.

Parameters
File- File name where assertion occured. Line - Line number in this file.
Returns
None.
Note
None.

Referenced by main().

Variable Documentation

XSdi_Menu SdiMenu

Menu structure.