AM263Px MCU+ SDK: CPSW Statistics

| AM263Px MCU+ SDK 26.00.00 |

Data Structures | Macros
CPSW Statistics
APIs for Networking modules » APIs for Enet LLD » Enet Statistics

## Introduction

The CPSW statistics module implements only the IOCTLs defined in the generic Enet Statistics API. There are no additional CPSW-specific IOCTLs.

The statistics structures are CPSW specific and may vary depending on the CPSW instance:

- CPSW_2G statistics:
  - Host port: CpswStats_HostPort_2g
  - MAC port: CpswStats_MacPort_2g
- CPSW_5G or CPSW9G statistics:
  - Host port: CpswStats_HostPort_Ng
  - MAC ports: CpswStats_MacPort_Ng

Interrupts:

- CPSW_STATS_PEND - CPSW half-rollover statistics interrupt. Peripheral driver must call CPSW_STATS_IOCTL_SYNC command to handle the interrupt which reads and decrements all statistics values, including the one(s) that had reached the half-rollover condition.

## Data Structures
struct | CpswStats_HostPort_2g
| CPSW 2G host port statistics. More...
struct | CpswStats_MacPort_2g
| CPSW 2G MAC port statistics. More...
struct | CpswStats_HostPort_Ng
| CPSW 5G or 9G host port statistics. More...
struct | CpswStats_MacPort_Ng
| CPSW 5G or 9G MAC port statistics. More...
struct | CpswStats_PortStats
| CPSW nG port statistics. More...

## Macros
#define | CPSW_STATS_BLOCK_ELEM_NUM (128U)
| Number of elements in a statistics block. More...

## Macro Definition Documentation

## ◆ CPSW_STATS_BLOCK_ELEM_NUM

#define CPSW_STATS_BLOCK_ELEM_NUM (128U)

Number of elements in a statistics block.