DisplayPort Intel® FPGA IP User Guide

ID 683273
Date 9/02/2022
Public

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

Document Table of Contents

9.7. btc_dprx_dpcd_gpu_access

Prototype:

int btc_dprx_dpcd_gpu_access( 
   BYTE         rx_idx 
   BYTE         wrcmd,
   unsigned int address, 
   BYTE         length, 
   BYTE         *data)

Thread-safe:

Yes

Available from ISR:

Yes

Include:

< btc_dprx_syslib.h >

Return:

0 = success, 1 = fail

Parameters:

  • rx_idx—Sink instance index (0 - 3)
  • wrcmd—0 = read, 1 = write
  • address—Address
  • length—Length (1 - 255)
  • data—Pointer to data

Description:

This function allows the controller to access the sink’s DPCD locations (implemented in the system library) for reading and writing data. data must point to a location containing length bytes (writes) or be able to accommodate length bytes (reads).

Example:

btc_dprx_dpcd_gpu_access(0, 1, 0x00000, 1, pwrdata);