dp14rxss
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.
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. 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_MstExample (u16 DeviceId) |
This function is the main entry point for the MST/SST 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_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_TrainingDoneHandler (void *InstancePtr) |
This function is the callback function for when the training done 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_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... | |
u32 | DpRxSs_SetupTimerHandler (void) |
This function sets up a custom timer which the driver will use for MicroBlaze systems. More... | |
void | DpRxSs_CustomWaitUs (void *InstancePtr, u32 MicroSeconds) |
This function is used to override the driver's default sleep functionality. More... | |
void | DpRxSs_DetectResolution (XDpRxSs *InstancePtr) |
This function will present the resolution of the incoming video stream. More... | |
int | main () |
This is the main function for XDpRxSs SST/MST example. More... | |
void DpRxSs_CustomWaitUs | ( | void * | InstancePtr, |
u32 | MicroSeconds | ||
) |
This function is used to override the driver's default sleep functionality.
For MicroBlaze systems, the XDpRxSs_WaitUs driver function's default behavior is to use the MB_Sleep function from microblaze_sleep.h, which is implemented in software and only has millisecond accuracy. For this reason, using a hardware timer is preferable. For ARM/Zynq SoC systems, the SoC's timer is used - XDpRxSs_WaitUs will ignore this custom timer handler.
InstancePtr | is a pointer to the XDpRxSs core instance. |
MicroSeconds | is the number of microseconds to delay/sleep for. |
References XDpRxSs::DpPtr.
Referenced by DpRxSs_SetupTimerHandler().
void DpRxSs_DetectResolution | ( | XDpRxSs * | InstancePtr | ) |
This function will present the resolution of the incoming video stream.
InstancePtr | is a pointer to the XDpRxSs instance. |
References XDpRxSs::DpPtr, XDPRXSS_MSA_HRES, XDPRXSS_MSA_VRES, XDpRxSs_ReadReg, and XDpRxSs_WaitUs.
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. |
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. |
u32 DpRxSs_MstExample | ( | u16 | DeviceId | ) |
This function is the main entry point for the MST/SST example using the XDpRxSs driver.
DeviceId | is the unique device ID of the DisplayPort RX Subsystem core. |
References XDpRxSs_Config::BaseAddress, DpRxSs_PlatformInit(), DpRxSs_Setup(), DpRxSs_SetupIntrSystem(), DpRxSs_SetupTimerHandler(), DpRxSs_VideoPhyInit(), XDpRxSs_UsrOpt::MstSupport, XDpRxSs::UsrOpt, XDpRxSs_CfgInitialize(), XDpRxSs_LookupConfig(), XDpRxSs_SetLaneCount(), XDpRxSs_SetLinkRate(), and XDpRxSs_Start().
Referenced by main().
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. |
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. |
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 |
u32 DpRxSs_SetupTimerHandler | ( | void | ) |
This function sets up a custom timer which the driver will use for MicroBlaze systems.
None. |
References XDpRxSs::DpPtr, DpRxSs_CustomWaitUs(), and XDpRxSs_SetUserTimerHandler().
Referenced by 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_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 | ( | ) |
This is the main function for XDpRxSs SST/MST example.
None. |
References DpRxSs_MstExample().