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

    switch (AttrEncode) {
    case 1:
        DrpEncode = 16;
        break;
    case 6:
        DrpEncode = 5;
        break;
    case 10:
        DrpEncode = 7;
        break;
    case 12:
        DrpEncode = 13;
        break;
    case 20:
        DrpEncode = 15;
        break;
    case 2:
    case 3:
    case 4:
    case 5:
    case 8:
    case 16:
        DrpEncode = (AttrEncode - 2);
        break;
    default:
        DrpEncode = 0xF;
        break;
    }

    return DrpEncode;
}
/*****************************************************************************/
/**
* This function will translate the configured QPLL's M or CPLL's M or N2
* values to DRP encoding.
*
* @param    AttrEncode is the attribute to encode.
*
* @return   The DRP encoding for the QPLL's M or CPLL's M or N2 values.
*
* @note     None.
*
******************************************************************************/
This function will translate the configured QPLL's M or CPLL's M or N2
values to DRP encoding.
This function will translate the configured QPLL ' s M or CPLL ' s M or N2 values to DRP encoding .
static u8 XHdmiphy1_DrpEncodeQpllMCpllMN2(u8 AttrEncode)
{
    u8 DrpEncode;
    switch (AttrEncode) {
    case 1:
        DrpEncode = 16;
        break;
    case 6:
        DrpEncode = 5;
        break;
    case 10:
        DrpEncode = 7;
        break;
    case 12:
        DrpEncode = 13;
        break;
    case 20:
        DrpEncode = 15;
        break;
    case 2:
    case 3:
    case 4:
    case 5:
    case 8:
    case 16:
        DrpEncode = (AttrEncode - 2);
        break;
    default:
        DrpEncode = 0xF;
        break;
    }
    return DrpEncode;
}
static u8 XHdmiphy1_DrpEncodeQpllMCpllMN2 ( u8 AttrEncode ) { u8 DrpEncode ; switch ( AttrEncode ) { case 1 : DrpEncode = 16 ; break ; case 6 : DrpEncode = 5 ; break ; case 10 : DrpEncode = 7 ; break ; case 12 : DrpEncode = 13 ; break ; case 20 : DrpEncode = 15 ; break ; case 2 : case 3 : case 4 : case 5 : case 8 : case 16 : DrpEncode = ( AttrEncode - 2 ) ; break ; default : DrpEncode = 0xF ; break ; } return DrpEncode ; }
This function will translate the configured QPLL's M or CPLL's M or N2
values to DRP encoding.
This function will translate the configured QPLL ' s M or CPLL ' s M or N2 values to DRP encoding .