XilinxProcessorIPLib/drivers/v_hdmirx/src/xv_hdmirx_selftest.c
int XV_HdmiRx_SelfTest(XV_HdmiRx *InstancePtr)
{
    int Status = (XST_SUCCESS);
    u32 RegValue;

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

    /* Read PIO ID */
    RegValue = XV_HdmiRx_ReadReg(InstancePtr->Config.BaseAddress,
                    (XV_HDMIRX_PIO_ID_OFFSET));

    RegValue = ((RegValue) >> (XV_HDMIRX_SHIFT_16)) & (XV_HDMIRX_MASK_16);

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

    return Status;
}
/*****************************************************************************/
/**
*
* This function reads ID of PIO peripheral.
*
* @param    InstancePtr is a pointer to the HDMI RX core instance.
*
* @return
*       - XST_SUCCESS if PIO ID was matched.
*       - XST_FAILURE if PIO ID was mismatched.
*
* @note     None.
*
******************************************************************************/
This function reads ID of PIO peripheral.
This function reads ID of PIO peripheral .
int XV_HdmiRx_SelfTest(XV_HdmiRx *InstancePtr)
{
    int Status = (XST_SUCCESS);
    u32 RegValue;
    Xil_AssertNonvoid(InstancePtr != NULL);
    RegValue = XV_HdmiRx_ReadReg(InstancePtr->Config.BaseAddress,
                    (XV_HDMIRX_PIO_ID_OFFSET));
    RegValue = ((RegValue) >> (XV_HDMIRX_SHIFT_16)) & (XV_HDMIRX_MASK_16);
    if (RegValue != (XV_HDMIRX_PIO_ID)) {
        Status = (XST_FAILURE);
    }
    return Status;
}
int XV_HdmiRx_SelfTest ( XV_HdmiRx * InstancePtr ) { int Status = ( XST_SUCCESS ) ; u32 RegValue ; Xil_AssertNonvoid ( InstancePtr != NULL ) ; RegValue = XV_HdmiRx_ReadReg ( InstancePtr -> Config . BaseAddress , ( XV_HDMIRX_PIO_ID_OFFSET ) ) ; RegValue = ( ( RegValue ) >> ( XV_HDMIRX_SHIFT_16 ) ) & ( XV_HDMIRX_MASK_16 ) ; if ( RegValue != ( XV_HDMIRX_PIO_ID ) ) { Status = ( XST_FAILURE ) ; } return Status ; }
This function reads ID of PIO peripheral.
This function reads ID of PIO peripheral .
/* Verify argument. */ /* Read PIO ID */