dp12rxss
Vitis Drivers API Documentation
|
This file contains a design example using the XDpRxSs driver in single stream (SST) transport or multi-stream transport (MST) mode with interrupts.
Upon unplug event (DisplayPort cable is unplugged/plugged), DisplayPort RX Subsystem will program DP159 disconnect sequence or DP159 training pattern 1, 2, 3 sequences respectively.
MODIFICATION HISTORY:
Ver Who Date Changes
1.00 sha 07/29/15 Initial release. 2.00 sha 10/05/15 Changed DpTxSs_Setup –> DpRxSs_Setup. Removed HDCP callbacks registration and callbacks. Added HDCP and Timer Counter interrupt handler setup. 4.00 ms 01/23/17 Modified 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 | DpRxSs_IntrExample (u16 DeviceId) |
This function is the main entry point for the interrupt example using the XDpRxSs driver. More... | |
u32 | DpRxSs_PlatformInit (void) |
This function initialize required platform specific peripherals. More... | |
u32 | DpRxSs_VideoPhyInit (void) |
This function configures Video Phy. More... | |
u32 | DpRxSs_Setup (void) |
This function configures DisplayPort RX Subsystem. More... | |
u32 | DpRxSs_SetupIntrSystem (void) |
This function sets up the interrupt system so interrupts can occur for the DisplayPort RX Subsystem core. More... | |
void | DpRxSs_VideoModeHandler (void *InstancePtr) |
This function is the callback function for when a video mode change interrupt occurs. More... | |
void | DpRxSs_PowerChangeHandler (void *InstancePtr) |
This function is the callback function for when the power state interrupt occurs. More... | |
void | DpRxSs_NoVideoHandler (void *InstancePtr) |
This function is the callback function for when a no video interrupt occurs. More... | |
void | DpRxSs_VerticalBlankHandler (void *InstancePtr) |
This function is the callback function for when a vertical blank interrupt occurs. More... | |
void | DpRxSs_TrainingLostHandler (void *InstancePtr) |
This function is the callback function for when a training lost interrupt occurs. More... | |
void | DpRxSs_VideoHandler (void *InstancePtr) |
This function is the callback function for when a valid video interrupt occurs. More... | |
void | DpRxSs_InfoPacketHandler (void *InstancePtr) |
This function is the callback function for when an info packet interrupt occurs. More... | |
void | DpRxSs_ExtPacketHandler (void *InstancePtr) |
This function is the callback function for when arrival of external (audio) packet interrupt occurs. More... | |
void | DpRxSs_TrainingDoneHandler (void *InstancePtr) |
This function is the callback function for when the training done interrupt occurs. More... | |
void | DpRxSs_BandwidthChangeHandler (void *InstancePtr) |
This function is the callback function for when a bandwidth change interrupt occurs. More... | |
void | DpRxSs_DownReqestHandler (void *InstancePtr) |
This function is the callback function for when a down request interrupt occurs. More... | |
void | DpRxSs_DownReplyHandler (void *InstancePtr) |
This function is the callback function for when a down reply interrupt occurs. More... | |
void | DpRxSs_AudioOverflowHandler (void *InstancePtr) |
This function is the callback function for when an audio overflow interrupt occurs. More... | |
void | DpRxSs_PayloadAllocationHandler (void *InstancePtr) |
This function is the callback function for when a payload allocation interrupt occurs. More... | |
void | DpRxSs_ActRxHandler (void *InstancePtr) |
This function is the callback function for when an ACT sequence interrupt occurs. More... | |
void | DpRxSs_CrcTestHandler (void *InstancePtr) |
This function is the callback function for when a CRC test start interrupt occurs. More... | |
void | DpRxSs_UnplugHandler (void *InstancePtr) |
This function is the callback function for when the unplug event occurs. More... | |
void | DpRxSs_LinkBandwidthHandler (void *InstancePtr) |
This function is the callback function for when the link bandwidth change occurs. More... | |
void | DpRxSs_PllResetHandler (void *InstancePtr) |
This function is the callback function for PLL reset request. More... | |
int | main () |
This is the main function for XDpRxSs interrupt example. More... | |
void DpRxSs_ActRxHandler | ( | void * | InstancePtr | ) |
This function is the callback function for when an ACT sequence interrupt occurs.
InstancePtr | is a pointer to the XDpRxSs instance. |
void DpRxSs_AudioOverflowHandler | ( | void * | InstancePtr | ) |
This function is the callback function for when an audio overflow interrupt occurs.
InstancePtr | is a pointer to the XDpRxSs instance. |
void DpRxSs_BandwidthChangeHandler | ( | void * | InstancePtr | ) |
This function is the callback function for when a bandwidth change interrupt occurs.
InstancePtr | is a pointer to the XDpRxSs instance. |
void DpRxSs_CrcTestHandler | ( | void * | InstancePtr | ) |
This function is the callback function for when a CRC test start interrupt occurs.
InstancePtr | is a pointer to the XDpRxSs instance. |
void DpRxSs_DownReplyHandler | ( | void * | InstancePtr | ) |
This function is the callback function for when a down reply interrupt occurs.
InstancePtr | is a pointer to the XDpRxSs instance. |
void DpRxSs_DownReqestHandler | ( | void * | InstancePtr | ) |
This function is the callback function for when a down request interrupt occurs.
InstancePtr | is a pointer to the XDpRxSs instance. |
References XDpRxSs_HandleDownReq().
void DpRxSs_ExtPacketHandler | ( | void * | InstancePtr | ) |
This function is the callback function for when arrival of external (audio) packet interrupt occurs.
InstancePtr | is a pointer to the XDpRxSs instance. |
void DpRxSs_InfoPacketHandler | ( | void * | InstancePtr | ) |
This function is the callback function for when an info packet interrupt occurs.
InstancePtr | is a pointer to the XDpRxSs instance. |
u32 DpRxSs_IntrExample | ( | u16 | DeviceId | ) |
This function is the main entry point for the interrupt example using the XDpRxSs driver.
This function will setup the system with interrupts handlers.
DeviceId | is the unique device ID of the DisplayPort RX Subsystem core. |
References XDpRxSs_Config::BaseAddress, DpRxSs_PlatformInit(), DpRxSs_Setup(), DpRxSs_SetupIntrSystem(), DpRxSs_VideoPhyInit(), XDpRxSs_UsrOpt::MstSupport, XDpRxSs::UsrOpt, XDpRxSs_CfgInitialize(), XDpRxSs_LookupConfig(), XDpRxSs_SetLaneCount(), XDpRxSs_SetLinkRate(), and XDpRxSs_Start().
Referenced by main().
void DpRxSs_LinkBandwidthHandler | ( | void * | InstancePtr | ) |
This function is the callback function for when the link bandwidth change occurs.
InstancePtr | is a pointer to the XDpRxSs instance. |
void DpRxSs_NoVideoHandler | ( | void * | InstancePtr | ) |
This function is the callback function for when a no video interrupt occurs.
InstancePtr | is a pointer to the XDpRxSs instance. |
void DpRxSs_PayloadAllocationHandler | ( | void * | InstancePtr | ) |
This function is the callback function for when a payload allocation interrupt occurs.
InstancePtr | is a pointer to the XDpRxSs instance. |
u32 DpRxSs_PlatformInit | ( | void | ) |
This function initialize required platform specific peripherals.
None. |
void DpRxSs_PllResetHandler | ( | void * | InstancePtr | ) |
This function is the callback function for PLL reset request.
InstancePtr | is a pointer to the XDpRxSs instance. |
void DpRxSs_PowerChangeHandler | ( | void * | InstancePtr | ) |
This function is the callback function for when the power state interrupt occurs.
InstancePtr | is a pointer to the XDpRxSs instance. |
u32 DpRxSs_Setup | ( | void | ) |
This function configures DisplayPort RX Subsystem.
None. |
u32 DpRxSs_SetupIntrSystem | ( | void | ) |
This function sets up the interrupt system so interrupts can occur for the DisplayPort RX Subsystem core.
The function is application-specific since the actual system may or may not have an interrupt controller. The DPRX Subsystem core could be directly connected to a processor without an interrupt controller. The user should modify this function to fit the application.
None |
Referenced by DpRxSs_IntrExample(), and DpRxSs_MstExample().
void DpRxSs_TrainingDoneHandler | ( | void * | InstancePtr | ) |
This function is the callback function for when the training done interrupt occurs.
InstancePtr | is a pointer to the XDpRxSs instance. |
void DpRxSs_TrainingLostHandler | ( | void * | InstancePtr | ) |
This function is the callback function for when a training lost interrupt occurs.
InstancePtr | is a pointer to the XDpRxSs instance. |
void DpRxSs_UnplugHandler | ( | void * | InstancePtr | ) |
This function is the callback function for when the unplug event occurs.
InstancePtr | is a pointer to the XDpRxSs instance. |
void DpRxSs_VerticalBlankHandler | ( | void * | InstancePtr | ) |
This function is the callback function for when a vertical blank interrupt occurs.
InstancePtr | is a pointer to the XDpRxSs instance. |
void DpRxSs_VideoHandler | ( | void * | InstancePtr | ) |
This function is the callback function for when a valid video interrupt occurs.
InstancePtr | is a pointer to the XDpRxSs instance. |
void DpRxSs_VideoModeHandler | ( | void * | InstancePtr | ) |
This function is the callback function for when a video mode change interrupt occurs.
InstancePtr | is a pointer to the XDpRxSs instance. |
u32 DpRxSs_VideoPhyInit | ( | void | ) |
This function configures Video Phy.
None. |
int main | ( | void | ) |
This is the main function for XDpRxSs interrupt example.
If the DpRxSs_IntrExample function which setup the system succeeds, this function will wait for the interrupts.
None. |
References DpRxSs_IntrExample().