XilinxProcessorIPLib/drivers/v_hdmitxss1/src/xv_hdmitxss1_hdcp.c
int XV_HdmiTxSs1_HdcpEnableEncryption(XV_HdmiTxSs1 *InstancePtr)
{
  /* Verify argument. */
  Xil_AssertNonvoid(InstancePtr != NULL);

  int Status = XST_SUCCESS;

  switch (InstancePtr->HdcpProtocol) {
    case XV_HDMITXSS1_HDCP_NONE :
      break;

#ifdef XPAR_XHDCP_NUM_INSTANCES
    case XV_HDMITXSS1_HDCP_14 :
      if (InstancePtr->Hdcp14Ptr) {
        Status = XHdcp1x_EnableEncryption(InstancePtr->Hdcp14Ptr, 0x1);
      }
      break;
#endif

#ifdef XPAR_XHDCP22_TX_NUM_INSTANCES
    case XV_HDMITXSS1_HDCP_22 :
      if (InstancePtr->Hdcp22Ptr) {
        Status = XHdcp22Tx_EnableEncryption(InstancePtr->Hdcp22Ptr);
      }
      break;
#endif

    default :
      Status = XST_FAILURE;
  }

  return Status;
}
/*****************************************************************************/
/**
*
* This function enables encryption for the active HDCP protocol.
*
* @param InstancePtr is a pointer to the XV_HdmiTxSs1 instance.
*
* @return
*  - XST_SUCCESS if action was successful
*  - XST_FAILURE if action was not successful
*
* @note   None.
*
******************************************************************************/
This function enables encryption for the active HDCP protocol.
This function enables encryption for the active HDCP protocol .
int XV_HdmiTxSs1_HdcpEnableEncryption(XV_HdmiTxSs1 *InstancePtr)
{
  Xil_AssertNonvoid(InstancePtr != NULL);
  int Status = XST_SUCCESS;
  switch (InstancePtr->HdcpProtocol) {
    case XV_HDMITXSS1_HDCP_NONE :
      break;
#ifdef XPAR_XHDCP_NUM_INSTANCES
    case XV_HDMITXSS1_HDCP_14 :
      if (InstancePtr->Hdcp14Ptr) {
        Status = XHdcp1x_EnableEncryption(InstancePtr->Hdcp14Ptr, 0x1);
      }
      break;
#endif
#ifdef XPAR_XHDCP22_TX_NUM_INSTANCES
    case XV_HDMITXSS1_HDCP_22 :
      if (InstancePtr->Hdcp22Ptr) {
        Status = XHdcp22Tx_EnableEncryption(InstancePtr->Hdcp22Ptr);
      }
      break;
#endif
    default :
      Status = XST_FAILURE;
  }
  return Status;
}
int XV_HdmiTxSs1_HdcpEnableEncryption ( XV_HdmiTxSs1 * InstancePtr ) { Xil_AssertNonvoid ( InstancePtr != NULL ) ; int Status = XST_SUCCESS ; switch ( InstancePtr -> HdcpProtocol ) { case XV_HDMITXSS1_HDCP_NONE : break ; #ifdef XPAR_XHDCP_NUM_INSTANCES case XV_HDMITXSS1_HDCP_14 : if ( InstancePtr -> Hdcp14Ptr ) { Status = XHdcp1x_EnableEncryption ( InstancePtr -> Hdcp14Ptr , 0x1 ) ; } break ; #endif #ifdef XPAR_XHDCP22_TX_NUM_INSTANCES case XV_HDMITXSS1_HDCP_22 : if ( InstancePtr -> Hdcp22Ptr ) { Status = XHdcp22Tx_EnableEncryption ( InstancePtr -> Hdcp22Ptr ) ; } break ; #endif default : Status = XST_FAILURE ; } return Status ; }
This function enables encryption for the active HDCP protocol.
This function enables encryption for the active HDCP protocol .
/* Verify argument. */