XilinxProcessorIPLib/drivers/dppsu/src/xdppsu_edid.c
u32 XDpPsu_GetEdidBlock(XDpPsu *InstancePtr, u8 *Data, u8 BlockNum)
{
	u16 Offset;

	/* Calculate the I2C offset for the specified EDID block. */
	Offset = BlockNum * XDPPSU_EDID_BLOCK_SIZE;

	/* Issue the I2C read for the specified EDID block. */
	return XDpPsu_IicRead(InstancePtr, XDPPSU_EDID_ADDR, Offset,
						XDPPSU_EDID_BLOCK_SIZE, Data);
}
/******************************************************************************/
/**
 * Retrieve an immediately connected RX device's Extended Display Identification
 * Data (EDID) block given the block number. A block number of 0 represents the
 * base EDID and subsequent block numbers represent EDID extension blocks.
 *
 * @param	InstancePtr is a pointer to the XDpPsu instance.
 * @param	Data is a pointer to the data buffer to save the block data to.
 * @param	BlockNum is the EDID block number to retrieve.
 *
 * @return
 *		- XST_SUCCESS if the block read has successfully completed with
 *		  no errors.
 *		- XST_ERROR_COUNT_MAX if a time out occurred while attempting to
 *		  read the requested block.
 *		- XST_DEVICE_NOT_FOUND if no RX device is connected.
 *		- XST_FAILURE otherwise.
 *
 * @note	None.
 *
*******************************************************************************/
Retrieve an immediately connected RX device's Extended Display Identification
Data (EDID) block given the block number. A block number of 0 represents the
base EDID and subsequent block numbers represent EDID extension blocks.

@param       InstancePtr is a pointer to the XDpPsu instance.
@param       Data is a pointer to the data buffer to save the block data to.
@param       BlockNum is the EDID block number to retrieve.

@return
- XST_SUCCESS if the block read has successfully completed with
no errors.
- XST_ERROR_COUNT_MAX if a time out occurred while attempting to
read the requested block.
- XST_DEVICE_NOT_FOUND if no RX device is connected.

@note        None.
Retrieve an immediately connected RX device ' s Extended Display Identification Data ( EDID ) block given the block number . A block number of 0 represents the base EDID and subsequent block numbers represent EDID extension blocks . @param InstancePtr is a pointer to the XDpPsu instance . @param Data is a pointer to the data buffer to save the block data to . @param BlockNum is the EDID block number to retrieve . @return - XST_SUCCESS if the block read has successfully completed with no errors . - XST_ERROR_COUNT_MAX if a time out occurred while attempting to read the requested block . - XST_DEVICE_NOT_FOUND if no RX device is connected . @note None .
u32 XDpPsu_GetEdidBlock(XDpPsu *InstancePtr, u8 *Data, u8 BlockNum)
{
	u16 Offset;
	Offset = BlockNum * XDPPSU_EDID_BLOCK_SIZE;
	return XDpPsu_IicRead(InstancePtr, XDPPSU_EDID_ADDR, Offset,
						XDPPSU_EDID_BLOCK_SIZE, Data);
}
u32 XDpPsu_GetEdidBlock ( XDpPsu * InstancePtr , u8 * Data , u8 BlockNum ) { u16 Offset ; Offset = BlockNum * XDPPSU_EDID_BLOCK_SIZE ; return XDpPsu_IicRead ( InstancePtr , XDPPSU_EDID_ADDR , Offset , XDPPSU_EDID_BLOCK_SIZE , Data ) ; }
Retrieve an immediately connected RX device's Extended Display Identification
 Data (EDID) block given the block number.
Retrieve an immediately connected RX device ' s Extended Display Identification Data ( EDID ) block given the block number .
/* Calculate the I2C offset for the specified EDID block. */ /* Issue the I2C read for the specified EDID block. */