XilinxProcessorIPLib/drivers/v_hdmitxss1/src/xv_hdmitxss1_hdcp.c
void XV_HdmiTxSs1_HdcpInfo(XV_HdmiTxSs1 *InstancePtr)
{
  /* Verify argument. */
  Xil_AssertVoid(InstancePtr != NULL);

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

#ifdef XPAR_XHDCP_NUM_INSTANCES
    /* HDCP 1.4*/
    case XV_HDMITXSS1_HDCP_14 :
      if (InstancePtr->Hdcp14Ptr) {
        if (XHdcp1x_IsEnabled(InstancePtr->Hdcp14Ptr)) {
          xil_printf("\r\nHDCP 1.4 TX Info\r\n");
          xil_printf("---------\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 TX is disabled\r\n");
          xil_printf("---------\r\n");
        }
      }
      break;
#endif

#ifdef XPAR_XHDCP22_TX_NUM_INSTANCES
    /* HDCP 2.2*/
    case XV_HDMITXSS1_HDCP_22 :
      if (InstancePtr->Hdcp22Ptr) {
        if (XHdcp22Tx_IsEnabled(InstancePtr->Hdcp22Ptr)) {
          if (InstancePtr->EnableHDCPLogging == TRUE) {
            XHdcp22Tx_LogDisplay(InstancePtr->Hdcp22Ptr);
          }

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

    default:
      xil_printf("\r\nHDCP Info Unknown?\r\n");
      xil_printf("---------\r\n");
      break;
  }
}
/*****************************************************************************/
/**
*
* This function reports the HDCP info
*
* @param  InstancePtr pointer to XV_HdmiTxSs1 instance
*
* @return None.
*
* @note   None.
*
******************************************************************************/
This function reports the HDCP info
This function reports the HDCP info
void XV_HdmiTxSs1_HdcpInfo(XV_HdmiTxSs1 *InstancePtr)
{
  Xil_AssertVoid(InstancePtr != NULL);
  switch (InstancePtr->HdcpProtocol) {
    case XV_HDMITXSS1_HDCP_NONE :
      xil_printf("\r\nHDCP TX is disabled\r\n");
      xil_printf("---------\r\n");
      break;
#ifdef XPAR_XHDCP_NUM_INSTANCES
    case XV_HDMITXSS1_HDCP_14 :
      if (InstancePtr->Hdcp14Ptr) {
        if (XHdcp1x_IsEnabled(InstancePtr->Hdcp14Ptr)) {
          xil_printf("\r\nHDCP 1.4 TX Info\r\n");
          xil_printf("---------\r\n");
          XHdcp1x_SetDebugPrintf(xil_printf);
          XHdcp1x_Info(InstancePtr->Hdcp14Ptr);
        }
        else {
          xil_printf("\r\nHDCP 1.4 TX is disabled\r\n");
          xil_printf("---------\r\n");
        }
      }
      break;
#endif
#ifdef XPAR_XHDCP22_TX_NUM_INSTANCES
    case XV_HDMITXSS1_HDCP_22 :
      if (InstancePtr->Hdcp22Ptr) {
        if (XHdcp22Tx_IsEnabled(InstancePtr->Hdcp22Ptr)) {
          if (InstancePtr->EnableHDCPLogging == TRUE) {
            XHdcp22Tx_LogDisplay(InstancePtr->Hdcp22Ptr);
          }
          xil_printf("\r\nHDCP 2.2 TX Info\r\n");
          xil_printf("---------\r\n");
          XHdcp22Tx_Info(InstancePtr->Hdcp22Ptr);
        }
        else {
          xil_printf("\r\nHDCP 2.2 TX is disabled\r\n");
          xil_printf("---------\r\n");
        }
      }
      break;
#endif
    default:
      xil_printf("\r\nHDCP Info Unknown?\r\n");
      xil_printf("---------\r\n");
      break;
  }
}
void XV_HdmiTxSs1_HdcpInfo ( XV_HdmiTxSs1 * InstancePtr ) { Xil_AssertVoid ( InstancePtr != NULL ) ; switch ( InstancePtr -> HdcpProtocol ) { case XV_HDMITXSS1_HDCP_NONE : xil_printf ( " \r \n \r \n " ) ; xil_printf ( " \r \n " ) ; break ; #ifdef XPAR_XHDCP_NUM_INSTANCES case XV_HDMITXSS1_HDCP_14 : if ( InstancePtr -> Hdcp14Ptr ) { if ( XHdcp1x_IsEnabled ( InstancePtr -> Hdcp14Ptr ) ) { xil_printf ( " \r \n \r \n " ) ; xil_printf ( " \r \n " ) ; XHdcp1x_SetDebugPrintf ( xil_printf ) ; XHdcp1x_Info ( InstancePtr -> Hdcp14Ptr ) ; } else { xil_printf ( " \r \n \r \n " ) ; xil_printf ( " \r \n " ) ; } } break ; #endif #ifdef XPAR_XHDCP22_TX_NUM_INSTANCES case XV_HDMITXSS1_HDCP_22 : if ( InstancePtr -> Hdcp22Ptr ) { if ( XHdcp22Tx_IsEnabled ( InstancePtr -> Hdcp22Ptr ) ) { if ( InstancePtr -> EnableHDCPLogging == TRUE ) { XHdcp22Tx_LogDisplay ( InstancePtr -> Hdcp22Ptr ) ; } xil_printf ( " \r \n \r \n " ) ; xil_printf ( " \r \n " ) ; XHdcp22Tx_Info ( InstancePtr -> Hdcp22Ptr ) ; } else { xil_printf ( " \r \n \r \n " ) ; xil_printf ( " \r \n " ) ; } } break ; #endif default : xil_printf ( " \r \n \r \n " ) ; xil_printf ( " \r \n " ) ; break ; } }
This function reports the HDCP info
This function reports the HDCP info
/* Verify argument. */ /* HDCP 1.4*/ /* Route debug output to xil_printf*/ /* Display info*/ /* HDCP 2.2*/