XilinxProcessorIPLib/drivers/dp14txss/examples/src/dats_dp14/idt_8t49n24x.c
static int IDT_8T49N24x_DSMInteger(u32 I2CBaseAddress, u8 I2CSlaveAddress, u16 Value)
{
	int Result;
	u8 Data;

	// DSM_INT[8]
	Data = (Value >> 8) & 0x01;
	Result = IDT_8T49N24x_SetRegister(I2CBaseAddress, I2CSlaveAddress, 0x0025, Data);

	// DSM_INT[7:0]
	Data = (Value & 0xff);
	Result = IDT_8T49N24x_SetRegister(I2CBaseAddress, I2CSlaveAddress, 0x0026, Data);

	return Result;
}
/*****************************************************************************/
/**
*
* This function set the DSM integer
*
* @param I2CBaseAddress is the baseaddress of the I2C core.
* @param I2CSlaveAddress is the 7-bit I2C slave address.
*
* @return
*    - XST_SUCCESS
*    - XST_FAILURE
*
* @note None.
*
******************************************************************************/
This function set the DSM integer
This function set the DSM integer
static int IDT_8T49N24x_DSMInteger(u32 I2CBaseAddress, u8 I2CSlaveAddress, u16 Value)
{
	int Result;
	u8 Data;
	Data = (Value >> 8) & 0x01;
	Result = IDT_8T49N24x_SetRegister(I2CBaseAddress, I2CSlaveAddress, 0x0025, Data);
	Data = (Value & 0xff);
	Result = IDT_8T49N24x_SetRegister(I2CBaseAddress, I2CSlaveAddress, 0x0026, Data);
	return Result;
}
static int IDT_8T49N24x_DSMInteger ( u32 I2CBaseAddress , u8 I2CSlaveAddress , u16 Value ) { int Result ; u8 Data ; Data = ( Value >> 8 ) & 0x01 ; Result = IDT_8T49N24x_SetRegister ( I2CBaseAddress , I2CSlaveAddress , 0x0025 , Data ) ; Data = ( Value & 0xff ) ; Result = IDT_8T49N24x_SetRegister ( I2CBaseAddress , I2CSlaveAddress , 0x0026 , Data ) ; return Result ; }
This function set the DSM integer
This function set the DSM integer
// DSM_INT[8] // DSM_INT[7:0]