XilinxProcessorIPLib/drivers/rgb2ycrcb/src/xrgb2ycrcb.c
void XRgb2YCrCb_Setup(XRgb2YCrCb *InstancePtr)
{
	u32 ActiveSize;

	/* Verify arguments. */
	Xil_AssertVoid(InstancePtr != NULL);

	XRgb2YCrCb_RegUpdateDisable(InstancePtr);

	/* Write into active size register */
	ActiveSize = (u32)(((u32)((InstancePtr->VSize)) <<
				(u32)(XRGB_ACTSIZE_NUM_LINE_SHIFT)) &
					(u32)(XRGB_ACTSIZE_NUM_LINE_MASK)) |
					((u32)((InstancePtr->HSize)) &
					(u32)(XRGB_ACTSIZE_NUM_PIXEL_MASK));
	XRgb2YCrCb_WriteReg(InstancePtr->Config.BaseAddress,
		(XRGB_ACTIVE_SIZE_OFFSET), ActiveSize);

	XRgb2YCrCb_RegUpdateEnable(InstancePtr);
}
/*****************************************************************************/
/**
*
* This function sets up double buffered ACTIVE_SIZE register and enables the
* register update.
*
* @param	InstancePtr is a pointer to the XRgb2YCrCb instance.
*
* @return	None.
*
* @note		None.
*
******************************************************************************/
This function sets up double buffered ACTIVE_SIZE register and enables the
register update.
This function sets up double buffered ACTIVE_SIZE register and enables the register update .
void XRgb2YCrCb_Setup(XRgb2YCrCb *InstancePtr)
{
	u32 ActiveSize;
	Xil_AssertVoid(InstancePtr != NULL);
	XRgb2YCrCb_RegUpdateDisable(InstancePtr);
	ActiveSize = (u32)(((u32)((InstancePtr->VSize)) <<
				(u32)(XRGB_ACTSIZE_NUM_LINE_SHIFT)) &
					(u32)(XRGB_ACTSIZE_NUM_LINE_MASK)) |
					((u32)((InstancePtr->HSize)) &
					(u32)(XRGB_ACTSIZE_NUM_PIXEL_MASK));
	XRgb2YCrCb_WriteReg(InstancePtr->Config.BaseAddress,
		(XRGB_ACTIVE_SIZE_OFFSET), ActiveSize);
	XRgb2YCrCb_RegUpdateEnable(InstancePtr);
}
void XRgb2YCrCb_Setup ( XRgb2YCrCb * InstancePtr ) { u32 ActiveSize ; Xil_AssertVoid ( InstancePtr != NULL ) ; XRgb2YCrCb_RegUpdateDisable ( InstancePtr ) ; ActiveSize = ( u32 ) ( ( ( u32 ) ( ( InstancePtr -> VSize ) ) << ( u32 ) ( XRGB_ACTSIZE_NUM_LINE_SHIFT ) ) & ( u32 ) ( XRGB_ACTSIZE_NUM_LINE_MASK ) ) | ( ( u32 ) ( ( InstancePtr -> HSize ) ) & ( u32 ) ( XRGB_ACTSIZE_NUM_PIXEL_MASK ) ) ; XRgb2YCrCb_WriteReg ( InstancePtr -> Config . BaseAddress , ( XRGB_ACTIVE_SIZE_OFFSET ) , ActiveSize ) ; XRgb2YCrCb_RegUpdateEnable ( InstancePtr ) ; }
This function sets up double buffered ACTIVE_SIZE register and enables the
register update.
This function sets up double buffered ACTIVE_SIZE register and enables the register update .
/* Verify arguments. */ /* Write into active size register */