/* Enable or disable DMA Tx descriptor add CRC.  */
int32_t ETH_DMA_TxDescCrcCmd(stc_eth_dma_desc_t *pstcTxDesc, en_functional_state_t enNewState)
/* Enable or disable DMA Tx descriptor add CRC.  */
int32_t ETH_DMA_TxDescCrcCmd(stc_eth_dma_desc_t *pstcTxDesc, en_functional_state_t enNewState)
{
    int32_t i32Ret = LL_OK;
    if (NULL == pstcTxDesc) {
        i32Ret = LL_ERR_INVD_PARAM;
    } else {
        DDL_ASSERT(IS_FUNCTIONAL_STATE(enNewState));
        if (DISABLE != enNewState) {
            CLR_REG32_BIT(pstcTxDesc->u32ControlStatus, ETH_DMA_TXDESC_DCRC);
        } else {
            SET_REG32_BIT(pstcTxDesc->u32ControlStatus, ETH_DMA_TXDESC_DCRC);
        }
    }
    return i32Ret;
}