XilinxProcessorIPLib/drivers/dpdma/src/xdpdma.c
void XDpDma_CfgInitialize(XDpDma *InstancePtr, XDpDma_Config *CfgPtr)
{
	InstancePtr->Config.DeviceId = CfgPtr->DeviceId;
	InstancePtr->Config.BaseAddr = CfgPtr->BaseAddr;

	InstancePtr->Video.Channel[XDPDMA_VIDEO_CHANNEL0].Current = NULL;
	InstancePtr->Video.Channel[XDPDMA_VIDEO_CHANNEL1].Current = NULL;
	InstancePtr->Video.Channel[XDPDMA_VIDEO_CHANNEL2].Current = NULL;
	InstancePtr->Video.TriggerStatus = XDPDMA_TRIGGER_DONE;
	InstancePtr->Video.VideoInfo = NULL;
	InstancePtr->Video.FrameBuffer[XDPDMA_VIDEO_CHANNEL0] = NULL;
	InstancePtr->Video.FrameBuffer[XDPDMA_VIDEO_CHANNEL1] = NULL;
	InstancePtr->Video.FrameBuffer[XDPDMA_VIDEO_CHANNEL2] = NULL;

	InstancePtr->Gfx.Channel.Current = NULL;
	InstancePtr->Gfx.TriggerStatus = XDPDMA_TRIGGER_DONE;
	InstancePtr->Gfx.VideoInfo = NULL;
	InstancePtr->Gfx.FrameBuffer = NULL;
}
/*************************************************************************/
/**
 *
 * This functions retrieves the configuration for this DPDMA driver and
 * fills in the InstancePtr->Config structure.
 *
 * @param    InstancePtr is a pointer to the driver instance.
 * @param    CfgPtr is a pointer to the configuration structure that will
 *           be used to copy the settings from.
 *
 * @return   None.
 *
 * @note     None.
 *
 * **************************************************************************/
This functions retrieves the configuration for this DPDMA driver and
fills in the InstancePtr->Config structure.

@param    InstancePtr is a pointer to the driver instance.
@param    CfgPtr is a pointer to the configuration structure that will
be used to copy the settings from.

@return   None.

@note     None.
This functions retrieves the configuration for this DPDMA driver and fills in the InstancePtr - > Config structure . @param InstancePtr is a pointer to the driver instance . @param CfgPtr is a pointer to the configuration structure that will be used to copy the settings from . @return None . @note None .
void XDpDma_CfgInitialize(XDpDma *InstancePtr, XDpDma_Config *CfgPtr)
{
	InstancePtr->Config.DeviceId = CfgPtr->DeviceId;
	InstancePtr->Config.BaseAddr = CfgPtr->BaseAddr;
	InstancePtr->Video.Channel[XDPDMA_VIDEO_CHANNEL0].Current = NULL;
	InstancePtr->Video.Channel[XDPDMA_VIDEO_CHANNEL1].Current = NULL;
	InstancePtr->Video.Channel[XDPDMA_VIDEO_CHANNEL2].Current = NULL;
	InstancePtr->Video.TriggerStatus = XDPDMA_TRIGGER_DONE;
	InstancePtr->Video.VideoInfo = NULL;
	InstancePtr->Video.FrameBuffer[XDPDMA_VIDEO_CHANNEL0] = NULL;
	InstancePtr->Video.FrameBuffer[XDPDMA_VIDEO_CHANNEL1] = NULL;
	InstancePtr->Video.FrameBuffer[XDPDMA_VIDEO_CHANNEL2] = NULL;
	InstancePtr->Gfx.Channel.Current = NULL;
	InstancePtr->Gfx.TriggerStatus = XDPDMA_TRIGGER_DONE;
	InstancePtr->Gfx.VideoInfo = NULL;
	InstancePtr->Gfx.FrameBuffer = NULL;
}
void XDpDma_CfgInitialize ( XDpDma * InstancePtr , XDpDma_Config * CfgPtr ) { InstancePtr -> Config . DeviceId = CfgPtr -> DeviceId ; InstancePtr -> Config . BaseAddr = CfgPtr -> BaseAddr ; InstancePtr -> Video . Channel [ XDPDMA_VIDEO_CHANNEL0 ] . Current = NULL ; InstancePtr -> Video . Channel [ XDPDMA_VIDEO_CHANNEL1 ] . Current = NULL ; InstancePtr -> Video . Channel [ XDPDMA_VIDEO_CHANNEL2 ] . Current = NULL ; InstancePtr -> Video . TriggerStatus = XDPDMA_TRIGGER_DONE ; InstancePtr -> Video . VideoInfo = NULL ; InstancePtr -> Video . FrameBuffer [ XDPDMA_VIDEO_CHANNEL0 ] = NULL ; InstancePtr -> Video . FrameBuffer [ XDPDMA_VIDEO_CHANNEL1 ] = NULL ; InstancePtr -> Video . FrameBuffer [ XDPDMA_VIDEO_CHANNEL2 ] = NULL ; InstancePtr -> Gfx . Channel . Current = NULL ; InstancePtr -> Gfx . TriggerStatus = XDPDMA_TRIGGER_DONE ; InstancePtr -> Gfx . VideoInfo = NULL ; InstancePtr -> Gfx . FrameBuffer = NULL ; }
This functions retrieves the configuration for this DPDMA driver and
 fills in the InstancePtr->Config structure.
This functions retrieves the configuration for this DPDMA driver and fills in the InstancePtr - > Config structure .