vtc
Vitis Drivers API Documentation
xvtc.c File Reference

Functions

int XVtc_CfgInitialize (XVtc *InstancePtr, XVtc_Config *CfgPtr, UINTPTR EffectiveAddr)
 This function initializes the VTC core. More...
 
void XVtc_EnableGenerator (XVtc *InstancePtr)
 This function enables the VTC Generator core. More...
 
void XVtc_EnableDetector (XVtc *InstancePtr)
 This function enables the VTC Detector core. More...
 
void XVtc_Enable (XVtc *InstancePtr)
 This function enables the Detector and Generator at same time of the VTC core. More...
 
void XVtc_DisableGenerator (XVtc *InstancePtr)
 This function disables the VTC Generator core. More...
 
void XVtc_DisableDetector (XVtc *InstancePtr)
 This function disables the VTC Detector core. More...
 
void XVtc_Disable (XVtc *InstancePtr)
 This function disables the Detector and Generator at same time of the VTC core. More...
 
void XVtc_SetPolarity (XVtc *InstancePtr, XVtc_Polarity *PolarityPtr)
 This function sets up the output polarity of the VTC core. More...
 
void XVtc_GetPolarity (XVtc *InstancePtr, XVtc_Polarity *PolarityPtr)
 This function gets the output polarity setting used by the VTC core. More...
 
void XVtc_GetDetectorPolarity (XVtc *InstancePtr, XVtc_Polarity *PolarityPtr)
 This function gets the input polarity setting used by the VTC core. More...
 
void XVtc_SetSource (XVtc *InstancePtr, XVtc_SourceSelect *SourcePtr)
 This function sets up the source selecting of the VTC core. More...
 
void XVtc_GetSource (XVtc *InstancePtr, XVtc_SourceSelect *SourcePtr)
 This function gets the source select setting used by the VTC core. More...
 
void XVtc_SetSkipLine (XVtc *InstancePtr, int GeneratorChromaSkip)
 This function sets up the line skip setting of the Generator in the VTC core. More...
 
void XVtc_GetSkipLine (XVtc *InstancePtr, int *GeneratorChromaSkipPtr)
 This function gets the line skip setting used by the Generator in the VTC core. More...
 
void XVtc_SetSkipPixel (XVtc *InstancePtr, int GeneratorChromaSkip)
 This function sets up the pixel skip setting of the Generator in the VTC core. More...
 
void XVtc_GetSkipPixel (XVtc *InstancePtr, int *GeneratorChromaSkipPtr)
 This function gets the pixel skip setting used by the Generator in the VTC core. More...
 
void XVtc_SetDelay (XVtc *InstancePtr, int VertDelay, int HoriDelay)
 This function sets up the Generator delay setting of the VTC core. More...
 
void XVtc_GetDelay (XVtc *InstancePtr, int *VertDelayPtr, int *HoriDelayPtr)
 This function gets the Generator delay setting used by the VTC core. More...
 
void XVtc_SetFSync (XVtc *InstancePtr, u16 FrameSyncIndex, u16 VertStart, u16 HoriStart)
 This function sets up the SYNC setting of a frame sync used by the VTC core. More...
 
void XVtc_GetFSync (XVtc *InstancePtr, u16 FrameSyncIndex, u16 *VertStartPtr, u16 *HoriStartPtr)
 This function gets the SYNC setting of a frame sync used by the VTC core. More...
 
void XVtc_SetGeneratorHoriOffset (XVtc *InstancePtr, XVtc_HoriOffsets *HoriOffsets)
 This function sets the VBlank/VSync Horizontal Offsets for the Generator in a VTC device. More...
 
void XVtc_GetGeneratorHoriOffset (XVtc *InstancePtr, XVtc_HoriOffsets *HoriOffsets)
 This function gets the VBlank/VSync Horizontal Offsets currently used by the Generator in the VTC core. More...
 
void XVtc_GetDetectorHoriOffset (XVtc *InstancePtr, XVtc_HoriOffsets *HoriOffsets)
 This function gets the VBlank/VSync Horizontal Offsets detected by the Detector in the VTC core. More...
 
void XVtc_SetGenerator (XVtc *InstancePtr, XVtc_Signal *SignalCfgPtr)
 This function sets up VTC signal to be used by the Generator module in the VTC core. More...
 
void XVtc_GetGenerator (XVtc *InstancePtr, XVtc_Signal *SignalCfgPtr)
 This function gets the VTC signal setting used by the Generator module in the VTC core. More...
 
void XVtc_GetDetector (XVtc *InstancePtr, XVtc_Signal *SignalCfgPtr)
 This function gets the VTC signal setting used by the Detector module in the VTC core. More...
 
u32 XVtc_GetVersion (XVtc *InstancePtr)
 This function facilitates software identification of exact version of the VTC hardware (h/w). More...
 
void XVtc_ConvVideoMode2Timing (XVtc *InstancePtr, u16 Mode, XVtc_Timing *TimingPtr)
 This function converts the video mode integer into the video timing information stored within the XVtc_Timing pointer. More...
 
void XVtc_ConvTiming2Signal (XVtc *InstancePtr, XVtc_Timing *TimingPtr, XVtc_Signal *SignalCfgPtr, XVtc_HoriOffsets *HOffPtr, XVtc_Polarity *PolarityPtr)
 This function converts the video timing structure into the VTC signal configuration structure, horizontal offsets structure and the polarity structure. More...
 
void XVtc_ConvSignal2Timing (XVtc *InstancePtr, XVtc_Signal *SignalCfgPtr, XVtc_HoriOffsets *HOffPtr, XVtc_Polarity *PolarityPtr, XVtc_Timing *TimingPtr)
 This function converts the VTC signal structure, horizontal offsets structure and the polarity structure into the Video Timing structure. More...
 
u16 XVtc_ConvTiming2VideoMode (XVtc *InstancePtr, XVtc_Timing *TimingPtr)
 This function converts the video timing structure into predefined video mode values returned as a short integer. More...
 
void XVtc_SetGeneratorTiming (XVtc *InstancePtr, XVtc_Timing *TimingPtr)
 This function sets up the generator (Polarity, H/V values and horizontal offsets) by reading the configuration from a video timing structure. More...
 
void XVtc_SetGeneratorVideoMode (XVtc *InstancePtr, u16 Mode)
 This function sets up the generator (Polarity, H/V values and horizontal offsets) by reading the configuration from a video mode short integer. More...
 
void XVtc_GetGeneratorTiming (XVtc *InstancePtr, XVtc_Timing *TimingPtr)
 This function gets the video timing structure settings currently used by generator in the VTC core. More...
 
u16 XVtc_GetGeneratorVideoMode (XVtc *InstancePtr)
 This function gets the video mode currently used by the generator in the VTC core. More...
 
void XVtc_GetDetectorTiming (XVtc *InstancePtr, XVtc_Timing *TimingPtr)
 This function gets the video timing structure settings currently reported by the detector in the VTC core. More...
 
u16 XVtc_GetDetectorVideoMode (XVtc *InstancePtr)
 This function gets the video mode currently reported by the detector in the VTC core. More...
 
void XVtc_SetAdaptiveSyncMode (XVtc *InstancePtr, XVtc_AdaptiveSyncMode Mode)
 This function sets the vertical front porch stretch mechanism in VTC core to support Adaptive-Sync feature. More...
 
void XVtc_DisableAdaptiveSync (XVtc *InstancePtr)
 This function disable Adaptive-Sync in VTC core. More...
 
void XVtc_SetVfpStretchLimit (XVtc *InstancePtr, u32 StretchLimit)
 This function sets vertical front porch stretch limit. More...