XilinxProcessorIPLib/drivers/dp14rxss/src/xdprxss_mcdp6000.c
int XDpRxSs_MCDP6000_EnablePrbs7_Tx(XDpRxSs *DpRxSsPtr, u8 I2CSlaveAddress)
{
	unsigned int Result = XST_FAILURE;

	/* Verify argument.*/
	Xil_AssertNonvoid(DpRxSsPtr != NULL);

	if (MCDP6000_IC_Rev == 0x2100) {
		Result = XDpRxSs_MCDP6000_SetRegister(DpRxSsPtr, I2CSlaveAddress,
					      0x024C, 0xAAAA9A05);
		if (Result != XST_SUCCESS) {
			return XST_FAILURE;
		}

		Result = XDpRxSs_MCDP6000_SetRegister(DpRxSsPtr, I2CSlaveAddress,
					      0x0150, 0x00100000);
		if (Result != XST_SUCCESS) {
			return XST_FAILURE;
		}

		Result = XDpRxSs_MCDP6000_SetRegister(DpRxSsPtr, I2CSlaveAddress,
					      0x0604, 0x0000F004);
		if (Result != XST_SUCCESS) {
			return XST_FAILURE;
		}

		Result = XDpRxSs_MCDP6000_SetRegister(DpRxSsPtr, I2CSlaveAddress,
					      0x0630, 0x0000041E);
		if (Result != XST_SUCCESS) {
			return XST_FAILURE;
		}

		Result = XDpRxSs_MCDP6000_SetRegister(DpRxSsPtr, I2CSlaveAddress,
					      0x0668, 0x00000001);
		if (Result != XST_SUCCESS) {
			return XST_FAILURE;
		}

		Result = XDpRxSs_MCDP6000_SetRegister(DpRxSsPtr, I2CSlaveAddress,
					      0x0674, 0x00000001);
		if (Result != XST_SUCCESS) {
			return XST_FAILURE;
		}

		Result = XDpRxSs_MCDP6000_SetRegister(DpRxSsPtr, I2CSlaveAddress,
					      0x0680, 0x00070000);
	}

	return Result;
}
/*****************************************************************************/
/**
*
* This function enables the PRBS7 output of the MCDP6000 device
*
* @param DpRxSsPtr is a pointer to the XDpRxSs core instance.
* @param I2CSlaveAddress is the 7-bit I2C slave address.
*
* @return
*    - XST_SUCCESS Enable request was successful.
*    - XST_FAILURE I2C error.
*
* @note None.
*
******************************************************************************/
This function enables the PRBS7 output of the MCDP6000 device
This function enables the PRBS7 output of the MCDP6000 device
int XDpRxSs_MCDP6000_EnablePrbs7_Tx(XDpRxSs *DpRxSsPtr, u8 I2CSlaveAddress)
{
	unsigned int Result = XST_FAILURE;
	Xil_AssertNonvoid(DpRxSsPtr != NULL);
	if (MCDP6000_IC_Rev == 0x2100) {
		Result = XDpRxSs_MCDP6000_SetRegister(DpRxSsPtr, I2CSlaveAddress,
					      0x024C, 0xAAAA9A05);
		if (Result != XST_SUCCESS) {
			return XST_FAILURE;
		}
		Result = XDpRxSs_MCDP6000_SetRegister(DpRxSsPtr, I2CSlaveAddress,
					      0x0150, 0x00100000);
		if (Result != XST_SUCCESS) {
			return XST_FAILURE;
		}
		Result = XDpRxSs_MCDP6000_SetRegister(DpRxSsPtr, I2CSlaveAddress,
					      0x0604, 0x0000F004);
		if (Result != XST_SUCCESS) {
			return XST_FAILURE;
		}
		Result = XDpRxSs_MCDP6000_SetRegister(DpRxSsPtr, I2CSlaveAddress,
					      0x0630, 0x0000041E);
		if (Result != XST_SUCCESS) {
			return XST_FAILURE;
		}
		Result = XDpRxSs_MCDP6000_SetRegister(DpRxSsPtr, I2CSlaveAddress,
					      0x0668, 0x00000001);
		if (Result != XST_SUCCESS) {
			return XST_FAILURE;
		}
		Result = XDpRxSs_MCDP6000_SetRegister(DpRxSsPtr, I2CSlaveAddress,
					      0x0674, 0x00000001);
		if (Result != XST_SUCCESS) {
			return XST_FAILURE;
		}
		Result = XDpRxSs_MCDP6000_SetRegister(DpRxSsPtr, I2CSlaveAddress,
					      0x0680, 0x00070000);
	}
	return Result;
}
int XDpRxSs_MCDP6000_EnablePrbs7_Tx ( XDpRxSs * DpRxSsPtr , u8 I2CSlaveAddress ) { unsigned int Result = XST_FAILURE ; Xil_AssertNonvoid ( DpRxSsPtr != NULL ) ; if ( MCDP6000_IC_Rev == 0x2100 ) { Result = XDpRxSs_MCDP6000_SetRegister ( DpRxSsPtr , I2CSlaveAddress , 0x024C , 0xAAAA9A05 ) ; if ( Result != XST_SUCCESS ) { return XST_FAILURE ; } Result = XDpRxSs_MCDP6000_SetRegister ( DpRxSsPtr , I2CSlaveAddress , 0x0150 , 0x00100000 ) ; if ( Result != XST_SUCCESS ) { return XST_FAILURE ; } Result = XDpRxSs_MCDP6000_SetRegister ( DpRxSsPtr , I2CSlaveAddress , 0x0604 , 0x0000F004 ) ; if ( Result != XST_SUCCESS ) { return XST_FAILURE ; } Result = XDpRxSs_MCDP6000_SetRegister ( DpRxSsPtr , I2CSlaveAddress , 0x0630 , 0x0000041E ) ; if ( Result != XST_SUCCESS ) { return XST_FAILURE ; } Result = XDpRxSs_MCDP6000_SetRegister ( DpRxSsPtr , I2CSlaveAddress , 0x0668 , 0x00000001 ) ; if ( Result != XST_SUCCESS ) { return XST_FAILURE ; } Result = XDpRxSs_MCDP6000_SetRegister ( DpRxSsPtr , I2CSlaveAddress , 0x0674 , 0x00000001 ) ; if ( Result != XST_SUCCESS ) { return XST_FAILURE ; } Result = XDpRxSs_MCDP6000_SetRegister ( DpRxSsPtr , I2CSlaveAddress , 0x0680 , 0x00070000 ) ; } return Result ; }
This function enables the PRBS7 output of the MCDP6000 device
This function enables the PRBS7 output of the MCDP6000 device
/* Verify argument.*/