XilinxProcessorIPLib/drivers/hdcp1x/src/xhdcp1x_rx.c
void XHdcp1x_RxSetHdmiMode(XHdcp1x *InstancePtr, u8 Value)
{
	/* Verify arguments */
	Xil_AssertVoid(InstancePtr != NULL);

#if (defined(XPAR_XV_HDMIRX_NUM_INSTANCES) && \
     (XPAR_XV_HDMIRX_NUM_INSTANCES > 0)) || \
    (defined(XPAR_XV_HDMIRX1_NUM_INSTANCES) && \
     (XPAR_XV_HDMIRX1_NUM_INSTANCES > 0))
	u32 BStatus;

	/* Update the value of HDMI_MODE bit in the BStatus Register */
	XHdcp1x_PortRead(InstancePtr, XHDCP1X_PORT_OFFSET_BSTATUS,
		&BStatus, XHDCP1X_PORT_SIZE_BSTATUS);
	if (Value == TRUE) {
		BStatus |= XHDCP1X_PORT_BIT_BSTATUS_HDMI_MODE;
	} else {
		BStatus &= ~XHDCP1X_PORT_BIT_BSTATUS_HDMI_MODE;
	}
	XHdcp1x_PortWrite(InstancePtr, XHDCP1X_PORT_OFFSET_BSTATUS,
		&BStatus, XHDCP1X_PORT_SIZE_BSTATUS);
#else
	UNUSED(Value);
#endif
}
/*****************************************************************************/
/**
* This function set the HDMI_MODE in the BStatus register of the HDMI RX DDC
* space.
*
* @param	InstancePtr is a pointer to the Hdcp1x core instance.
* @param	Value is the truth-value.
*
* @return	None.
*
* @note		None.
******************************************************************************/
This function set the HDMI_MODE in the BStatus register of the HDMI RX DDC
space.
This function set the HDMI_MODE in the BStatus register of the HDMI RX DDC space .
void XHdcp1x_RxSetHdmiMode(XHdcp1x *InstancePtr, u8 Value)
{
	Xil_AssertVoid(InstancePtr != NULL);
#if (defined(XPAR_XV_HDMIRX_NUM_INSTANCES) && \
     (XPAR_XV_HDMIRX_NUM_INSTANCES > 0)) || \
    (defined(XPAR_XV_HDMIRX1_NUM_INSTANCES) && \
     (XPAR_XV_HDMIRX1_NUM_INSTANCES > 0))
	u32 BStatus;
	XHdcp1x_PortRead(InstancePtr, XHDCP1X_PORT_OFFSET_BSTATUS,
		&BStatus, XHDCP1X_PORT_SIZE_BSTATUS);
	if (Value == TRUE) {
		BStatus |= XHDCP1X_PORT_BIT_BSTATUS_HDMI_MODE;
	} else {
		BStatus &= ~XHDCP1X_PORT_BIT_BSTATUS_HDMI_MODE;
	}
	XHdcp1x_PortWrite(InstancePtr, XHDCP1X_PORT_OFFSET_BSTATUS,
		&BStatus, XHDCP1X_PORT_SIZE_BSTATUS);
#else
	UNUSED(Value);
#endif
}
void XHdcp1x_RxSetHdmiMode ( XHdcp1x * InstancePtr , u8 Value ) { Xil_AssertVoid ( InstancePtr != NULL ) ; #if ( defined ( XPAR_XV_HDMIRX_NUM_INSTANCES ) && ( XPAR_XV_HDMIRX_NUM_INSTANCES > 0 ) ) || ( defined ( XPAR_XV_HDMIRX1_NUM_INSTANCES ) && ( XPAR_XV_HDMIRX1_NUM_INSTANCES > 0 ) ) u32 BStatus ; XHdcp1x_PortRead ( InstancePtr , XHDCP1X_PORT_OFFSET_BSTATUS , & BStatus , XHDCP1X_PORT_SIZE_BSTATUS ) ; if ( Value == TRUE ) { BStatus |= XHDCP1X_PORT_BIT_BSTATUS_HDMI_MODE ; } else { BStatus &= ~ XHDCP1X_PORT_BIT_BSTATUS_HDMI_MODE ; } XHdcp1x_PortWrite ( InstancePtr , XHDCP1X_PORT_OFFSET_BSTATUS , & BStatus , XHDCP1X_PORT_SIZE_BSTATUS ) ; #else UNUSED ( Value ) ; #endif }
This function set the HDMI_MODE in the BStatus register of the HDMI RX DDC
space.
This function set the HDMI_MODE in the BStatus register of the HDMI RX DDC space .
/* Verify arguments */ /* Update the value of HDMI_MODE bit in the BStatus Register */