XilinxProcessorIPLib/drivers/v_hdmitxss1/examples/xhdmi_example/ti_lmk03318.c
int TI_LMK03318_PowerDown(void *IicPtr, u8 I2CSlaveAddress)
{

	/* Register 29 */
	TI_LMK03318_SetRegister(IicPtr, I2CSlaveAddress, 29, 0x03);

	/* Register 30 */
	TI_LMK03318_SetRegister(IicPtr, I2CSlaveAddress, 30, 0x3f);

	/* Register 31 */
	TI_LMK03318_SetRegister(IicPtr, I2CSlaveAddress, 31, 0x00);

	/* Register 32 */
	TI_LMK03318_SetRegister(IicPtr, I2CSlaveAddress, 32, 0x00);

	/* Register 34 */
	TI_LMK03318_SetRegister(IicPtr, I2CSlaveAddress, 34, 0x00);

	/* Register 35 */
	TI_LMK03318_SetRegister(IicPtr, I2CSlaveAddress, 35, 0x00);

	/* Register 37 */
	TI_LMK03318_SetRegister(IicPtr, I2CSlaveAddress, 37, 0x00);

	/* Register 39 */
	TI_LMK03318_SetRegister(IicPtr, I2CSlaveAddress, 39, 0x00);

	/* Register 41 */
	TI_LMK03318_SetRegister(IicPtr, I2CSlaveAddress, 41, 0x00);

	/* Register 43 */
	TI_LMK03318_SetRegister(IicPtr, I2CSlaveAddress, 43, 0x00);

	/* Register 50 */
	TI_LMK03318_SetRegister(IicPtr, I2CSlaveAddress, 50, 0xf6);

	/* Register 56 */
	TI_LMK03318_SetRegister(IicPtr, I2CSlaveAddress, 56, 0x01);

	return XST_SUCCESS;
}
/*****************************************************************************/
/**
*
* This function puts the TI LMK03318 into sleep
*
* @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 puts the TI LMK03318 into sleep
This function puts the TI LMK03318 into sleep
int TI_LMK03318_PowerDown(void *IicPtr, u8 I2CSlaveAddress)
{
	TI_LMK03318_SetRegister(IicPtr, I2CSlaveAddress, 29, 0x03);
	TI_LMK03318_SetRegister(IicPtr, I2CSlaveAddress, 30, 0x3f);
	TI_LMK03318_SetRegister(IicPtr, I2CSlaveAddress, 31, 0x00);
	TI_LMK03318_SetRegister(IicPtr, I2CSlaveAddress, 32, 0x00);
	TI_LMK03318_SetRegister(IicPtr, I2CSlaveAddress, 34, 0x00);
	TI_LMK03318_SetRegister(IicPtr, I2CSlaveAddress, 35, 0x00);
	TI_LMK03318_SetRegister(IicPtr, I2CSlaveAddress, 37, 0x00);
	TI_LMK03318_SetRegister(IicPtr, I2CSlaveAddress, 39, 0x00);
	TI_LMK03318_SetRegister(IicPtr, I2CSlaveAddress, 41, 0x00);
	TI_LMK03318_SetRegister(IicPtr, I2CSlaveAddress, 43, 0x00);
	TI_LMK03318_SetRegister(IicPtr, I2CSlaveAddress, 50, 0xf6);
	TI_LMK03318_SetRegister(IicPtr, I2CSlaveAddress, 56, 0x01);
	return XST_SUCCESS;
}
int TI_LMK03318_PowerDown ( void * IicPtr , u8 I2CSlaveAddress ) { TI_LMK03318_SetRegister ( IicPtr , I2CSlaveAddress , 29 , 0x03 ) ; TI_LMK03318_SetRegister ( IicPtr , I2CSlaveAddress , 30 , 0x3f ) ; TI_LMK03318_SetRegister ( IicPtr , I2CSlaveAddress , 31 , 0x00 ) ; TI_LMK03318_SetRegister ( IicPtr , I2CSlaveAddress , 32 , 0x00 ) ; TI_LMK03318_SetRegister ( IicPtr , I2CSlaveAddress , 34 , 0x00 ) ; TI_LMK03318_SetRegister ( IicPtr , I2CSlaveAddress , 35 , 0x00 ) ; TI_LMK03318_SetRegister ( IicPtr , I2CSlaveAddress , 37 , 0x00 ) ; TI_LMK03318_SetRegister ( IicPtr , I2CSlaveAddress , 39 , 0x00 ) ; TI_LMK03318_SetRegister ( IicPtr , I2CSlaveAddress , 41 , 0x00 ) ; TI_LMK03318_SetRegister ( IicPtr , I2CSlaveAddress , 43 , 0x00 ) ; TI_LMK03318_SetRegister ( IicPtr , I2CSlaveAddress , 50 , 0xf6 ) ; TI_LMK03318_SetRegister ( IicPtr , I2CSlaveAddress , 56 , 0x01 ) ; return XST_SUCCESS ; }
This function puts the TI LMK03318 into sleep
This function puts the TI LMK03318 into sleep
/* Register 29 */ /* Register 30 */ /* Register 31 */ /* Register 32 */ /* Register 34 */ /* Register 35 */ /* Register 37 */ /* Register 39 */ /* Register 41 */ /* Register 43 */ /* Register 50 */ /* Register 56 */