XilinxProcessorIPLib/drivers/rgb2ycrcb/src/xrgb2ycrcb.c
int XRgb2YCrCb_IsDbgTestPatternEnabled(XRgb2YCrCb *InstancePtr)
{
	u32 DbgTestPattern;
	int Status;

	/* Verify arguments. */
	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid((InstancePtr)->Config.HasDebug != (u16)0x0);

	DbgTestPattern = (XRgb2YCrCb_ReadReg(InstancePtr->Config.BaseAddress,
				(XRGB_CONTROL_OFFSET))) & (XRGB_CTL_TPE_MASK);

	if (DbgTestPattern == (XRGB_CTL_TPE_MASK)) {
		Status = (TRUE);
	}
	else {
		Status = (FALSE);
	}

	return Status;
}
/*****************************************************************************/
/**
*
* This function returns the test-pattern generator mode (enabled or not), if
* debug feature is enabled.
*
* @param	InstancePtr is a pointer to the XRgb2YCrCb instance.
*
* @return
*		- TRUE if Test-pattern mode is enabled.
*		- FALSE if Test-pattern mode is not enabled.
*
* @note		Debug functionality should be enabled.
*
******************************************************************************/
This function returns the test-pattern generator mode (enabled or not), if
debug feature is enabled.
This function returns the test - pattern generator mode ( enabled or not ) if debug feature is enabled .
int XRgb2YCrCb_IsDbgTestPatternEnabled(XRgb2YCrCb *InstancePtr)
{
	u32 DbgTestPattern;
	int Status;
	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid((InstancePtr)->Config.HasDebug != (u16)0x0);
	DbgTestPattern = (XRgb2YCrCb_ReadReg(InstancePtr->Config.BaseAddress,
				(XRGB_CONTROL_OFFSET))) & (XRGB_CTL_TPE_MASK);
	if (DbgTestPattern == (XRGB_CTL_TPE_MASK)) {
		Status = (TRUE);
	}
	else {
		Status = (FALSE);
	}
	return Status;
}
int XRgb2YCrCb_IsDbgTestPatternEnabled ( XRgb2YCrCb * InstancePtr ) { u32 DbgTestPattern ; int Status ; Xil_AssertNonvoid ( InstancePtr != NULL ) ; Xil_AssertNonvoid ( ( InstancePtr ) -> Config . HasDebug != ( u16 ) 0x0 ) ; DbgTestPattern = ( XRgb2YCrCb_ReadReg ( InstancePtr -> Config . BaseAddress , ( XRGB_CONTROL_OFFSET ) ) ) & ( XRGB_CTL_TPE_MASK ) ; if ( DbgTestPattern == ( XRGB_CTL_TPE_MASK ) ) { Status = ( TRUE ) ; } else { Status = ( FALSE ) ; } return Status ; }
This function returns the test-pattern generator mode (enabled or not), if
debug feature is enabled.
This function returns the test - pattern generator mode ( enabled or not ) if debug feature is enabled .
/* Verify arguments. */