XilinxProcessorIPLib/drivers/iicps/examples/xiicps_intr_multi_master_example.c
void Handler(void *CallBackRef, u32 Event)
{
	/*
	 * All of the data transfer has been finished.
	 */
	if (0 != (Event & XIICPS_EVENT_COMPLETE_RECV)){
		RecvComplete = TRUE;
	} else if (0 != (Event & XIICPS_EVENT_COMPLETE_SEND)) {
		SendComplete = TRUE;
	} else if (0 != (Event & XIICPS_EVENT_ARB_LOST)) {
		ArbitrationLost = TRUE;
	} else if (0 == (Event & XIICPS_EVENT_SLAVE_RDY)){
		/*
		 * If it is other interrupt but not slave ready interrupt, it is
		 * an error.
		 * Data was received with an error.
		 */
		TotalErrorCount++;
	}
}
/*****************************************************************************/
/**
*
* This function is the handler which performs processing to handle data events
* from the IIC.  It is called from an interrupt context such that the amount
* of processing performed should be minimized.
*
* This handler provides an example of how to handle data for the IIC and
* is application specific.
*
* @param	CallBackRef contains a callback reference from the driver, in
*		this case it is the instance pointer for the IIC driver.
* @param	Event contains the specific kind of event that has occurred.
*
* @return	None.
*
* @note		None.
*
*******************************************************************************/
This function is the handler which performs processing to handle data events
from the IIC.  It is called from an interrupt context such that the amount
of processing performed should be minimized.

This handler provides an example of how to handle data for the IIC and
is application specific.
This function is the handler which performs processing to handle data events from the IIC . It is called from an interrupt context such that the amount of processing performed should be minimized . This handler provides an example of how to handle data for the IIC and is application specific .
void Handler(void *CallBackRef, u32 Event)
{
	if (0 != (Event & XIICPS_EVENT_COMPLETE_RECV)){
		RecvComplete = TRUE;
	} else if (0 != (Event & XIICPS_EVENT_COMPLETE_SEND)) {
		SendComplete = TRUE;
	} else if (0 != (Event & XIICPS_EVENT_ARB_LOST)) {
		ArbitrationLost = TRUE;
	} else if (0 == (Event & XIICPS_EVENT_SLAVE_RDY)){
		TotalErrorCount++;
	}
}
void Handler ( void * CallBackRef , u32 Event ) { if ( 0 != ( Event & XIICPS_EVENT_COMPLETE_RECV ) ) { RecvComplete = TRUE ; } else if ( 0 != ( Event & XIICPS_EVENT_COMPLETE_SEND ) ) { SendComplete = TRUE ; } else if ( 0 != ( Event & XIICPS_EVENT_ARB_LOST ) ) { ArbitrationLost = TRUE ; } else if ( 0 == ( Event & XIICPS_EVENT_SLAVE_RDY ) ) { TotalErrorCount ++ ; } }
This function is the handler which performs processing to handle data events
from the IIC.
This function is the handler which performs processing to handle data events from the IIC .
/*
	 * All of the data transfer has been finished.
	 */ /*
		 * If it is other interrupt but not slave ready interrupt, it is
		 * an error.
		 * Data was received with an error.
		 */