![]() |
dppsu
Vitis Drivers API Documentation
|
Contains a design example using the XDpPsu driver 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 aad 09/04/17 Initial creation.
Functions | |
| u32 | DpPsu_IntrExample (XDpPsu *InstancePtr, u16 DeviceId, INTC *IntcPtr, u16 IntrId, u16 DpIntrId, XDpPsu_HpdEventHandler HpdEventHandler, XDpPsu_HpdPulseHandler HpdPulseHandler) |
| The main entry point for the interrupt example using the XDpPsu driver. More... | |
| int | main (void) |
| This function is the main function of the XDpPsu interrupt example. More... | |
| u32 DpPsu_IntrExample | ( | XDpPsu * | InstancePtr, |
| u16 | DeviceId, | ||
| INTC * | IntcPtr, | ||
| u16 | IntrId, | ||
| u16 | DpIntrId, | ||
| XDpPsu_HpdEventHandler | HpdEventHandler, | ||
| XDpPsu_HpdPulseHandler | HpdPulseHandler | ||
| ) |
The main entry point for the interrupt example using the XDpPsu 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 XDpPsu 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 DpPsu_SetupExample().
Referenced by main().
| int main | ( | void | ) |
This function is the main function of the XDpPsu interrupt example.
If the DpPsuIntrExample 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 DpPsu_IntrExample().