Btc_dptx_link_training, Btc_dptx_link_training -17 – Altera DisplayPort MegaCore Function User Manual

Page 118

Advertising
background image

Parameters:

link_rate—

Link rate (Gbps): 0 = 1.62; 1 = 2.70; 2 = 5.40

lane_count

—1, 2, or 4

volt_swing—

0, 1, 2, or 3

pre_emph—

0, 1, 2, or 3

new_cfg—

0 = ignore the other parameters; 1 = use provided parameters

Description:

This function performs fast link training with the connected DisplayPort sink.

When performing fast link training, the IP core outputs training pattern 1 for 1

ms followed by training pattern 2 for 1 ms. The function returns a 1 if link

training fails or if the DPCD flag

NO_AUX_HANDSHAKE_LINK_TRAINING

= 0 (at

location 00103h).
• If

new_cfg

= 1, the IP core updates the sink’s DPCD with the provided

link_

rate

and

lane_count

, sets its own transceiver with the provided

volt_swing

and

pre_emph

, and then performs fast link training.

• If

new_cfg

= 0, the IP core uses the current transceiver setting, link rate, and

lane count, and performs fast link training.

Example:

btc_dptx_fast_link_training(1, 4, 1, 0, 1);

Related Information

btc_dptx_link_training

on page 8-17

btc_dptx_link_training

Prototype:

int btc_dptx_link_training(
unsigned int link_rate,
unsigned int lane_count)

Thread-safe:

No

Available from ISR: Yes

Include:

<

btc_dptx_syslib.h

>

Return:

0 = success, 1 = fail

Parameters:

link_rate—

Link rate (Gbps): 0 = 1.62; 1 = 2.70; 2 = 5.40

lane_count

—1, 2, or 4

Description:

This function performs link training with the connected DisplayPort sink.

Example:

btc_dptx_link_training(1, 4);

UG-01131

2015.05.04

btc_dptx_link_training

8-17

DisplayPort API Reference

Altera Corporation

Send Feedback

Advertising