XilinxProcessorIPLib/drivers/spi/examples/xspi_eeprom_example.c
void SpiHandler(void *CallBackRef, u32 StatusEvent, unsigned int ByteCount)
{
	/*
	 * Indicate the transfer on the SPI bus is no longer in progress
	 * regardless of the status event
	 */
	TransferInProgress = FALSE;

	/*
	 * If the event was not transfer done, then track it as an error
	 */
	if (StatusEvent != XST_SPI_TRANSFER_DONE) {
		Error++;
	}
}
/******************************************************************************/
/**
*
* This function is the handler which performs processing for the SPI driver.
* It is called from an interrupt context such that the amount of processing
* performed should be minimized.  It is called when a transfer of SPI data
* completes or an error occurs.
*
* This handler provides an example of how to handle SPI interrupts
* but is application specific.
*
*
* @param 	CallBackRef is a reference passed to the handler.
* @param	StatusEvent is the status of the SPI .
* @param	ByteCount is the number of bytes transferred.
*
* @return	None
*
* @note		None.
*
******************************************************************************/
This function is the handler which performs processing for the SPI driver.
It is called from an interrupt context such that the amount of processing
performed should be minimized.  It is called when a transfer of SPI data
completes or an error occurs.

This handler provides an example of how to handle SPI interrupts
but is application specific.
This function is the handler which performs processing for the SPI driver . It is called from an interrupt context such that the amount of processing performed should be minimized . It is called when a transfer of SPI data completes or an error occurs . This handler provides an example of how to handle SPI interrupts but is application specific .
void SpiHandler(void *CallBackRef, u32 StatusEvent, unsigned int ByteCount)
{
	TransferInProgress = FALSE;
	if (StatusEvent != XST_SPI_TRANSFER_DONE) {
		Error++;
	}
}
void SpiHandler ( void * CallBackRef , u32 StatusEvent , unsigned int ByteCount ) { TransferInProgress = FALSE ; if ( StatusEvent != XST_SPI_TRANSFER_DONE ) { Error ++ ; } }
This function is the handler which performs processing for the SPI driver.
This function is the handler which performs processing for the SPI driver .
/*
	 * Indicate the transfer on the SPI bus is no longer in progress
	 * regardless of the status event
	 */ /*
	 * If the event was not transfer done, then track it as an error
	 */