AM263Px MCU+ SDK: Enet Statistics

| AM263Px MCU+ SDK 26.00.00 |

Sub Modules | Enumerations | Macros
Enet Statistics
APIs for Networking modules » APIs for Enet LLD

## Introduction

## Sub Modules
| CPSW Statistics
| ICSSG Statistics

## Enumerations
enum | EnetStats_Ioctl { ENET_STATS_IOCTL_GET_VERSION = ENET_STATS_PUBLIC_IOCTL(0U), ENET_STATS_IOCTL_PRINT_REGS = ENET_STATS_PUBLIC_IOCTL(1U), ENET_STATS_IOCTL_GET_HOSTPORT_STATS = ENET_STATS_PUBLIC_IOCTL(2U), ENET_STATS_IOCTL_GET_MACPORT_STATS = ENET_STATS_PUBLIC_IOCTL(3U), ENET_STATS_IOCTL_RESET_HOSTPORT_STATS = ENET_STATS_PUBLIC_IOCTL(4U), ENET_STATS_IOCTL_RESET_MACPORT_STATS = ENET_STATS_PUBLIC_IOCTL(5U) }
| Statistics IOCTL commands. More...

## Macros
#define | ENET_STATS_PUBLIC_IOCTL(x)
| Helper macro to create IOCTL commands for STATS module. More...

## Macro Definition Documentation

## ◆ ENET_STATS_PUBLIC_IOCTL

#define ENET_STATS_PUBLIC_IOCTL | ( |  | x | ) |

Value:
(ENET_IOCTL_TYPE_PUBLIC | \
ENET_IOCTL_STATS_BASE | \
ENET_IOCTL_MIN(x))

Helper macro to create IOCTL commands for STATS module.

## Enumeration Type Documentation

## ◆ EnetStats_Ioctl

enum EnetStats_Ioctl

Statistics IOCTL commands.

Enumerator
ENET_STATS_IOCTL_GET_VERSION | Get the hardware version of the Stats module. IOCTL parameters: inArgs: None outArgs: Enet_Version
ENET_STATS_IOCTL_PRINT_REGS | Print Stats registers. IOCTL parameters: inArgs: None outArgs: None
ENET_STATS_IOCTL_GET_HOSTPORT_STATS | Get host port statistics. Gets the network statistics of the host port. It's caller's responsibility to typecast the returned statistics structure according to the underlying peripheral's definition. Use this IOCTL if the statistics module doesn't support separate host port and MAC port statistics. IOCTL parameters: inArgs: None outArgs: Peripheral/module specific definition.
ENET_STATS_IOCTL_GET_MACPORT_STATS | Get MAC port statistics. Gets the network statistics of the given MAC port number. It's caller's responsibility to typecast the returned statistics structure according to the underlying peripheral's definition. For ICSSG MAC mode usecase, port number can't be other than ENET_MAC_PORT_1, as each ICSSG MAC supports only one MAC port. IOCTL parameters: inArgs: Enet_MacPort outArgs: Peripheral/module specific definition.
ENET_STATS_IOCTL_RESET_HOSTPORT_STATS | Reset host port statistics. Resets the network statistics counters of the host port. Use this IOCTL if the statistics module doesn't support separate host port and MAC port statistics. IOCTL parameters: inArgs: None outArgs: None
ENET_STATS_IOCTL_RESET_MACPORT_STATS | Reset MAC port statistics. Resets the network statistics counters of the given MAC port number. For ICSSG MAC mode usecase, port number can't be other than ENET_MAC_PORT_1, as each ICSSG MAC supports only one MAC port. IOCTL parameters: inArgs: Enet_MacPort outArgs: None

ENET_IOCTL_TYPE_PUBLIC
@ ENET_IOCTL_TYPE_PUBLIC
Definition: enet_ioctl.h:216