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

    switch (AttrEncode) {
    case 16:
        DrpEncode = 2;
        break;
    case 20:
        DrpEncode = 3;
        break;
    case 32:
        DrpEncode = 4;
        break;
    case 40:
        DrpEncode = 5;
        break;
    case 64:
        DrpEncode = 6;
        break;
    case 80:
        DrpEncode = 7;
        break;
    case 128:
        DrpEncode = 8;
        break;
    case 160:
        DrpEncode = 9;
        break;
    default:
        DrpEncode = 0xF;
        break;
    }

    return DrpEncode;
}
/*****************************************************************************/
/**
* This function will translate the configured RXDATAWIDTH to DRP encoding.
*
* @param    AttrEncode is the attribute to encode.
*
* @return   The DRP encoding for the RXDATAWIDTH value.
*
* @note     None.
*
******************************************************************************/
This function will translate the configured RXDATAWIDTH to DRP encoding.
This function will translate the configured RXDATAWIDTH to DRP encoding .
static u8 XHdmiphy1_DrpEncodeDataWidth(u8 AttrEncode)
{
    u8 DrpEncode;
    switch (AttrEncode) {
    case 16:
        DrpEncode = 2;
        break;
    case 20:
        DrpEncode = 3;
        break;
    case 32:
        DrpEncode = 4;
        break;
    case 40:
        DrpEncode = 5;
        break;
    case 64:
        DrpEncode = 6;
        break;
    case 80:
        DrpEncode = 7;
        break;
    case 128:
        DrpEncode = 8;
        break;
    case 160:
        DrpEncode = 9;
        break;
    default:
        DrpEncode = 0xF;
        break;
    }
    return DrpEncode;
}
static u8 XHdmiphy1_DrpEncodeDataWidth ( u8 AttrEncode ) { u8 DrpEncode ; switch ( AttrEncode ) { case 16 : DrpEncode = 2 ; break ; case 20 : DrpEncode = 3 ; break ; case 32 : DrpEncode = 4 ; break ; case 40 : DrpEncode = 5 ; break ; case 64 : DrpEncode = 6 ; break ; case 80 : DrpEncode = 7 ; break ; case 128 : DrpEncode = 8 ; break ; case 160 : DrpEncode = 9 ; break ; default : DrpEncode = 0xF ; break ; } return DrpEncode ; }
This function will translate the configured RXDATAWIDTH to DRP encoding.
This function will translate the configured RXDATAWIDTH to DRP encoding .