/* This function sets up the generator (Polarity, H/V values and horizontal offsets) by reading the configuration from a video mode short integer. */
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. */
void XVtc_SetGeneratorVideoMode(XVtc *InstancePtr, u16 Mode)
{
	XVtc_Timing Timing;
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	XVtc_ConvVideoMode2Timing(InstancePtr, Mode, &Timing);
	XVtc_SetGeneratorTiming(InstancePtr, &Timing);
}