XilinxProcessorIPLib/drivers/v_sditx/src/xv_sditx.c
void XV_SdiTx_SetVidBridgeMode(XV_SdiTx *InstancePtr, XSdiVid_TransMode Mode)
{
	u32 Data;
	XSdiVid_TransMode ModeInt;

	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(Mode <= 6);

	if (Mode == XSDIVID_MODE_3GA && InstancePtr->Transport.IsLevelB3G == 1) {
		ModeInt = XSDIVID_MODE_3GB;
	} else {
		ModeInt = Mode;
	}

	Data = XV_SdiTx_ReadReg(InstancePtr->Config.BaseAddress,
				(XV_SDITX_MDL_CTRL_OFFSET));
	Data &= ~XV_SDITX_MDL_CTRL_MODE_MASK;
	Data |= (ModeInt << XV_SDITX_MDL_CTRL_MODE_SHIFT);

	XV_SdiTx_WriteReg((InstancePtr)->Config.BaseAddress,
				(XV_SDITX_MDL_CTRL_OFFSET), (Data));
}
/*****************************************************************************/
/**
*
* This function sets the video bridge mode.
*
* @param    InstancePtr is a pointer to the XV_SdiTx core instance.
* @param    Mode specifies the SDI bridge mode.
*
* @return   None.
*
* @note     None.
*
******************************************************************************/
This function sets the video bridge mode.
This function sets the video bridge mode .
void XV_SdiTx_SetVidBridgeMode(XV_SdiTx *InstancePtr, XSdiVid_TransMode Mode)
{
	u32 Data;
	XSdiVid_TransMode ModeInt;
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(Mode <= 6);
	if (Mode == XSDIVID_MODE_3GA && InstancePtr->Transport.IsLevelB3G == 1) {
		ModeInt = XSDIVID_MODE_3GB;
	} else {
		ModeInt = Mode;
	}
	Data = XV_SdiTx_ReadReg(InstancePtr->Config.BaseAddress,
				(XV_SDITX_MDL_CTRL_OFFSET));
	Data &= ~XV_SDITX_MDL_CTRL_MODE_MASK;
	Data |= (ModeInt << XV_SDITX_MDL_CTRL_MODE_SHIFT);
	XV_SdiTx_WriteReg((InstancePtr)->Config.BaseAddress,
				(XV_SDITX_MDL_CTRL_OFFSET), (Data));
}
void XV_SdiTx_SetVidBridgeMode ( XV_SdiTx * InstancePtr , XSdiVid_TransMode Mode ) { u32 Data ; XSdiVid_TransMode ModeInt ; Xil_AssertVoid ( InstancePtr != NULL ) ; Xil_AssertVoid ( Mode <= 6 ) ; if ( Mode == XSDIVID_MODE_3GA && InstancePtr -> Transport . IsLevelB3G == 1 ) { ModeInt = XSDIVID_MODE_3GB ; } else { ModeInt = Mode ; } Data = XV_SdiTx_ReadReg ( InstancePtr -> Config . BaseAddress , ( XV_SDITX_MDL_CTRL_OFFSET ) ) ; Data &= ~ XV_SDITX_MDL_CTRL_MODE_MASK ; Data |= ( ModeInt << XV_SDITX_MDL_CTRL_MODE_SHIFT ) ; XV_SdiTx_WriteReg ( ( InstancePtr ) -> Config . BaseAddress , ( XV_SDITX_MDL_CTRL_OFFSET ) , ( Data ) ) ; }
This function sets the video bridge mode.
This function sets the video bridge mode .