XilinxProcessorIPLib/drivers/v_hdmitxss1/examples/xhdmi_example/ti_lmk03318.c
static u8 TI_LMK03318_GetRegister(void *IicPtr, u8 I2CSlaveAddress,
				u8 RegisterAddress)
{
	u8 Buffer[2];

	Buffer[0] = RegisterAddress;
	TI_LMK03318_I2cSend(IicPtr, I2CSlaveAddress, (u8*)Buffer,
				1, I2C_REPEATED_START);
	TI_LMK03318_I2cRecv(IicPtr, I2CSlaveAddress,
			(u8*)Buffer, 1, I2C_STOP);
	return Buffer[0];
}
/*****************************************************************************/
/**
*
* 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 u8 TI_LMK03318_GetRegister(void *IicPtr, u8 I2CSlaveAddress,
				u8 RegisterAddress)
{
	u8 Buffer[2];
	Buffer[0] = RegisterAddress;
	TI_LMK03318_I2cSend(IicPtr, I2CSlaveAddress, (u8*)Buffer,
				1, I2C_REPEATED_START);
	TI_LMK03318_I2cRecv(IicPtr, I2CSlaveAddress,
			(u8*)Buffer, 1, I2C_STOP);
	return Buffer[0];
}
static u8 TI_LMK03318_GetRegister ( void * IicPtr , u8 I2CSlaveAddress , u8 RegisterAddress ) { u8 Buffer [ 2 ] ; Buffer [ 0 ] = RegisterAddress ; TI_LMK03318_I2cSend ( IicPtr , I2CSlaveAddress , ( u8 * ) Buffer , 1 , I2C_REPEATED_START ) ; TI_LMK03318_I2cRecv ( IicPtr , I2CSlaveAddress , ( u8 * ) Buffer , 1 , I2C_STOP ) ; return Buffer [ 0 ] ; }
This function send a single byte to the TI LMK03318
This function send a single byte to the TI LMK03318