XilinxProcessorIPLib/drivers/hdcp1x/src/xhdcp1x_tx.c
int XHdcp1x_TxIsAuthenticated(const XHdcp1x *InstancePtr)
{
	int Authenticated = FALSE;

	/* Verify arguments. */
	Xil_AssertNonvoid(InstancePtr != NULL);

	/* Case-wise process the kind of state called */
	switch (InstancePtr->Tx.CurrentState) {
		/* For the authenticated and link integrity check states */
		case XHDCP1X_STATE_AUTHENTICATED:
		case XHDCP1X_STATE_LINKINTEGRITYCHECK:
			Authenticated = TRUE;
			break;

		/* Otherwise */
		default:
			Authenticated = FALSE;
			break;
	}

	return (Authenticated);
}
/*****************************************************************************/
/**
* This function queries an interface to check if its been authenticated.
*
* @param	InstancePtr is the transmitter instance.
*
* @return	Truth value indicating authenticated (true) or not (false).
*
* @note		None.
*
******************************************************************************/
This function queries an interface to check if its been authenticated.
This function queries an interface to check if its been authenticated .
int XHdcp1x_TxIsAuthenticated(const XHdcp1x *InstancePtr)
{
	int Authenticated = FALSE;
	Xil_AssertNonvoid(InstancePtr != NULL);
	switch (InstancePtr->Tx.CurrentState) {
		case XHDCP1X_STATE_AUTHENTICATED:
		case XHDCP1X_STATE_LINKINTEGRITYCHECK:
			Authenticated = TRUE;
			break;
		default:
			Authenticated = FALSE;
			break;
	}
	return (Authenticated);
}
int XHdcp1x_TxIsAuthenticated ( const XHdcp1x * InstancePtr ) { int Authenticated = FALSE ; Xil_AssertNonvoid ( InstancePtr != NULL ) ; switch ( InstancePtr -> Tx . CurrentState ) { case XHDCP1X_STATE_AUTHENTICATED : case XHDCP1X_STATE_LINKINTEGRITYCHECK : Authenticated = TRUE ; break ; default : Authenticated = FALSE ; break ; } return ( Authenticated ) ; }
This function queries an interface to check if its been authenticated.
This function queries an interface to check if its been authenticated .
/* Verify arguments. */ /* Case-wise process the kind of state called */ /* For the authenticated and link integrity check states */ /* Otherwise */