XilinxProcessorIPLib/drivers/hdcp22_rx/src/xhdcp22_rx.c
void XHdcp22Rx_SetRepeater(XHdcp22_Rx *InstancePtr, u8 Set)
{
	Xil_AssertVoid(InstancePtr != NULL);

	/* Update mode */
	if (Set)
		InstancePtr->Config.Mode = XHDCP22_RX_REPEATER;
	else
		InstancePtr->Config.Mode = XHDCP22_RX_RECEIVER;

	/* Set RxCaps */
	InstancePtr->RxCaps[0] = 0x02;
	InstancePtr->RxCaps[1] = 0x00;
	InstancePtr->RxCaps[2] = (InstancePtr->Config.Mode == XHDCP22_RX_RECEIVER) ? 0x00 : 0x01;
}
/*****************************************************************************/
/**
*
* This function sets the repeater mode status.
*
* @param	InstancePtr is a pointer to the XHdcp22_Rx core instance.
* @param  Set is TRUE to enable repeater mode and FALSE to disable.
*
* @return None.
*
******************************************************************************/
This function sets the repeater mode status.
This function sets the repeater mode status .
void XHdcp22Rx_SetRepeater(XHdcp22_Rx *InstancePtr, u8 Set)
{
	Xil_AssertVoid(InstancePtr != NULL);
	if (Set)
		InstancePtr->Config.Mode = XHDCP22_RX_REPEATER;
	else
		InstancePtr->Config.Mode = XHDCP22_RX_RECEIVER;
	InstancePtr->RxCaps[0] = 0x02;
	InstancePtr->RxCaps[1] = 0x00;
	InstancePtr->RxCaps[2] = (InstancePtr->Config.Mode == XHDCP22_RX_RECEIVER) ? 0x00 : 0x01;
}
void XHdcp22Rx_SetRepeater ( XHdcp22_Rx * InstancePtr , u8 Set ) { Xil_AssertVoid ( InstancePtr != NULL ) ; if ( Set ) InstancePtr -> Config . Mode = XHDCP22_RX_REPEATER ; else InstancePtr -> Config . Mode = XHDCP22_RX_RECEIVER ; InstancePtr -> RxCaps [ 0 ] = 0x02 ; InstancePtr -> RxCaps [ 1 ] = 0x00 ; InstancePtr -> RxCaps [ 2 ] = ( InstancePtr -> Config . Mode == XHDCP22_RX_RECEIVER ) ? 0x00 : 0x01 ; }
This function sets the repeater mode status.
This function sets the repeater mode status .
/* Update mode */ /* Set RxCaps */