/* Enables or disables the DMA Rx Desc end of ring.  */
void ETH_EnableDmaRxDescEndOfRing(ETH_DMADescType *DMARxDesc, FunctionalState Cmd)
/* Enables or disables the DMA Rx Desc end of ring.  */
void ETH_EnableDmaRxDescEndOfRing(ETH_DMADescType *DMARxDesc, FunctionalState Cmd)
{
    assert_param(IS_FUNCTIONAL_STATE(Cmd));
    if (Cmd != DISABLE)
    {
        DMARxDesc->CtrlOrBufSize |= ETH_DMA_RX_DESC_RER;
    }
    else
    {
        DMARxDesc->CtrlOrBufSize &= (~(uint32_t)ETH_DMA_RX_DESC_RER);
    }
}