XilinxProcessorIPLib/drivers/v_sditx/src/xv_sditx.c
void XV_SdiTx_SetPayloadLineNum(XV_SdiTx *InstancePtr,
				XV_SdiTx_PayloadLineNum1 Field1LineNum,
				XV_SdiTx_PayloadLineNum2 Field2LineNum,
				u8 Field2En)
{
	u32 Data;

	Data = (((Field1LineNum & 0x7FF) << XV_SDITX_TX_ST352_LINE_F1_SHIFT) |
		((Field2LineNum & 0x7FF) << XV_SDITX_TX_ST352_LINE_F2_SHIFT));

	XV_SdiTx_WriteReg((InstancePtr)->Config.BaseAddress,
				(XV_SDITX_TX_ST352_LINE_OFFSET), (Data));

	Data = XV_SdiTx_ReadReg(InstancePtr->Config.BaseAddress,
				(XV_SDITX_MDL_CTRL_OFFSET));
	Data &= ~XV_SDITX_MDL_CTRL_ST352_F2_EN_MASK;

	Data |= ((Field2En & 0x1) << XV_SDITX_MDL_CTRL_ST352_F2_EN_SHIFT);

	XV_SdiTx_WriteReg((InstancePtr)->Config.BaseAddress,
				(XV_SDITX_MDL_CTRL_OFFSET), (Data));
}
/*****************************************************************************/
/**
*
* This function sets the line number of which the HANC space will be inserted
* with ST 352 packets.
*
* @param    InstancePtr is a pointer to the XV_SdiTx core instance.
* @param    Field1LineNum specifies the field 1 line number of which ST352
*			packets are to be inserted
* @param    Field2LineNum specifies the field 2 line number of which ST352
*			packets are to be inserted
* @param    Field2En specifies whether the TX core will send out ST352 packets
*			in field 2 line number or not.
*
* @return   None.
*
* @note     None.
*
******************************************************************************/
This function sets the line number of which the HANC space will be inserted
with ST 352 packets.
This function sets the line number of which the HANC space will be inserted with ST 352 packets .
void XV_SdiTx_SetPayloadLineNum(XV_SdiTx *InstancePtr,
				XV_SdiTx_PayloadLineNum1 Field1LineNum,
				XV_SdiTx_PayloadLineNum2 Field2LineNum,
				u8 Field2En)
{
	u32 Data;
	Data = (((Field1LineNum & 0x7FF) << XV_SDITX_TX_ST352_LINE_F1_SHIFT) |
		((Field2LineNum & 0x7FF) << XV_SDITX_TX_ST352_LINE_F2_SHIFT));
	XV_SdiTx_WriteReg((InstancePtr)->Config.BaseAddress,
				(XV_SDITX_TX_ST352_LINE_OFFSET), (Data));
	Data = XV_SdiTx_ReadReg(InstancePtr->Config.BaseAddress,
				(XV_SDITX_MDL_CTRL_OFFSET));
	Data &= ~XV_SDITX_MDL_CTRL_ST352_F2_EN_MASK;
	Data |= ((Field2En & 0x1) << XV_SDITX_MDL_CTRL_ST352_F2_EN_SHIFT);
	XV_SdiTx_WriteReg((InstancePtr)->Config.BaseAddress,
				(XV_SDITX_MDL_CTRL_OFFSET), (Data));
}
void XV_SdiTx_SetPayloadLineNum ( XV_SdiTx * InstancePtr , XV_SdiTx_PayloadLineNum1 Field1LineNum , XV_SdiTx_PayloadLineNum2 Field2LineNum , u8 Field2En ) { u32 Data ; Data = ( ( ( Field1LineNum & 0x7FF ) << XV_SDITX_TX_ST352_LINE_F1_SHIFT ) | ( ( Field2LineNum & 0x7FF ) << XV_SDITX_TX_ST352_LINE_F2_SHIFT ) ) ; XV_SdiTx_WriteReg ( ( InstancePtr ) -> Config . BaseAddress , ( XV_SDITX_TX_ST352_LINE_OFFSET ) , ( Data ) ) ; Data = XV_SdiTx_ReadReg ( InstancePtr -> Config . BaseAddress , ( XV_SDITX_MDL_CTRL_OFFSET ) ) ; Data &= ~ XV_SDITX_MDL_CTRL_ST352_F2_EN_MASK ; Data |= ( ( Field2En & 0x1 ) << XV_SDITX_MDL_CTRL_ST352_F2_EN_SHIFT ) ; XV_SdiTx_WriteReg ( ( InstancePtr ) -> Config . BaseAddress , ( XV_SDITX_MDL_CTRL_OFFSET ) , ( Data ) ) ; }
This function sets the line number of which the HANC space will be inserted
with ST 352 packets.
This function sets the line number of which the HANC space will be inserted with ST 352 packets .