| CMSIS-Driver Version 2.02 Peripheral Interface for Middleware and Application Code

- CMSIS
- CORE
- Driver
- DSP
- RTOS API
- Pack
- SVD

- Main Page
- Usage and Description
- Reference

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
Ethernet MAC Configuration
Ethernet MAC Control Codes

Specifies speed mode, link mode, checksum, and frame filtering modes. More...

## Macros
#define | ARM_ETH_MAC_SPEED_10M (ARM_ETH_SPEED_10M << ARM_ETH_MAC_SPEED_Pos)
| 10 Mbps link speed
#define | ARM_ETH_MAC_SPEED_100M (ARM_ETH_SPEED_100M << ARM_ETH_MAC_SPEED_Pos)
| 100 Mbps link speed
#define | ARM_ETH_MAC_SPEED_1G (ARM_ETH_SPEED_1G << ARM_ETH_MAC_SPEED_Pos)
| 1 Gpbs link speed
#define | ARM_ETH_MAC_DUPLEX_HALF (ARM_ETH_DUPLEX_HALF << ARM_ETH_MAC_DUPLEX_Pos)
| Half duplex link.
#define | ARM_ETH_MAC_DUPLEX_FULL (ARM_ETH_DUPLEX_FULL << ARM_ETH_MAC_DUPLEX_Pos)
| Full duplex link.
#define | ARM_ETH_MAC_LOOPBACK (1UL << 4)
| Loop-back test mode.
#define | ARM_ETH_MAC_CHECKSUM_OFFLOAD_RX (1UL << 5)
| Receiver Checksum offload.
#define | ARM_ETH_MAC_CHECKSUM_OFFLOAD_TX (1UL << 6)
| Transmitter Checksum offload.
#define | ARM_ETH_MAC_ADDRESS_BROADCAST (1UL << 7)
| Accept frames with Broadcast address.
#define | ARM_ETH_MAC_ADDRESS_MULTICAST (1UL << 8)
| Accept frames with any Multicast address.
#define | ARM_ETH_MAC_ADDRESS_ALL (1UL << 9)
| Accept frames with any address (Promiscuous Mode)

## Description

Specifies speed mode, link mode, checksum, and frame filtering modes.

The function ARM_ETH_MAC_Control with control = ARM_ETH_MAC_CONFIGURE configures the Ethernet MAC interface as specified with arg listed bellow.

## Macro Definition Documentation

#define ARM_ETH_MAC_ADDRESS_ALL (1UL << 9)

Accept frames with any address (Promiscuous Mode)

#define ARM_ETH_MAC_ADDRESS_BROADCAST (1UL << 7)

Accept frames with Broadcast address.

#define ARM_ETH_MAC_ADDRESS_MULTICAST (1UL << 8)

Accept frames with any Multicast address.

#define ARM_ETH_MAC_CHECKSUM_OFFLOAD_RX (1UL << 5)

Receiver Checksum offload.

#define ARM_ETH_MAC_CHECKSUM_OFFLOAD_TX (1UL << 6)

Transmitter Checksum offload.

#define ARM_ETH_MAC_DUPLEX_FULL (ARM_ETH_DUPLEX_FULL << ARM_ETH_MAC_DUPLEX_Pos)

Full duplex link.

#define ARM_ETH_MAC_DUPLEX_HALF (ARM_ETH_DUPLEX_HALF << ARM_ETH_MAC_DUPLEX_Pos)

Half duplex link.

#define ARM_ETH_MAC_LOOPBACK (1UL << 4)

Loop-back test mode.

#define ARM_ETH_MAC_SPEED_100M (ARM_ETH_SPEED_100M << ARM_ETH_MAC_SPEED_Pos)

100 Mbps link speed

#define ARM_ETH_MAC_SPEED_10M (ARM_ETH_SPEED_10M << ARM_ETH_MAC_SPEED_Pos)

10 Mbps link speed

#define ARM_ETH_MAC_SPEED_1G (ARM_ETH_SPEED_1G << ARM_ETH_MAC_SPEED_Pos)

1 Gpbs link speed