XilinxProcessorIPLib/drivers/v_hdmitxss1/examples/xhdmi_example/ti_lmk03318.c
static int TI_LMK03318_SetRegister(void *IicPtr, u8 I2CSlaveAddress,
				u8 RegisterAddress, u8 Value)
{
	u32 ByteCount = 0;
	u8 Buffer[2];

	Buffer[0] = RegisterAddress;
	Buffer[1] = Value;
	ByteCount = TI_LMK03318_I2cSend(IicPtr, I2CSlaveAddress, (u8*)Buffer,
					2, I2C_STOP);
	if (ByteCount != 2) {
		return XST_FAILURE;
	}

	return XST_SUCCESS;
}
/*****************************************************************************/
/**
*
* This function send a single byte to the TI LMK03318
*
* @param I2CBaseAddress is the baseaddress of the I2C core.
* @param I2CSlaveAddress is the 7-bit I2C slave address.
*
* @return
*    - XST_SUCCESS Initialization was successful.
*    - XST_FAILURE I2C write error.
*
* @note None.
*
******************************************************************************/
This function send a single byte to the TI LMK03318
This function send a single byte to the TI LMK03318
static int TI_LMK03318_SetRegister(void *IicPtr, u8 I2CSlaveAddress,
				u8 RegisterAddress, u8 Value)
{
	u32 ByteCount = 0;
	u8 Buffer[2];
	Buffer[0] = RegisterAddress;
	Buffer[1] = Value;
	ByteCount = TI_LMK03318_I2cSend(IicPtr, I2CSlaveAddress, (u8*)Buffer,
					2, I2C_STOP);
	if (ByteCount != 2) {
		return XST_FAILURE;
	}
	return XST_SUCCESS;
}
static int TI_LMK03318_SetRegister ( void * IicPtr , u8 I2CSlaveAddress , u8 RegisterAddress , u8 Value ) { u32 ByteCount = 0 ; u8 Buffer [ 2 ] ; Buffer [ 0 ] = RegisterAddress ; Buffer [ 1 ] = Value ; ByteCount = TI_LMK03318_I2cSend ( IicPtr , I2CSlaveAddress , ( u8 * ) Buffer , 2 , I2C_STOP ) ; if ( ByteCount != 2 ) { return XST_FAILURE ; } return XST_SUCCESS ; }
This function send a single byte to the TI LMK03318
This function send a single byte to the TI LMK03318