XilinxProcessorIPLib/drivers/mipicsiss/examples/xmipi_vck_example/dp159.c
void i2c_dp159_dump(void)
{
  u32 r;
  u8 i;
  u8 buf[I2C_DP159_REGDUMP_SZ];

  buf[0] = 0x0;
  xil_printf("DP159 register dump\r\n");
  r = XIic_Send(XPAR_IIC_0_BASEADDR, I2C_DP159_ES_ADDR, (u8 *)&buf,
 1, XII_REPEATED_START_OPTION);

  r = XIic_Recv(XPAR_IIC_0_BASEADDR, I2C_DP159_ES_ADDR, (u8 *)&buf,
 I2C_DP159_REGDUMP_SZ, XIIC_STOP);
  xil_printf("   Received bytes (%d) \r\n", r);
  for (i = 0; i< I2C_DP159_REGDUMP_SZ; i++) {
	  xil_printf("   ADDR: 0x%02x DATA: 0x%02x\r\n", i, buf[i]);
  }
 }
// I2C DP159 dump
// This routine dumps the DP159 ES registers
I2C DP159 dump
This routine dumps the DP159 ES registers
I2C DP159 dump This routine dumps the DP159 ES registers
void i2c_dp159_dump(void)
{
  u32 r;
  u8 i;
  u8 buf[I2C_DP159_REGDUMP_SZ];
  buf[0] = 0x0;
  xil_printf("DP159 register dump\r\n");
  r = XIic_Send(XPAR_IIC_0_BASEADDR, I2C_DP159_ES_ADDR, (u8 *)&buf,
 1, XII_REPEATED_START_OPTION);
  r = XIic_Recv(XPAR_IIC_0_BASEADDR, I2C_DP159_ES_ADDR, (u8 *)&buf,
 I2C_DP159_REGDUMP_SZ, XIIC_STOP);
  xil_printf("   Received bytes (%d) \r\n", r);
  for (i = 0; i< I2C_DP159_REGDUMP_SZ; i++) {
	  xil_printf("   ADDR: 0x%02x DATA: 0x%02x\r\n", i, buf[i]);
  }
 }
void i2c_dp159_dump ( void ) { u32 r ; u8 i ; u8 buf [ I2C_DP159_REGDUMP_SZ ] ; buf [ 0 ] = 0x0 ; xil_printf ( " \r \n " ) ; r = XIic_Send ( XPAR_IIC_0_BASEADDR , I2C_DP159_ES_ADDR , ( u8 * ) & buf , 1 , XII_REPEATED_START_OPTION ) ; r = XIic_Recv ( XPAR_IIC_0_BASEADDR , I2C_DP159_ES_ADDR , ( u8 * ) & buf , I2C_DP159_REGDUMP_SZ , XIIC_STOP ) ; xil_printf ( " \r \n " , r ) ; for ( i = 0 ; i < I2C_DP159_REGDUMP_SZ ; i ++ ) { xil_printf ( " \r \n " , i , buf [ i ] ) ; } }
I2C DP159 dump
This routine dumps the DP159 ES registers
I2C DP159 dump This routine dumps the DP159 ES registers