XilinxProcessorIPLib/drivers/dp12txss/examples/src/com/xhdcp1x_debug.c
static void DebugAuthenticate(int argc, const char *argv[])
{
	XHdcp1x *InstancePtr = NULL;
	int DevID = 0;
	int ThereWasAProblem = FALSE;

	/* Check for theIfID */
	if (argc > 0) {
		DevID = atoi(argv[0]);
	}

	/* Determine InstancePtr */
	InstancePtr = GetHdcpIf(DevID);

	/* Sanity Check */
	if (InstancePtr != NULL) {
		if (XHdcp1x_Authenticate(InstancePtr) != XST_SUCCESS) {
			ThereWasAProblem = TRUE;
		}
	}
	else {
		ThereWasAProblem = TRUE;
	}

	/* Check for help */
	if (ThereWasAProblem) {
		PRINTF("hdcp authenticate <id>\r\n");
	}

	return;
}
/*****************************************************************************/
/*!
 * \brief  This function implements the "hdcp authenticate" command
 * \param[in]  argc    the number of arguments
 * \param[in]  argv[]  an array of pointers to the arguments
 * \return  void
 *
 *****************************************************************************/
\brief  This function implements the "hdcp authenticate" command
\param[in]  argc    the number of arguments
\param[in]  argv[]  an array of pointers to the arguments
\return  void
\ brief This function implements the " hdcp authenticate " command \ param [ in ] argc the number of arguments \ param [ in ] argv [] an array of pointers to the arguments \ return void
static void DebugAuthenticate(int argc, const char *argv[])
{
	XHdcp1x *InstancePtr = NULL;
	int DevID = 0;
	int ThereWasAProblem = FALSE;
	if (argc > 0) {
		DevID = atoi(argv[0]);
	}
	InstancePtr = GetHdcpIf(DevID);
	if (InstancePtr != NULL) {
		if (XHdcp1x_Authenticate(InstancePtr) != XST_SUCCESS) {
			ThereWasAProblem = TRUE;
		}
	}
	else {
		ThereWasAProblem = TRUE;
	}
	if (ThereWasAProblem) {
		PRINTF("hdcp authenticate <id>\r\n");
	}
	return;
}
static void DebugAuthenticate ( int argc , const char * argv [ ] ) { XHdcp1x * InstancePtr = NULL ; int DevID = 0 ; int ThereWasAProblem = FALSE ; if ( argc > 0 ) { DevID = atoi ( argv [ 0 ] ) ; } InstancePtr = GetHdcpIf ( DevID ) ; if ( InstancePtr != NULL ) { if ( XHdcp1x_Authenticate ( InstancePtr ) != XST_SUCCESS ) { ThereWasAProblem = TRUE ; } } else { ThereWasAProblem = TRUE ; } if ( ThereWasAProblem ) { PRINTF ( " \r \n " ) ; } return ; }
\brief  This function implements the "hdcp authenticate" command
 \param[in]  argc    the number of arguments
 \param[in]  argv[]  an array of pointers to the arguments
 \return  void
\ brief This function implements the " hdcp authenticate " command \ param [ in ] argc the number of arguments \ param [ in ] argv [] an array of pointers to the arguments \ return void
/* Check for theIfID */ /* Determine InstancePtr */ /* Sanity Check */ /* Check for help */