/* param base ENET_QOS peripheral base address. param statistics The statistics structure pointer.  */
void ENET_QOS_GetStatistics(ENET_QOS_Type *base, enet_qos_transfer_stats_t *statistics)
/* param base ENET_QOS peripheral base address. param statistics The statistics structure pointer.  */
void ENET_QOS_GetStatistics(ENET_QOS_Type *base, enet_qos_transfer_stats_t *statistics)
{
    statistics->statsRxFrameCount      = base->MAC_RX_PACKETS_COUNT_GOOD_BAD;
    statistics->statsRxCrcErr          = base->MAC_RX_CRC_ERROR_PACKETS;
    statistics->statsRxAlignErr        = base->MAC_RX_ALIGNMENT_ERROR_PACKETS;
    statistics->statsRxLengthErr       = base->MAC_RX_LENGTH_ERROR_PACKETS;
    statistics->statsRxFifoOverflowErr = base->MAC_RX_FIFO_OVERFLOW_PACKETS;
    statistics->statsTxFrameCount      = base->MAC_TX_PACKET_COUNT_GOOD_BAD;
    statistics->statsTxFifoUnderRunErr = base->MAC_TX_UNDERFLOW_ERROR_PACKETS;
}