XilinxProcessorIPLib/drivers/v_hdmitxss/examples/xhdmi_example/RepeaterProfessional/xhdcp.c
static void XHdcp_DisplayTopology(XHdcp_Repeater *InstancePtr, u8 Verbose)
{
  /* Verify arguments */
  Xil_AssertVoid(InstancePtr != NULL);

  if (XV_HdmiRxSs_HdcpIsRepeater(InstancePtr->UpstreamInstancePtr)) {
    xil_printf("HDCP Topology : ");
    if (InstancePtr->Topology.MaxDevsExceeded)
      xil_printf("MaxDevsExceeded, ");
    if (InstancePtr->Topology.MaxCascadeExceeded)
      xil_printf("MaxCascadeExceeded, ");
    if (InstancePtr->Topology.Hdcp2LegacyDeviceDownstream)
      xil_printf("Hdcp2LegacyDeviceDownstream, ");
    if (InstancePtr->Topology.Hdcp1DeviceDownstream)
      xil_printf("Hdcp1DeviceDownstream, ");
    xil_printf("Depth=%d, ", InstancePtr->Topology.Depth);
    xil_printf("DeviceCnt=%d\r\n", InstancePtr->Topology.DeviceCnt);

    if (Verbose) {
      for (int i=0; i<InstancePtr->Topology.DeviceCnt; i++) {
        xil_printf("DeviceList[%i]=0x%02x%02x%02x%02x%02x\r\n", i,
          InstancePtr->Topology.DeviceList[i][0],
          InstancePtr->Topology.DeviceList[i][1],
          InstancePtr->Topology.DeviceList[i][2],
          InstancePtr->Topology.DeviceList[i][3],
          InstancePtr->Topology.DeviceList[i][4]);
      }
    }
  }
}
/*****************************************************************************/
/**
*
* This function displays the repeater topology.
*
* @param    InstancePtr is a pointer to the XHdcp_Repeater instance.
* @param    Verbose can be set to TRUE to display device list.
*
* @return   None.
*
* @note	    None.
*
******************************************************************************/
This function displays the repeater topology.
This function displays the repeater topology .
static void XHdcp_DisplayTopology(XHdcp_Repeater *InstancePtr, u8 Verbose)
{
  Xil_AssertVoid(InstancePtr != NULL);
  if (XV_HdmiRxSs_HdcpIsRepeater(InstancePtr->UpstreamInstancePtr)) {
    xil_printf("HDCP Topology : ");
    if (InstancePtr->Topology.MaxDevsExceeded)
      xil_printf("MaxDevsExceeded, ");
    if (InstancePtr->Topology.MaxCascadeExceeded)
      xil_printf("MaxCascadeExceeded, ");
    if (InstancePtr->Topology.Hdcp2LegacyDeviceDownstream)
      xil_printf("Hdcp2LegacyDeviceDownstream, ");
    if (InstancePtr->Topology.Hdcp1DeviceDownstream)
      xil_printf("Hdcp1DeviceDownstream, ");
    xil_printf("Depth=%d, ", InstancePtr->Topology.Depth);
    xil_printf("DeviceCnt=%d\r\n", InstancePtr->Topology.DeviceCnt);
    if (Verbose) {
      for (int i=0; i<InstancePtr->Topology.DeviceCnt; i++) {
        xil_printf("DeviceList[%i]=0x%02x%02x%02x%02x%02x\r\n", i,
          InstancePtr->Topology.DeviceList[i][0],
          InstancePtr->Topology.DeviceList[i][1],
          InstancePtr->Topology.DeviceList[i][2],
          InstancePtr->Topology.DeviceList[i][3],
          InstancePtr->Topology.DeviceList[i][4]);
      }
    }
  }
}
static void XHdcp_DisplayTopology ( XHdcp_Repeater * InstancePtr , u8 Verbose ) { Xil_AssertVoid ( InstancePtr != NULL ) ; if ( XV_HdmiRxSs_HdcpIsRepeater ( InstancePtr -> UpstreamInstancePtr ) ) { xil_printf ( " " ) ; if ( InstancePtr -> Topology . MaxDevsExceeded ) xil_printf ( " " ) ; if ( InstancePtr -> Topology . MaxCascadeExceeded ) xil_printf ( " " ) ; if ( InstancePtr -> Topology . Hdcp2LegacyDeviceDownstream ) xil_printf ( " " ) ; if ( InstancePtr -> Topology . Hdcp1DeviceDownstream ) xil_printf ( " " ) ; xil_printf ( " " , InstancePtr -> Topology . Depth ) ; xil_printf ( " \r \n " , InstancePtr -> Topology . DeviceCnt ) ; if ( Verbose ) { for ( int i = 0 ; i < InstancePtr -> Topology . DeviceCnt ; i ++ ) { xil_printf ( " \r \n " , i , InstancePtr -> Topology . DeviceList [ i ] [ 0 ] , InstancePtr -> Topology . DeviceList [ i ] [ 1 ] , InstancePtr -> Topology . DeviceList [ i ] [ 2 ] , InstancePtr -> Topology . DeviceList [ i ] [ 3 ] , InstancePtr -> Topology . DeviceList [ i ] [ 4 ] ) ; } } } }
This function displays the repeater topology.
This function displays the repeater topology .
/* Verify arguments */