![]() |
dp14
Xilinx SDK Drivers API Documentation
|
Contains a design example using the XDp driver (operating in TX mode) with interrupts.
Upon Hot-Plug-Detect (HPD - DisplayPort cable is plugged/unplugged or the monitor is turned on/off), the main link will be trained.
MODIFICATION HISTORY:
Ver Who Date Changes
1.0 als 01/20/15 Initial creation. 5.1 ms 01/23/17 Added xil_printf statement in main function to ensure that "Successfully ran" and "Failed" strings are available in all examples. This is a fix for CR-965028.
Functions | |
u32 | Dptx_IntrExample (XDp *InstancePtr, u16 DeviceId, INTC *IntcPtr, u16 IntrId, u16 DpIntrId, XDp_IntrHandler HpdEventHandler, XDp_IntrHandler HpdPulseHandler) |
The main entry point for the interrupt example using the XDp driver. More... | |
int | main (void) |
This function is the main function of the XDptx interrupt example. More... | |
u32 Dptx_IntrExample | ( | XDp * | InstancePtr, |
u16 | DeviceId, | ||
INTC * | IntcPtr, | ||
u16 | IntrId, | ||
u16 | DpIntrId, | ||
XDp_IntrHandler | HpdEventHandler, | ||
XDp_IntrHandler | HpdPulseHandler | ||
) |
The main entry point for the interrupt example using the XDp driver.
This function will set up the system with interrupts and set up the Hot-Plug-Event (HPD) handlers.
InstancePtr | is a pointer to the XDp instance. |
DeviceId | is the unique device ID of the DisplayPort TX core instance. |
IntcPtr | is a pointer to the interrupt instance. |
IntrId | is the unique device ID of the interrupt controller. |
DpIntrId | is the interrupt ID of the DisplayPort TX connection to the interrupt controller. |
HpdEventHandler | is a pointer to the handler called when an HPD event occurs. |
HpdPulseHandler | is a pointer to the handler called when an HPD pulse occurs. |
References Dptx_SetupExample().
Referenced by main().
int main | ( | void | ) |
This function is the main function of the XDptx interrupt example.
If the DptxIntrExample function, which sets up the system succeeds, this function will wait for interrupts. Once a connection event or pulse is detected, link training will commence (if needed) and a video stream will start being sent over the main link.
None. |
References Dptx_IntrExample().