/* Convert the D-PHY PLL CN to the value could be set to register.  */
static uint8_t DSI_EncodeDphyPllCn(uint8_t cn)
/* Convert the D-PHY PLL CN to the value could be set to register.  */
static uint8_t DSI_EncodeDphyPllCn(uint8_t cn)
{
    assert((cn >= 1U) && (cn <= 32U));
    if (1U == cn)
    {
        return 0x1FU;
    }
    else
    {
        return (uint8_t)((0x65BD44E0UL >> ((uint32_t)cn - 2U)) & 0x1FU);
    }
}