XilinxProcessorIPLib/drivers/v_hdmiphy1/src/xhdmiphy1_gtye4.c
static u8 XHdmiphy1_DrpEncodeCpllTxRxD(u8 AttrEncode)
{
    u8 DrpEncode;

    switch (AttrEncode) {
    case 1:
        DrpEncode = 0;
        break;
    case 2:
        DrpEncode = 1;
        break;
    case 4:
        DrpEncode = 2;
        break;
    case 8:
        DrpEncode = 3;
        break;
    case 16:
        DrpEncode = 4;
        break;
    case 32:
        DrpEncode = 5;
        break;
    default:
        DrpEncode = 0x4;
        break;
    }

    return DrpEncode;
}
/*****************************************************************************/
/**
* This function will translate the configured CPLL's D values to DRP encoding.
*
* @param    AttrEncode is the attribute to encode.
*
* @return   The DRP encoding for the CPLL's D value.
*
* @note     None.
*
******************************************************************************/
This function will translate the configured CPLL's D values to DRP encoding.
This function will translate the configured CPLL ' s D values to DRP encoding .
static u8 XHdmiphy1_DrpEncodeCpllTxRxD(u8 AttrEncode)
{
    u8 DrpEncode;
    switch (AttrEncode) {
    case 1:
        DrpEncode = 0;
        break;
    case 2:
        DrpEncode = 1;
        break;
    case 4:
        DrpEncode = 2;
        break;
    case 8:
        DrpEncode = 3;
        break;
    case 16:
        DrpEncode = 4;
        break;
    case 32:
        DrpEncode = 5;
        break;
    default:
        DrpEncode = 0x4;
        break;
    }
    return DrpEncode;
}
static u8 XHdmiphy1_DrpEncodeCpllTxRxD ( u8 AttrEncode ) { u8 DrpEncode ; switch ( AttrEncode ) { case 1 : DrpEncode = 0 ; break ; case 2 : DrpEncode = 1 ; break ; case 4 : DrpEncode = 2 ; break ; case 8 : DrpEncode = 3 ; break ; case 16 : DrpEncode = 4 ; break ; case 32 : DrpEncode = 5 ; break ; default : DrpEncode = 0x4 ; break ; } return DrpEncode ; }
This function will translate the configured CPLL's D values to DRP encoding.
This function will translate the configured CPLL ' s D values to DRP encoding .