XilinxProcessorIPLib/drivers/hwicap/src/xhwicap_srp.c
int XHwIcap_CommandCapture(XHwIcap *InstancePtr)
{
	int Status;
	u32 FrameBuffer[CAPTURE_COMMAND_SIZE];
	u32 Index =0;

	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);

	/*
	 * Create the data to be written to the ICAP.
	 */
	FrameBuffer[Index++] = XHI_DUMMY_PACKET;
	FrameBuffer[Index++] = XHI_SYNC_PACKET;
	FrameBuffer[Index++] = XHI_NOOP_PACKET;
	FrameBuffer[Index++] = (XHwIcap_Type1Write(XHI_CMD) | 1);
	FrameBuffer[Index++] = XHI_CMD_GCAPTURE;
	FrameBuffer[Index++] =  XHI_DUMMY_PACKET;
	FrameBuffer[Index++] =  XHI_DUMMY_PACKET;

	/*
	 * Write the data to the FIFO and intiate the transfer of data present
	 * in the FIFO to the ICAP device.
	 */
	Status = XHwIcap_DeviceWrite(InstancePtr, &FrameBuffer[0], Index);
	if (Status != XST_SUCCESS)  {
		return XST_FAILURE;
	}

	return XST_SUCCESS;
}
/****************************************************************************/
/**
*
* Sends a CAPTURE command to the ICAP port.  This command captures all
* of the flip flop states so they will be available during readback.
* One can use this command instead of enabling the CAPTURE block in the
* design.
*
* @param	InstancePtr is a pointer to the XHwIcap instance.
*
* @return	XST_SUCCESS or XST_FAILURE
*
* @note		None.
*
*****************************************************************************/
Sends a CAPTURE command to the ICAP port.  This command captures all
of the flip flop states so they will be available during readback.
One can use this command instead of enabling the CAPTURE block in the
design.
Sends a CAPTURE command to the ICAP port . This command captures all of the flip flop states so they will be available during readback . One can use this command instead of enabling the CAPTURE block in the design .
int XHwIcap_CommandCapture(XHwIcap *InstancePtr)
{
	int Status;
	u32 FrameBuffer[CAPTURE_COMMAND_SIZE];
	u32 Index =0;
	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	FrameBuffer[Index++] = XHI_DUMMY_PACKET;
	FrameBuffer[Index++] = XHI_SYNC_PACKET;
	FrameBuffer[Index++] = XHI_NOOP_PACKET;
	FrameBuffer[Index++] = (XHwIcap_Type1Write(XHI_CMD) | 1);
	FrameBuffer[Index++] = XHI_CMD_GCAPTURE;
	FrameBuffer[Index++] =  XHI_DUMMY_PACKET;
	FrameBuffer[Index++] =  XHI_DUMMY_PACKET;
	Status = XHwIcap_DeviceWrite(InstancePtr, &FrameBuffer[0], Index);
	if (Status != XST_SUCCESS)  {
		return XST_FAILURE;
	}
	return XST_SUCCESS;
}
int XHwIcap_CommandCapture ( XHwIcap * InstancePtr ) { int Status ; u32 FrameBuffer [ CAPTURE_COMMAND_SIZE ] ; u32 Index = 0 ; Xil_AssertNonvoid ( InstancePtr != NULL ) ; Xil_AssertNonvoid ( InstancePtr -> IsReady == XIL_COMPONENT_IS_READY ) ; FrameBuffer [ Index ++ ] = XHI_DUMMY_PACKET ; FrameBuffer [ Index ++ ] = XHI_SYNC_PACKET ; FrameBuffer [ Index ++ ] = XHI_NOOP_PACKET ; FrameBuffer [ Index ++ ] = ( XHwIcap_Type1Write ( XHI_CMD ) | 1 ) ; FrameBuffer [ Index ++ ] = XHI_CMD_GCAPTURE ; FrameBuffer [ Index ++ ] = XHI_DUMMY_PACKET ; FrameBuffer [ Index ++ ] = XHI_DUMMY_PACKET ; Status = XHwIcap_DeviceWrite ( InstancePtr , & FrameBuffer [ 0 ] , Index ) ; if ( Status != XST_SUCCESS ) { return XST_FAILURE ; } return XST_SUCCESS ; }
Sends a CAPTURE command to the ICAP port.
Sends a CAPTURE command to the ICAP port .
/*
	 * Create the data to be written to the ICAP.
	 */ /*
	 * Write the data to the FIFO and intiate the transfer of data present
	 * in the FIFO to the ICAP device.
	 */