Btc_dprx_aux_post_reply, Btc_dprx_aux_post_reply -5 – Altera DisplayPort MegaCore Function User Manual
Page 106
Description:
This function processes an AUX channel request issued by the connected DisplayPort
source.
cmd
and
address
are the command byte and the address in the original request
received, respectively (refer to the DisplayPort specification for more details). When
the request is a write,
data
must point to the data bytes sent by the source. To support
address-only requests,
length
is the original
len
byte sent by the source incremented
by one. When the request is a read,
data
is not used and can be NULL.
This function provides all the functionality of the DPCD registers implemented inside
the system library, including:
• DPCD locations read/write support
• EDID read support
• Link training execution
• Forwarding of AUX channel replies back to the source
Example:
btc_dprx_aux_handler(0, pcmd, padd, plen, pwrdata);
Related Information
on page 8-3
btc_dprx_aux_post_reply
Prototype:
int btc_dprx_aux_post_reply(
BYTE rx_idx
BYTE cmd,
BYTE size,
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)
•
cmd—
Command
•
size
—Number of data bytes transmitted (0 - 16)
•
data—
Pointer to data transmitted
UG-01131
2015.05.04
btc_dprx_aux_post_reply
8-5
DisplayPort API Reference
Altera Corporation