Btc_dprx_syslib api reference, Btc_dprx_aux_get_request, Btc_dprx_syslib api reference -3 – Altera DisplayPort MegaCore Function User Manual
Page 104: Btc_dprx_aux_get_request -3
Example 8-1: Typical Sink ISR Implementation
btc_dprx_aux_get_request (0,&cmd,&address,&length,data);
btc_dprx_aux_handler(0,cmd,address,length,data);
Example 8-2: Typical Source ISR Implementation
BTC_DPTX_DISABLE_HPD_IRQ(...);
<Enable nested interrupt>
if (HPD asserted)
{
<read Sink EDID>
<set video output resolution>
btc_dptx_link_training(...);
}
else if (HPD deasserted)
btc_dptx_video_enable(..., 0);
else if (IRQ_HPD)
{
<check link status>
if (Test Automation request)
btc_dptx_test_autom(…);
}
<Disable nested interrupt>
BTC_DPTX_DISABLE_HPD_IRQ(...);
btc_dprx_syslib API Reference
This section provides information about the DisplayPort sink system library functions
(
btc_dprx_syslib
), including:
• C prototype
• Function description
• Whether the function is thread-safe when running in a multi-threaded environment
• Whether the function can be invoked from an ISR
• Example
btc_dprx_aux_get_request
Prototype:
int btc_dprx_aux_get_request(
BYTE rx_idx
BYTE *cmd,
unsigned int *address,
BYTE *length,
BYTE *data)
Thread-safe:
Yes
UG-01131
2015.05.04
btc_dprx_syslib API Reference
8-3
DisplayPort API Reference
Altera Corporation