![]() |
vprocss
Vitis Drivers API Documentation
|
Data Structures | |
| struct | XPeriph |
| System Peripheral configuration structure. More... | |
Macros | |
| #define | XPeriph_SetTPGColorFormat(pPeriph, ColorFormat) ((pPeriph)->TpgConfig.ColorFmt = ColorFormat) |
| This macro sets the TPG color format. More... | |
| #define | XPeriph_SetTPGPattern(pPeriph, Pattern) ((pPeriph)->TpgConfig.Pattern = Pattern) |
| This macro sets the TPG pattern. More... | |
| #define | XPeriph_SetTPGWidth(pPeriph, width) ((pPeriph)->TpgConfig.Width = width) |
| This macro sets TPG active width. More... | |
| #define | XPeriph_SetTPGHeight(pPeriph, height) ((pPeriph)->TpgConfig.Height = height) |
| This macro sets TPG active height. More... | |
| #define | XPeriph_SetTPGInterlacedMode(pPeriph, mode) ((pPeriph)->TpgConfig.IsInterlaced = mode) |
| This macro sets TPG Interlaced Mode. More... | |
| #define | XPeriph_IsVideoLocked(pPeriph) |
| This macro reads GPIO to check video lock status. More... | |
Functions | |
| int | XPeriph_PowerOnInit (XPeriph *InstancePtr) |
| This function initializes system wide common peripherals. More... | |
| void | XPeriph_ResetHlsIp (XPeriph *InstancePtr) |
| This function resets the Hls IP block(s) More... | |
| void | XPeriph_ReportDeviceInfo (XPeriph *InstancePtr) |
| This function reports system wide common peripherals included in the design. More... | |
| void | XPeriph_ConfigTpg (XPeriph *InstancePtr) |
| This function configures TPG to user defined parameters. More... | |
| void | XPeriph_ConfigVtc (XPeriph *InstancePtr, XVidC_VideoStream *StreamPtr, u32 PixPerClk) |
| This function configures the Video Timing Controller (VTC) for a given peripheral instance based on the provided video stream parameters and the number of pixels per clock. More... | |
| void | XPeriph_DisableTpg (XPeriph *InstancePtr) |
| This function stops TPG IP. More... | |
| void | XPeriph_SetTpgParams (XPeriph *InstancePtr, u16 width, u16 height, XVidC_ColorFormat Cformat, u16 Pattern, u16 IsInterlaced) |
| This function sets the parameters for the Test Pattern Generator (TPG) in the XPeriph instance. More... | |
| void | XPeriph_TpgDbgReportStatus (XPeriph *InstancePtr) |
| This function reports TPG Status. More... | |
| #define XPeriph_IsVideoLocked | ( | pPeriph | ) |
This macro reads GPIO to check video lock status.
| pPeriph | is pointer to the peripheral Instance |
| #define XPeriph_SetTPGColorFormat | ( | pPeriph, | |
| ColorFormat | |||
| ) | ((pPeriph)->TpgConfig.ColorFmt = ColorFormat) |
This macro sets the TPG color format.
| pPeriph | is pointer to the peripheral Instance |
| ColorFormat | is the new color format |
Referenced by XPeriph_SetTpgParams().
| #define XPeriph_SetTPGHeight | ( | pPeriph, | |
| height | |||
| ) | ((pPeriph)->TpgConfig.Height = height) |
This macro sets TPG active height.
| pPeriph | is pointer to the peripheral Instance |
| height | is the new active height |
Referenced by XPeriph_SetTpgParams().
| #define XPeriph_SetTPGInterlacedMode | ( | pPeriph, | |
| mode | |||
| ) | ((pPeriph)->TpgConfig.IsInterlaced = mode) |
This macro sets TPG Interlaced Mode.
| pPeriph | is pointer to the peripheral Instance |
| mode | is the interlace mode T/F |
Referenced by XPeriph_SetTpgParams().
| #define XPeriph_SetTPGPattern | ( | pPeriph, | |
| Pattern | |||
| ) | ((pPeriph)->TpgConfig.Pattern = Pattern) |
This macro sets the TPG pattern.
| pPeriph | is pointer to the peripheral Instance |
| Pattern | is the new pattern id |
Referenced by XPeriph_SetTpgParams().
| #define XPeriph_SetTPGWidth | ( | pPeriph, | |
| width | |||
| ) | ((pPeriph)->TpgConfig.Width = width) |
This macro sets TPG active width.
| pPeriph | Pointer to the peripheral instance whose TPG width is to be set. |
| width | The desired width value to set for the TPG. |
Referenced by XPeriph_SetTpgParams().
| void XPeriph_ConfigTpg | ( | XPeriph * | InstancePtr | ) |
This function configures TPG to user defined parameters.
| InstancePtr | is a pointer to the peripheral instance |
| void XPeriph_ConfigVtc | ( | XPeriph * | InstancePtr, |
| XVidC_VideoStream * | StreamPtr, | ||
| u32 | PixPerClk | ||
| ) |
This function configures the Video Timing Controller (VTC) for a given peripheral instance based on the provided video stream parameters and the number of pixels per clock.
The function performs the following steps:
| InstancePtr | Pointer to the XPeriph instance to configure. |
| StreamPtr | Pointer to the XVidC_VideoStream structure containing timing information. |
| PixPerClk | Number of pixels processed per clock cycle. |
| void XPeriph_DisableTpg | ( | XPeriph * | InstancePtr | ) |
This function stops TPG IP.
| InstancePtr | is a pointer to the peripheral instance |
| int XPeriph_PowerOnInit | ( | XPeriph * | InstancePtr | ) |
This function initializes system wide common peripherals.
| InstancePtr | is a pointer to the Subsystem instance to be worked on. |
References XPeriph_ResetHlsIp().
Referenced by XSys_Init().
| void XPeriph_ReportDeviceInfo | ( | XPeriph * | InstancePtr | ) |
This function reports system wide common peripherals included in the design.
| InstancePtr | is a pointer to the Subsystem instance to be worked on. |
Referenced by XSys_ReportSystemInfo().
| void XPeriph_ResetHlsIp | ( | XPeriph * | InstancePtr | ) |
This function resets the Hls IP block(s)
| InstancePtr | is a pointer to the peripheral instance |
Referenced by XPeriph_PowerOnInit().
| void XPeriph_SetTpgParams | ( | XPeriph * | InstancePtr, |
| u16 | width, | ||
| u16 | height, | ||
| XVidC_ColorFormat | Cformat, | ||
| u16 | Pattern, | ||
| u16 | IsInterlaced | ||
| ) |
This function sets the parameters for the Test Pattern Generator (TPG) in the XPeriph instance.
| InstancePtr | Pointer to the XPeriph instance. |
| width | Width of the test pattern to be generated. |
| height | Height of the test pattern to be generated. |
| Cformat | Color format for the test pattern (of type XVidC_ColorFormat). |
| Pattern | Pattern type to be generated. |
| IsInterlaced | Flag indicating whether the output should be interlaced (1) or progressive (0). |
References XPeriph_SetTPGColorFormat, XPeriph_SetTPGHeight, XPeriph_SetTPGInterlacedMode, XPeriph_SetTPGPattern, and XPeriph_SetTPGWidth.
| void XPeriph_TpgDbgReportStatus | ( | XPeriph * | InstancePtr | ) |
This function reports TPG Status.
| InstancePtr | is a pointer to the peripheral instance |