XilinxProcessorIPLib/drivers/dp14txss/examples/src/dats_dp14/idt_8t49n24x.c
void IDT_8T49N24x_RegisterDump(u32 I2CBaseAddress, u8 I2CSlaveAddress)
{
	u8 Data;
	u32 i;
	int Result;

	xil_printf("Register dump\n\r");

	Result = IDT_8T49N24x_CheckDeviceID(I2CBaseAddress, I2CSlaveAddress);

	if (Result == XST_SUCCESS) {
		print("\n\r");
		print("---------------------\n\r");
		print("- IDT8T49N241 I2C dump:\n\r");
		print("---------------------\n\r");

		xil_printf("     ");
		for (i=0; i<16; i++)
			xil_printf("+%01x ", i);

		xil_printf("\n\r     ");
		for (i=0; i<16; i++)
			xil_printf("---");

		for (i = 0; i < 256; i++) {
			if ((i % 16) == 0) {
				xil_printf("\n\r%02x : ", i);
			}
			Data = IDT_8T49N24x_GetRegister(I2CBaseAddress, I2CSlaveAddress, i);
			xil_printf("%02x ", Data);
		}

		xil_printf("\n\r");
	}

	else {
		xil_printf("IDT 8T49N241 not found!\n\r");
	}
}
/*****************************************************************************/
/**
*
* This function displays a registerdump of the IDT 8TN49N24x device.
*
* @param I2CBaseAddress is the baseaddress of the I2C core.
* @param I2CSlaveAddress is the 7-bit I2C slave address.
*
* @return None
*
* @note None.
*
******************************************************************************/
This function displays a registerdump of the IDT 8TN49N24x device.
This function displays a registerdump of the IDT 8TN49N24x device .
void IDT_8T49N24x_RegisterDump(u32 I2CBaseAddress, u8 I2CSlaveAddress)
{
	u8 Data;
	u32 i;
	int Result;
	xil_printf("Register dump\n\r");
	Result = IDT_8T49N24x_CheckDeviceID(I2CBaseAddress, I2CSlaveAddress);
	if (Result == XST_SUCCESS) {
		print("\n\r");
		print("---------------------\n\r");
		print("- IDT8T49N241 I2C dump:\n\r");
		print("---------------------\n\r");
		xil_printf("     ");
		for (i=0; i<16; i++)
			xil_printf("+%01x ", i);
		xil_printf("\n\r     ");
		for (i=0; i<16; i++)
			xil_printf("---");
		for (i = 0; i < 256; i++) {
			if ((i % 16) == 0) {
				xil_printf("\n\r%02x : ", i);
			}
			Data = IDT_8T49N24x_GetRegister(I2CBaseAddress, I2CSlaveAddress, i);
			xil_printf("%02x ", Data);
		}
		xil_printf("\n\r");
	}
	else {
		xil_printf("IDT 8T49N241 not found!\n\r");
	}
}
void IDT_8T49N24x_RegisterDump ( u32 I2CBaseAddress , u8 I2CSlaveAddress ) { u8 Data ; u32 i ; int Result ; xil_printf ( " \n \r " ) ; Result = IDT_8T49N24x_CheckDeviceID ( I2CBaseAddress , I2CSlaveAddress ) ; if ( Result == XST_SUCCESS ) { print ( " \n \r " ) ; print ( " \n \r " ) ; print ( " \n \r " ) ; print ( " \n \r " ) ; xil_printf ( " " ) ; for ( i = 0 ; i < 16 ; i ++ ) xil_printf ( " " , i ) ; xil_printf ( " \n \r " ) ; for ( i = 0 ; i < 16 ; i ++ ) xil_printf ( " " ) ; for ( i = 0 ; i < 256 ; i ++ ) { if ( ( i % 16 ) == 0 ) { xil_printf ( " \n \r " , i ) ; } Data = IDT_8T49N24x_GetRegister ( I2CBaseAddress , I2CSlaveAddress , i ) ; xil_printf ( " " , Data ) ; } xil_printf ( " \n \r " ) ; } else { xil_printf ( " \n \r " ) ; } }
This function displays a registerdump of the IDT 8TN49N24x device.
This function displays a registerdump of the IDT 8TN49N24x device .