lib/sw_apps/lwip_udp_perf_client/src/sfp.c
int ZC706MuxInit(XIIC_LIB *I2cLibInstancePtr)
{
	u8 WrBuffer;
	int Status;

	WrBuffer = IIC_CHANNEL_ADDRESS;

	Status = I2cWriteData(I2cLibInstancePtr, &WrBuffer, 1, IIC_MUX_ADDRESS);
	if (Status != XST_SUCCESS) {
		xil_printf("SFP_PHY: Writing failed\n\r");
		return XST_FAILURE;
	}
	return XST_SUCCESS;
}
/*****************************************************************************/
/**
 * This function initializes ZC706 MUX.
 *
 * @param	I2cLibPtr contains a pointer to the instance of the IIC library
 *
 * @return	XST_SUCCESS if successful else XST_FAILURE.
 *
 ******************************************************************************/
This function initializes ZC706 MUX.
@param       I2cLibPtr contains a pointer to the instance of the IIC library


This function initializes ZC706 MUX . @param I2cLibPtr contains a pointer to the instance of the IIC library
int ZC706MuxInit(XIIC_LIB *I2cLibInstancePtr)
{
	u8 WrBuffer;
	int Status;
	WrBuffer = IIC_CHANNEL_ADDRESS;
	Status = I2cWriteData(I2cLibInstancePtr, &WrBuffer, 1, IIC_MUX_ADDRESS);
	if (Status != XST_SUCCESS) {
		xil_printf("SFP_PHY: Writing failed\n\r");
		return XST_FAILURE;
	}
	return XST_SUCCESS;
}
int ZC706MuxInit ( XIIC_LIB * I2cLibInstancePtr ) { u8 WrBuffer ; int Status ; WrBuffer = IIC_CHANNEL_ADDRESS ; Status = I2cWriteData ( I2cLibInstancePtr , & WrBuffer , 1 , IIC_MUX_ADDRESS ) ; if ( Status != XST_SUCCESS ) { xil_printf ( " \n \r " ) ; return XST_FAILURE ; } return XST_SUCCESS ; }
This function initializes ZC706 MUX.
This function initializes ZC706 MUX .