dsitxss
Vitis Drivers API Documentation
|
This file contains a design example using the XDsiTxSs driver with interrupts.
This will provide interrupts for pixel under run and undefined data type
MODIFICATION HISTORY:
Ver Who Date Changes
1.0 ram 11/2/16 Initial Release for MIPI DSI TX subsystem 1.1 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. ms 04/05/17 Added tabspace for return statements in functions for proper documentation while generating doxygen. 2.4 ml 11/15/23 Fix compilation errors reported with -std=c2x compiler flag
Functions | |
u32 | DsiTxSs_IntrExample (u32 DeviceId) |
This function is the main entry point for the interrupt example using the DsiTxSs driver. More... | |
void | XDsiTxSs_IntrHandler (void *InstancePtr) |
This function is the interrupt handler for the MIPI DSI Tx Subsystem. More... | |
u32 | XDsiTxSs_SetCallback (XDsiTxSs *InstancePtr, u32 HandlerType, void *CallbackFunc, void *CallbackRef) |
This routine installs an asynchronous callback function for the given HandlerType: More... | |
void | XDsiTxSs_SetGlobalInterrupt (void *InstancePtr) |
This function will enable the interrupts present in the interrupt mask passed onto the function. More... | |
void | XDsiTxSs_InterruptEnable (void *InstancePtr, u32 Mask) |
This function will enable the interrupts present in the interrupt mask passed onto the function. More... | |
void | DsiTxSs_PixelUnderrunEventHandler (void *CallbackRef, u32 Mask) |
This function is called when a Packet level error event is received by the MIPI DSI Tx Subsystem core. More... | |
void | DsiTxSs_UnSupportDataEventHandler (void *CallbackRef, u32 Mask) |
This function is called when a DPHY level error event is received by the MIPI DSI Rx Subsystem core. More... | |
void | DsiTxSs_CmdQFIFOFullEventHandler (void *CallbackRef, u32 Mask) |
This function is called when a Command Queue FIFO full error event is received by the MIPI DSI Tx Subsystem core. More... | |
s32 | main () |
This is the main function for XDsiTxSs interrupt example. More... | |
void | Delay (u32 Seconds) |
For Microblaze we use an assembly loop that is roughly the same regardless of optimization level, although caches and memory access time can make the delay vary. More... | |
s32 | SetupInterruptSystem (XDsiTxSs *DsiTxSsPtr) |
This function setups the interrupt system such that interrupts can occur for the DSI device. More... | |
void Delay | ( | u32 | Seconds | ) |
For Microblaze we use an assembly loop that is roughly the same regardless of optimization level, although caches and memory access time can make the delay vary.
Just keep in mind that after resetting or updating the PHY modes, the PHY typically needs time to recover.
Number | of seconds to sleep |
Referenced by DsiTxSs_IntrExample().
void DsiTxSs_CmdQFIFOFullEventHandler | ( | void * | CallbackRef, |
u32 | Mask | ||
) |
This function is called when a Command Queue FIFO full error event is received by the MIPI DSI Tx Subsystem core.
CallbackRef | is a pointer to the DsiTxSs instance. |
Mask | of interrupt which caused this event |
Referenced by DsiTxSs_IntrExample(), and SetupInterruptSystem().
u32 DsiTxSs_IntrExample | ( | u32 | DeviceId | ) |
This function is the main entry point for the interrupt example using the DsiTxSs driver.
This function will set up the system with interrupts handlers.
DeviceId | is the unique device ID of the MIPI DSI Subsystem core. |
References XDsiTxSs_Config::BaseAddr, Delay(), DsiTxSs_CmdQFIFOFullEventHandler(), DsiTxSs_PixelUnderrunEventHandler(), DsiTxSs_UnSupportDataEventHandler(), SetupInterruptSystem(), XDsiTxSs_CfgInitialize(), XDSITXSS_HANDLER_UNSUPPORT_DATATYPE, XDsiTxSs_InterruptEnable(), XDsiTxSs_IntrHandler(), XDsiTxSs_LookupConfig(), XDsiTxSs_SelfTest(), and XDsiTxSs_SetCallback().
Referenced by main().
void DsiTxSs_PixelUnderrunEventHandler | ( | void * | CallbackRef, |
u32 | Mask | ||
) |
This function is called when a Packet level error event is received by the MIPI DSI Tx Subsystem core.
CallbackRef | is a pointer to the DsiTxSs instance. |
Mask | of interrupt which caused this event |
Referenced by DsiTxSs_IntrExample(), and SetupInterruptSystem().
void DsiTxSs_UnSupportDataEventHandler | ( | void * | CallbackRef, |
u32 | Mask | ||
) |
This function is called when a DPHY level error event is received by the MIPI DSI Rx Subsystem core.
CallbackRef | is a pointer to the DsiTxSs instance. |
Mask | of interrupt which caused this event |
Referenced by DsiTxSs_IntrExample(), and SetupInterruptSystem().
s32 main | ( | ) |
This is the main function for XDsiTxSs interrupt example.
If the DsiTxSs_IntrExample function which sets up the system succeeds, this function will wait for the interrupts. Notify the events
None. |
References DsiTxSs_IntrExample().
s32 SetupInterruptSystem | ( | XDsiTxSs * | DsiTxSsPtr | ) |
This function setups the interrupt system such that interrupts can occur for the DSI device.
This function is application specific since the actual system may or may not have an interrupt controller. The DSI could be directly connected to a processor without an interrupt controller. The user should modify this function to fit the application.
DsiTxSsPtr | contains a pointer to the instance of the DSI component which is going to be connected to the interrupt controller. |
References DsiTxSs_CmdQFIFOFullEventHandler(), DsiTxSs_PixelUnderrunEventHandler(), DsiTxSs_UnSupportDataEventHandler(), XDSITXSS_HANDLER_UNSUPPORT_DATATYPE, XDsiTxSs_IntrHandler(), XDsiTxSs_SetCallback(), and XDsiTxSs_SetGlobalInterrupt().
Referenced by DsiTxSs_IntrExample().