/* This function sets up the generator (Polarity, H/V values and horizontal offsets) by reading the configuration from a video timing structure. */
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. */
void XVtc_SetGeneratorTiming(XVtc *InstancePtr, XVtc_Timing *TimingPtr)
{
	XVtc_Polarity Polarity;
	XVtc_Signal Signal;
	XVtc_HoriOffsets Hoff;
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	Xil_AssertVoid(TimingPtr != NULL);
	XVtc_ConvTiming2Signal(InstancePtr, TimingPtr, &Signal, &Hoff,
				&Polarity);
	XVtc_SetPolarity(InstancePtr, &Polarity);
	XVtc_SetGenerator(InstancePtr, &Signal);
	XVtc_SetGeneratorHoriOffset(InstancePtr, &Hoff);
}