XilinxProcessorIPLib/drivers/v_hdmirxss/src/xv_hdmirxss.c
static void XV_HdmiRxSs_ReportLinkQuality(XV_HdmiRxSs *InstancePtr)
{
  u8 Channel;
  u32 Errors;

  for (Channel = 0; Channel < 3; Channel++)
  {
      Errors = XV_HdmiRx_GetLinkStatus(InstancePtr->HdmiRxPtr, Channel);

      xil_printf("Link quality channel %0d : ", Channel);

      if (Errors == 0) {
        xil_printf("excellent");
      }

      else if ((Errors > 0) && (Errors < 1024)) {
        xil_printf("good");
      }

      else if ((Errors > 1024) && (Errors < 16384)) {
        xil_printf("average");
      }

      else {
        xil_printf("bad");
      }

      xil_printf(" (%0d)\r\n", Errors);
  }

  /* Clear link error counters */
  XV_HdmiRx_ClearLinkStatus(InstancePtr->HdmiRxPtr);
}
/*****************************************************************************/
/**
*
* This function reports the link quality based on the link error counter
*
* @param  None.
*
* @return None.
*
* @note   None.
*
******************************************************************************/
This function reports the link quality based on the link error counter
This function reports the link quality based on the link error counter
static void XV_HdmiRxSs_ReportLinkQuality(XV_HdmiRxSs *InstancePtr)
{
  u8 Channel;
  u32 Errors;
  for (Channel = 0; Channel < 3; Channel++)
  {
      Errors = XV_HdmiRx_GetLinkStatus(InstancePtr->HdmiRxPtr, Channel);
      xil_printf("Link quality channel %0d : ", Channel);
      if (Errors == 0) {
        xil_printf("excellent");
      }
      else if ((Errors > 0) && (Errors < 1024)) {
        xil_printf("good");
      }
      else if ((Errors > 1024) && (Errors < 16384)) {
        xil_printf("average");
      }
      else {
        xil_printf("bad");
      }
      xil_printf(" (%0d)\r\n", Errors);
  }
  XV_HdmiRx_ClearLinkStatus(InstancePtr->HdmiRxPtr);
}
static void XV_HdmiRxSs_ReportLinkQuality ( XV_HdmiRxSs * InstancePtr ) { u8 Channel ; u32 Errors ; for ( Channel = 0 ; Channel < 3 ; Channel ++ ) { Errors = XV_HdmiRx_GetLinkStatus ( InstancePtr -> HdmiRxPtr , Channel ) ; xil_printf ( " " , Channel ) ; if ( Errors == 0 ) { xil_printf ( " " ) ; } else if ( ( Errors > 0 ) && ( Errors < 1024 ) ) { xil_printf ( " " ) ; } else if ( ( Errors > 1024 ) && ( Errors < 16384 ) ) { xil_printf ( " " ) ; } else { xil_printf ( " " ) ; } xil_printf ( " \r \n " , Errors ) ; } XV_HdmiRx_ClearLinkStatus ( InstancePtr -> HdmiRxPtr ) ; }
This function reports the link quality based on the link error counter
This function reports the link quality based on the link error counter
/* Clear link error counters */