/* param base ENET peripheral base address. param statistics The statistics structure pointer.  */
void ENET_GetStatistics(ENET_Type *base, enet_transfer_stats_t *statistics)
/* param base ENET peripheral base address. param statistics The statistics structure pointer.  */
void ENET_GetStatistics(ENET_Type *base, enet_transfer_stats_t *statistics)
{
    statistics->statsRxFrameCount      = base->RMON_R_PACKETS;
    statistics->statsRxFrameOk         = base->IEEE_R_FRAME_OK;
    statistics->statsRxCrcErr          = base->IEEE_R_CRC;
    statistics->statsRxAlignErr        = base->IEEE_R_ALIGN;
    statistics->statsRxDropInvalidSFD  = base->IEEE_R_DROP;
    statistics->statsRxFifoOverflowErr = base->IEEE_R_MACERR;
    statistics->statsTxFrameCount      = base->RMON_T_PACKETS;
    statistics->statsTxFrameOk         = base->IEEE_T_FRAME_OK;
    statistics->statsTxCrcAlignErr     = base->RMON_T_CRC_ALIGN;
    statistics->statsTxFifoUnderRunErr = base->IEEE_T_MACERR;
}