XilinxProcessorIPLib/drivers/v_hdmirxss/src/xv_hdmirxss_hdcp.c
void XV_HdmiRxSs_HdcpInfo(XV_HdmiRxSs *InstancePtr)
{
  /* Verify argument. */
  Xil_AssertVoid(InstancePtr != NULL);

  switch (InstancePtr->HdcpProtocol) {
    case XV_HDMIRXSS_HDCP_NONE :
      xil_printf("\r\nHDCP RX is disabled\r\n");
      break;

#ifdef XPAR_XHDCP_NUM_INSTANCES
    // HDCP 1.4
    case XV_HDMIRXSS_HDCP_14:
      if (InstancePtr->Hdcp14Ptr) {
        if (XHdcp1x_IsEnabled(InstancePtr->Hdcp14Ptr)) {
          xil_printf("\r\nHDCP 1.4 RX Info\r\n");

          xil_printf("Encryption : ");
          if (XHdcp1x_IsEncrypted(InstancePtr->Hdcp14Ptr)) {
            xil_printf("Enabled.\r\n");
          } else {
            xil_printf("Disabled.\r\n");
          }

          // Route debug output to xil_printf
          XHdcp1x_SetDebugPrintf(xil_printf);

          // Display info
          XHdcp1x_Info(InstancePtr->Hdcp14Ptr);
        }
        else {
          xil_printf("\r\nHDCP 1.4 RX is disabled\r\n");
        }
      }
      break;
#endif

#ifdef XPAR_XHDCP22_RX_NUM_INSTANCES
    // HDCP 2.2
    case XV_HDMIRXSS_HDCP_22:
      if (InstancePtr->Hdcp22Ptr) {
        if (XHdcp22Rx_IsEnabled(InstancePtr->Hdcp22Ptr)) {
          XHdcp22Rx_LogDisplay(InstancePtr->Hdcp22Ptr);

          xil_printf("HDCP 2.2 RX Info\r\n");
          XHdcp22Rx_Info(InstancePtr->Hdcp22Ptr);
        }
        else {
          xil_printf("\r\nHDCP 2.2 RX is disabled\r\n");
        }
      }
      break;
#endif

    default:
      xil_printf("\r\nHDCP info unknown?\r\n");
  }
}
/*****************************************************************************/
/**
*
* This function reports the HDCP information.
*
* @param InstancePtr is a pointer to the XV_HdmiRxSs instance.
*
* @return None.
*
* @note   None.
*
******************************************************************************/
This function reports the HDCP information.
This function reports the HDCP information .
void XV_HdmiRxSs_HdcpInfo(XV_HdmiRxSs *InstancePtr)
{
  Xil_AssertVoid(InstancePtr != NULL);
  switch (InstancePtr->HdcpProtocol) {
    case XV_HDMIRXSS_HDCP_NONE :
      xil_printf("\r\nHDCP RX is disabled\r\n");
      break;
#ifdef XPAR_XHDCP_NUM_INSTANCES
    case XV_HDMIRXSS_HDCP_14:
      if (InstancePtr->Hdcp14Ptr) {
        if (XHdcp1x_IsEnabled(InstancePtr->Hdcp14Ptr)) {
          xil_printf("\r\nHDCP 1.4 RX Info\r\n");
          xil_printf("Encryption : ");
          if (XHdcp1x_IsEncrypted(InstancePtr->Hdcp14Ptr)) {
            xil_printf("Enabled.\r\n");
          } else {
            xil_printf("Disabled.\r\n");
          }
          XHdcp1x_SetDebugPrintf(xil_printf);
          XHdcp1x_Info(InstancePtr->Hdcp14Ptr);
        }
        else {
          xil_printf("\r\nHDCP 1.4 RX is disabled\r\n");
        }
      }
      break;
#endif
#ifdef XPAR_XHDCP22_RX_NUM_INSTANCES
    case XV_HDMIRXSS_HDCP_22:
      if (InstancePtr->Hdcp22Ptr) {
        if (XHdcp22Rx_IsEnabled(InstancePtr->Hdcp22Ptr)) {
          XHdcp22Rx_LogDisplay(InstancePtr->Hdcp22Ptr);
          xil_printf("HDCP 2.2 RX Info\r\n");
          XHdcp22Rx_Info(InstancePtr->Hdcp22Ptr);
        }
        else {
          xil_printf("\r\nHDCP 2.2 RX is disabled\r\n");
        }
      }
      break;
#endif
    default:
      xil_printf("\r\nHDCP info unknown?\r\n");
  }
}
void XV_HdmiRxSs_HdcpInfo ( XV_HdmiRxSs * InstancePtr ) { Xil_AssertVoid ( InstancePtr != NULL ) ; switch ( InstancePtr -> HdcpProtocol ) { case XV_HDMIRXSS_HDCP_NONE : xil_printf ( " \r \n \r \n " ) ; break ; #ifdef XPAR_XHDCP_NUM_INSTANCES case XV_HDMIRXSS_HDCP_14 : if ( InstancePtr -> Hdcp14Ptr ) { if ( XHdcp1x_IsEnabled ( InstancePtr -> Hdcp14Ptr ) ) { xil_printf ( " \r \n \r \n " ) ; xil_printf ( " " ) ; if ( XHdcp1x_IsEncrypted ( InstancePtr -> Hdcp14Ptr ) ) { xil_printf ( " \r \n " ) ; } else { xil_printf ( " \r \n " ) ; } XHdcp1x_SetDebugPrintf ( xil_printf ) ; XHdcp1x_Info ( InstancePtr -> Hdcp14Ptr ) ; } else { xil_printf ( " \r \n \r \n " ) ; } } break ; #endif #ifdef XPAR_XHDCP22_RX_NUM_INSTANCES case XV_HDMIRXSS_HDCP_22 : if ( InstancePtr -> Hdcp22Ptr ) { if ( XHdcp22Rx_IsEnabled ( InstancePtr -> Hdcp22Ptr ) ) { XHdcp22Rx_LogDisplay ( InstancePtr -> Hdcp22Ptr ) ; xil_printf ( " \r \n " ) ; XHdcp22Rx_Info ( InstancePtr -> Hdcp22Ptr ) ; } else { xil_printf ( " \r \n \r \n " ) ; } } break ; #endif default : xil_printf ( " \r \n \r \n " ) ; } }
This function reports the HDCP information.
This function reports the HDCP information .
/* Verify argument. */ // HDCP 1.4 // Route debug output to xil_printf // Display info // HDCP 2.2