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.24. btc_dptx_aux_i2c_read

Prototype:

int btc_dptx_aux_i2c_read( 
   BYTE tx_idx,
   BYTE address, 
   BYTE size,
   BYTE *data, 
   BYTE mot)

Thread-safe:

No

Available from ISR:

Yes

Include:

< btc_dptx_syslib.h >

Return:

0 = success, 1 = fail

Parameters:

  • tx_idx—Source instance index (0 - 3)
  • address—I2C address
  • size—Number of bytes (1 - 16)
  • data—Pointer to data to be read
  • mot—Middle of transaction (0 or 1)

Description:

This function reads 1 to 16 data bytes from the connected DisplayPort sink’s I2C interface mapped over the AUX channel.

Example:

btc_dptx_aux_i2c_read(0, 0x50, 16, data, 1);