XilinxProcessorIPLib/drivers/iic/examples/xiic_tenbitaddr_example.c
static void StatusHandler(XIic *InstancePtr, int Event)
{
	/*
	 * Check whether the Event is to write or read the data from the slave.
	 */
	if (Event == XII_MASTER_WRITE_EVENT) {
		/*
		 * Its a Write request from Master.
		 */
		SlaveRead = 1;
	}
	else {
		/*
		 * Its a Read request from the master.
		 */
		SlaveWrite = 1;
	}
}
/****************************************************************************/
/**
* This Status handler is called asynchronously from an interrupt context and
* indicates the events that have occurred.
*
* @param	InstancePtr is not used, but contains a pointer to the IIC
*		device driver instance which the handler is being called for.
* @param	Event indicates whether it is a request for a write or read.
*
* @return	None.
*
* @note		None.
*
****************************************************************************/
This Status handler is called asynchronously from an interrupt context and
indicates the events that have occurred.
This Status handler is called asynchronously from an interrupt context and indicates the events that have occurred .
static void StatusHandler(XIic *InstancePtr, int Event)
{
	if (Event == XII_MASTER_WRITE_EVENT) {
		SlaveRead = 1;
	}
	else {
		SlaveWrite = 1;
	}
}
static void StatusHandler ( XIic * InstancePtr , int Event ) { if ( Event == XII_MASTER_WRITE_EVENT ) { SlaveRead = 1 ; } else { SlaveWrite = 1 ; } }
This Status handler is called asynchronously from an interrupt context and
indicates the events that have occurred.
This Status handler is called asynchronously from an interrupt context and indicates the events that have occurred .
/*
	 * Check whether the Event is to write or read the data from the slave.
	 */ /*
		 * Its a Write request from Master.
		 */ /*
		 * Its a Read request from the master.
		 */