XilinxProcessorIPLib/drivers/rgb2ycrcb/src/xrgb2ycrcb.c
void XRgb2YCrCb_EnableDbgTestPattern(XRgb2YCrCb *InstancePtr)
{
	/* Verify arguments. */
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->Config.HasDebug != (u16)0x0);

	XRgb2YCrCb_WriteReg(InstancePtr->Config.BaseAddress,
		(XRGB_CONTROL_OFFSET),
			((XRgb2YCrCb_ReadReg(InstancePtr->Config.BaseAddress,
			(XRGB_CONTROL_OFFSET))) | (XRGB_CTL_TPE_MASK)));
}
/*****************************************************************************/
/**
*
* This function switches the core to test-pattern generator mode if debug
* feature is enabled.
*
* @param	InstancePtr is a pointer to the XRgb2YCrCb instance.
*
* @return	None.
*
* @note		Debug functionality should be enabled.
*
******************************************************************************/
This function switches the core to test-pattern generator mode if debug
feature is enabled.
This function switches the core to test - pattern generator mode if debug feature is enabled .
void XRgb2YCrCb_EnableDbgTestPattern(XRgb2YCrCb *InstancePtr)
{
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->Config.HasDebug != (u16)0x0);
	XRgb2YCrCb_WriteReg(InstancePtr->Config.BaseAddress,
		(XRGB_CONTROL_OFFSET),
			((XRgb2YCrCb_ReadReg(InstancePtr->Config.BaseAddress,
			(XRGB_CONTROL_OFFSET))) | (XRGB_CTL_TPE_MASK)));
}
void XRgb2YCrCb_EnableDbgTestPattern ( XRgb2YCrCb * InstancePtr ) { Xil_AssertVoid ( InstancePtr != NULL ) ; Xil_AssertVoid ( InstancePtr -> Config . HasDebug != ( u16 ) 0x0 ) ; XRgb2YCrCb_WriteReg ( InstancePtr -> Config . BaseAddress , ( XRGB_CONTROL_OFFSET ) , ( ( XRgb2YCrCb_ReadReg ( InstancePtr -> Config . BaseAddress , ( XRGB_CONTROL_OFFSET ) ) ) | ( XRGB_CTL_TPE_MASK ) ) ) ; }
This function switches the core to test-pattern generator mode if debug
feature is enabled.
This function switches the core to test - pattern generator mode if debug feature is enabled .
/* Verify arguments. */