DisplayPort Intel® FPGA IP User Guide

ID 683273
Date 11/12/2021
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

9.16. btc_dprx_syslib_add_rx

Prototype:

int btc_dprx_syslib_add_rx( 
   BYTE         rx_idx, 
   unsigned int rx_base_addr, 
   unsigned int rx_irq_id, 
   unsigned int rx_irq_num, 
   unsigned int rx_num_of_sinks,
   unsigned int options)

Thread-safe:

No

Available from ISR:

No

Include:

< btc_dprx_syslib.h >

Return:

0 = success, 1 = fail

Parameters:

  • rx_idx—Sink instance index (0 - 3)
  • rx_base_addr—RX base address
  • rx_irq_id—RX IRQ ID
  • rx_irq_num—RX IRQ number
  • rx_num_of_sinks—Number of streaming sinks used (1 - 4)
  • options—OR-ed options for this instance or 0 if unused

Description:

This function declares a sink (RX) instance to the system library. It should be invoked once for each existing sink instance, starting from rx_idx = 0. After all sinks have been declared, invoke btc_dprx_syslib_ init ( ).

Example:

btc_dprx_syslib_add_rx (0, DP_RX_SINK_BASE, DP_RX_SINK_IRQ_INTERRUPT_CONTROLLER_ID, DP_RX_SINK_IRQ, 2, BTC_DPRX_OPT_DISABLE_ERRMON);