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.76. btc_dptxll_mst_set_csn_callback

Prototype:

int btc_dptxll_mst_set_csn_callback(
BYTE tx_idx,
BTC_MST_CSN_CALLBACK *cback)

Thread-safe:

No

Available from ISR:

No

Include:

< btc_dptxll_syslib.h >

Return:

0 = success, 1 = fail, 2 = not ready

Parameters:

  • tx_idx—Source instance index (0 - 3)
  • cback—Pointer to user callback function

Description:

This function sets the CONNECTION_STATUS_NOTIFY user callback.

Example:

btc_dptxll_mst_set_csn_callback(0,csn_handler);

This function can be invoked right after btc_dptxll_syslib_init() by the user application to define a user-provided callback function handling received CONNECTION_STATUS_NOTIFY UP_REQ MST messages.

When the user application invokes btc_dptxll_syslib_monitor(), if a CONNECTION_STATUS_NOTIFY has been received, the system library will invoke the user defined callback.