XilinxProcessorIPLib/drivers/v_hdmitx1/src/xv_hdmitx1_selftest.c
int XV_HdmiTx1_SelfTest(XV_HdmiTx1 *InstancePtr)
{
	u32 RegValue;
	u32 Status = (XST_SUCCESS);

	/* Verify argument. */
	Xil_AssertNonvoid(InstancePtr != NULL);

	/* Read PIO peripheral Identification register */
	RegValue = XV_HdmiTx1_ReadReg(InstancePtr->Config.BaseAddress,
				      (XV_HDMITX1_PIO_ID_OFFSET));

	RegValue = ((RegValue) >> (XV_HDMITX1_SHIFT_16)) & (XV_HDMITX1_MASK_16);

	if (RegValue != (XV_HDMITX1_PIO_ID)) {
		Status = (XST_FAILURE);
	}

	return Status;
}
/*****************************************************************************/
/**
*
* This function reads ID of HDMI TX PIO peripheral.
*
* @param    InstancePtr is a pointer to the XV_HdmiTx1 core instance.
*
* @return
*       - XST_SUCCESS if PIO ID was matched.
*       - XST_FAILURE if PIO ID was mismatched.
*
* @note     None.
*
******************************************************************************/
This function reads ID of HDMI TX PIO peripheral.
This function reads ID of HDMI TX PIO peripheral .
int XV_HdmiTx1_SelfTest(XV_HdmiTx1 *InstancePtr)
{
	u32 RegValue;
	u32 Status = (XST_SUCCESS);
	Xil_AssertNonvoid(InstancePtr != NULL);
	RegValue = XV_HdmiTx1_ReadReg(InstancePtr->Config.BaseAddress,
				      (XV_HDMITX1_PIO_ID_OFFSET));
	RegValue = ((RegValue) >> (XV_HDMITX1_SHIFT_16)) & (XV_HDMITX1_MASK_16);
	if (RegValue != (XV_HDMITX1_PIO_ID)) {
		Status = (XST_FAILURE);
	}
	return Status;
}
int XV_HdmiTx1_SelfTest ( XV_HdmiTx1 * InstancePtr ) { u32 RegValue ; u32 Status = ( XST_SUCCESS ) ; Xil_AssertNonvoid ( InstancePtr != NULL ) ; RegValue = XV_HdmiTx1_ReadReg ( InstancePtr -> Config . BaseAddress , ( XV_HDMITX1_PIO_ID_OFFSET ) ) ; RegValue = ( ( RegValue ) >> ( XV_HDMITX1_SHIFT_16 ) ) & ( XV_HDMITX1_MASK_16 ) ; if ( RegValue != ( XV_HDMITX1_PIO_ID ) ) { Status = ( XST_FAILURE ) ; } return Status ; }
This function reads ID of HDMI TX PIO peripheral.
This function reads ID of HDMI TX PIO peripheral .
/* Verify argument. */ /* Read PIO peripheral Identification register */