XilinxProcessorIPLib/drivers/dp14txss/examples/src/pt_only/xdptxss_dp14_pt.c
void I2C_Scan(u32 BaseAddress)
{
	u8 Buffer[2];
	int BytesRecvd;
	int i;

	print("\n\r");
	print("---------------------\n\r");
	print("- I2C Scan: \n\r");
	print("---------------------\n\r");

	for (i = 0; i < 128; i++) {
		BytesRecvd = XIic_Recv(BaseAddress, i, (u8*)Buffer, 1, XIIC_STOP);
		if (BytesRecvd == 0) {
			continue;
		}
		xil_printf("Found device: 0x%02x\n\r",i);
	}
	print("\n\r");
}
/*****************************************************************************/
/**
*
* This function scans VFMC- IIC.
*
* @param    None.
*
* @return    None.
*
* @note        None.
*
******************************************************************************/
This function scans VFMC- IIC.
This function scans VFMC - IIC .
void I2C_Scan(u32 BaseAddress)
{
	u8 Buffer[2];
	int BytesRecvd;
	int i;
	print("\n\r");
	print("---------------------\n\r");
	print("- I2C Scan: \n\r");
	print("---------------------\n\r");
	for (i = 0; i < 128; i++) {
		BytesRecvd = XIic_Recv(BaseAddress, i, (u8*)Buffer, 1, XIIC_STOP);
		if (BytesRecvd == 0) {
			continue;
		}
		xil_printf("Found device: 0x%02x\n\r",i);
	}
	print("\n\r");
}
void I2C_Scan ( u32 BaseAddress ) { u8 Buffer [ 2 ] ; int BytesRecvd ; int i ; print ( " \n \r " ) ; print ( " \n \r " ) ; print ( " \n \r " ) ; print ( " \n \r " ) ; for ( i = 0 ; i < 128 ; i ++ ) { BytesRecvd = XIic_Recv ( BaseAddress , i , ( u8 * ) Buffer , 1 , XIIC_STOP ) ; if ( BytesRecvd == 0 ) { continue ; } xil_printf ( " \n \r " , i ) ; } print ( " \n \r " ) ; }
This function scans VFMC- IIC.
This function scans VFMC - IIC .