XilinxProcessorIPLib/drivers/dfeccf/examples/xdfesi570_mgt.c
static int XDfeSi570_SetBusSwitchI2C1(u8 BusSwitchStatus)
{
	s32 Return;

	/* Write new I2C bus switch configuration */
	Return = XDfeSi570_I2CWrData_sub(FD_I2C1, I2C_ADDR_BUS_SWITCH,
					 &BusSwitchStatus,
					 I2C_DATA_LENGTH_BUS_SWITCH);
	if (Return == XST_FAILURE) {
		Xil_AssertNonvoid("set a bus switch failed");
		return XST_FAILURE;
	}
	return XST_SUCCESS;
}
/****************************************************************************/
/**
*
* This function is used to set new status on I2C1 bus switch.
*
* @param BusSwitchStatus is a Mux Bus status.
*
* @return
*	- XST_SUCCESS if successful.
*	- XST_FAILURE if failed.
*
* @note		None
*
****************************************************************************/
This function is used to set new status on I2C1 bus switch.
This function is used to set new status on I2C1 bus switch .
static int XDfeSi570_SetBusSwitchI2C1(u8 BusSwitchStatus)
{
	s32 Return;
	Return = XDfeSi570_I2CWrData_sub(FD_I2C1, I2C_ADDR_BUS_SWITCH,
					 &BusSwitchStatus,
					 I2C_DATA_LENGTH_BUS_SWITCH);
	if (Return == XST_FAILURE) {
		Xil_AssertNonvoid("set a bus switch failed");
		return XST_FAILURE;
	}
	return XST_SUCCESS;
}
static int XDfeSi570_SetBusSwitchI2C1 ( u8 BusSwitchStatus ) { s32 Return ; Return = XDfeSi570_I2CWrData_sub ( FD_I2C1 , I2C_ADDR_BUS_SWITCH , & BusSwitchStatus , I2C_DATA_LENGTH_BUS_SWITCH ) ; if ( Return == XST_FAILURE ) { Xil_AssertNonvoid ( " " ) ; return XST_FAILURE ; } return XST_SUCCESS ; }
This function is used to set new status on I2C1 bus switch.
This function is used to set new status on I2C1 bus switch .
/* Write new I2C bus switch configuration */