XilinxProcessorIPLib/drivers/iicps/examples/xiicps_slave_monitor_example.c
int IicPsSlaveMonitorExample(void)
{
	int Status;
	int Index;

	for(Index = 0;SlvAddr[Index] != 0;Index++) {
		Status = IicPsFindDevice(SlvAddr[Index]);
		if (Status == XST_SUCCESS) {
			return XST_SUCCESS;
		}
	}
	return XST_FAILURE;
}
/*****************************************************************************/
/**
*
* This function checks the availability of a slave using slave monitor mode.
*
*
* @return	XST_SUCCESS if successful, otherwise XST_FAILURE.
*
* @note 	None.
*
*******************************************************************************/
This function checks the availability of a slave using slave monitor mode.
This function checks the availability of a slave using slave monitor mode .
int IicPsSlaveMonitorExample(void)
{
	int Status;
	int Index;
	for(Index = 0;SlvAddr[Index] != 0;Index++) {
		Status = IicPsFindDevice(SlvAddr[Index]);
		if (Status == XST_SUCCESS) {
			return XST_SUCCESS;
		}
	}
	return XST_FAILURE;
}
int IicPsSlaveMonitorExample ( void ) { int Status ; int Index ; for ( Index = 0 ; SlvAddr [ Index ] != 0 ; Index ++ ) { Status = IicPsFindDevice ( SlvAddr [ Index ] ) ; if ( Status == XST_SUCCESS ) { return XST_SUCCESS ; } } return XST_FAILURE ; }
This function checks the availability of a slave using slave monitor mode.
This function checks the availability of a slave using slave monitor mode .