Btc_dprx_edid_set, Btc_dprx_edid_set -7 – Altera DisplayPort MegaCore Function User Manual
Page 108
Return:
0 = success, 1 = fail
Parameters:
•
rx_idx
—Sink instance index (0 - 3)
•
wrcmd—
0 = read, 1 = write
•
address
—Address
•
length
—Length (1 - 255)
•
data
—Pointer to data
Description:
This function allows the controller to access the sink’s DPCD locations
(implemented in the system library) for reading and writing data.
data
must point
to a location containing
length
bytes (writes) or be able to accommodate
length
bytes (reads).
Example:
btc_dprx_dpcd_gpu_access(0, 1, 0×00000, 1, pwrdata);
btc_dprx_edid_set
Prototype:
int btc_dprx_edid_set(
BYTE rx_idx
BYTE port,
BYTE *edid_data,
BYTE num_blocks)
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)
•
port—
RX port (stream) number (0 – 3)
•
edid_data—
Pointer to EDID data memory
•
num_blocks—
EDID size in blocks
Description:
This function allows the controller to set the content of the sink’s EDID
(implemented in the system library). The library references the EDID data and does
not copy it. One block is 128-bytes long. The system library accepts a maximum of
4 blocks (512-byte long EDIDs). Each streaming sink port has its own EDID.
Example:
btc_dprx_edid_set(0, 0, pmy_edid, 2);
UG-01131
2015.05.04
btc_dprx_edid_set
8-7
DisplayPort API Reference
Altera Corporation