XilinxProcessorIPLib/drivers/dsitxss/examples/xdsitxss_video_test_example.c
void SetupVdmaCR(s32 VdmaChannel, s32 FrameCount)
{
	if (VdmaChannel == VDMA_MM2S) {
		*VdmaMM2SCrReg = (FrameCount << 16) | ENABLE_FRAME_COUNT |
			ENABLE_CIRCULAR_MODE | START_VDMA ;
	}
	else if (VdmaChannel==VDMA_S2MM) {
		*VdmaS2MMCrReg = (FrameCount << 16) | ENABLE_FRAME_COUNT |
			ENABLE_CIRCULAR_MODE | START_VDMA ;
	}
}
/*****************************************************************************/
/**
*
* This function to setup the VDMA Control Register
*
* @param	VdmaChannel specifes VdmaChannel is MM2S or S2MM
* @param	FrameCount specifies number of frames to transfer
*
* @return	None
*
* @note		None.
*
******************************************************************************/
This function to setup the VDMA Control Register
This function to setup the VDMA Control Register
void SetupVdmaCR(s32 VdmaChannel, s32 FrameCount)
{
	if (VdmaChannel == VDMA_MM2S) {
		*VdmaMM2SCrReg = (FrameCount << 16) | ENABLE_FRAME_COUNT |
			ENABLE_CIRCULAR_MODE | START_VDMA ;
	}
	else if (VdmaChannel==VDMA_S2MM) {
		*VdmaS2MMCrReg = (FrameCount << 16) | ENABLE_FRAME_COUNT |
			ENABLE_CIRCULAR_MODE | START_VDMA ;
	}
}
void SetupVdmaCR ( s32 VdmaChannel , s32 FrameCount ) { if ( VdmaChannel == VDMA_MM2S ) { * VdmaMM2SCrReg = ( FrameCount << 16 ) | ENABLE_FRAME_COUNT | ENABLE_CIRCULAR_MODE | START_VDMA ; } else if ( VdmaChannel == VDMA_S2MM ) { * VdmaS2MMCrReg = ( FrameCount << 16 ) | ENABLE_FRAME_COUNT | ENABLE_CIRCULAR_MODE | START_VDMA ; } }
This function to setup the VDMA Control Register
This function to setup the VDMA Control Register