Hi Folks,
I have the ADTJA1101-RMII board, attached to the S32K148EVB-Q176. I'm trying to see how well this ethernet board performs, and to do that, I need to discover what errors are being discovered by the chip.
I see in the SDK that there is a list of statistics being gathered, but I have no clue what they are - is there documentation about the 'enet_counter_t' enums? This set is found in enet_driver.h.
Many thanks in advance.
Cheers, Peter
Hi Peter,
There is this
uint32_t ENET_DRV_GetCounter(uint8_t instance, enet_counter_t counter)
function defined in enet_drive.c.
It takes an enet_counter_t number as an argument.
The enum is basically a list of numbers that represents ENET registers.
The function then returns the requested number from the corresponding ENET register.
For example, ENET_CTR_RMON_T_PACKETS which is 1 in the enum.
S32K1xx RM rev.12.1, Section 57.5.34 Tx Packet Count Statistic Register (ENET_RMON_T_PACKETS).
Regards,
Daniel
Thanks Daniel,
But that doesn't tell me what all of those enums actually mean, nor what they are measuring.
Cheers, Peter
Hi Peter,
As you can see below, it is a list of ENET statistics counters.
RFC 2819 - Remote Network Monitoring Management Information Base
S32K1xx RM, Section 57.5 Memory map/register definition
BR, Daniel
Brilliant. That was the answer I was looking for. The header should have referred to RFC2819, and saved a lot of grief.
Cheers!