Btc_dptx_aux_write, Btc_dptx_aux_write -14 – Altera DisplayPort MegaCore Function User Manual

Page 115

Advertising
background image

Return:

• 0 = AUX_ACK replied

• 1 = Source internal error

• 2 = Reply timeout

• 3 = AUX_NACK replied

• 4 = AUX_DEFER replied

• 5 = Invalid reply

Parameters

address

—DPCD start address

size—

Number of bytes (1 - 16)

data

—Pointer for data to be read

Description:

This function reads 1 to 16 data bytes from the connected DisplayPort sink’s DPCD.

Example:

btc_dptx_aux_read(0×202, 2, &status);

Related Information

btc_dptx_aux_write

on page 8-14

btc_dptx_aux_write

Prototype:

int btc_dptx_aux_write(
unsigned int address,
BYTE size,
BYTE *data)

Thread-safe:

No

Available from ISR: Yes

Include:

<

btc_dptx_syslib.h

>

Return:

• 0 = AUX_ACK replied

• 1 = Source internal error

• 2 = Reply timeout

• 3 = AUX_NACK replied

• 4 = AUX_DEFER replied

• 5 = Invalid reply

Parameters

address

—DPCD start address

size—

Number of bytes (1 - 16)

data—

Pointer to data to be written

Description:

This function writes 1 to 16 data bytes to the connected DisplayPort sink’s DPCD.

Example:

btc_dptx_aux_write(0×600, 1, data_ptr);

8-14

btc_dptx_aux_write

UG-01131

2015.05.04

Altera Corporation

DisplayPort API Reference

Send Feedback

Advertising