Btc_dprx_aux_handler, Btc_dprx_aux_handler -4 – Altera DisplayPort MegaCore Function User Manual
Page 105
Available from ISR: Yes
Include:
<
btc_dprx_syslib.h
>
Return:
0 = success, 1 = fail
Parameters:
•
rx_idx
—Sink instance index (0 - 3)
•
cmd
—Pointer to command
•
address
—Pointer to address
•
length
—Pointer to length (0 - 16)
•
data—
Pointer to data received
Description:
This function retrieves 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
fills with 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.
Example:
btc_dprx_aux_get_request(0, pcmd, padd, plen, pwrdata);
Related Information
btc_dprx_aux_handler
Prototype:
int btc_dprx_aux_handler(
BYTE rx_idx
BYTE cmd,
unsigned int address,
BYTE length,
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
•
address
—Address
•
length—
Length (0 - 16)
•
data—
Pointer to data being written
8-4
btc_dprx_aux_handler
UG-01131
2015.05.04
Altera Corporation
DisplayPort API Reference