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

Loading...
Searching...
No Matches
Macros
Ethernet MAC Configuration
Ethernet Interface » Ethernet MAC Interface » 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

## ◆ ARM_ETH_MAC_SPEED_10M

#define ARM_ETH_MAC_SPEED_10M (ARM_ETH_SPEED_10M << ARM_ETH_MAC_SPEED_Pos)

10 Mbps link speed

## ◆ ARM_ETH_MAC_SPEED_100M

#define ARM_ETH_MAC_SPEED_100M (ARM_ETH_SPEED_100M << ARM_ETH_MAC_SPEED_Pos)

100 Mbps link speed

## ◆ ARM_ETH_MAC_SPEED_1G

#define ARM_ETH_MAC_SPEED_1G (ARM_ETH_SPEED_1G << ARM_ETH_MAC_SPEED_Pos)

1 Gpbs link speed

## ◆ ARM_ETH_MAC_DUPLEX_HALF

#define ARM_ETH_MAC_DUPLEX_HALF (ARM_ETH_DUPLEX_HALF << ARM_ETH_MAC_DUPLEX_Pos)

Half duplex link.

## ◆ ARM_ETH_MAC_DUPLEX_FULL

#define ARM_ETH_MAC_DUPLEX_FULL (ARM_ETH_DUPLEX_FULL << ARM_ETH_MAC_DUPLEX_Pos)

Full duplex link.

## ◆ ARM_ETH_MAC_LOOPBACK

#define ARM_ETH_MAC_LOOPBACK (1UL << 4)

Loop-back test mode.

## ◆ ARM_ETH_MAC_CHECKSUM_OFFLOAD_RX

#define ARM_ETH_MAC_CHECKSUM_OFFLOAD_RX (1UL << 5)

Receiver Checksum offload.

## ◆ ARM_ETH_MAC_CHECKSUM_OFFLOAD_TX

#define ARM_ETH_MAC_CHECKSUM_OFFLOAD_TX (1UL << 6)

Transmitter Checksum offload.

## ◆ ARM_ETH_MAC_ADDRESS_BROADCAST

#define ARM_ETH_MAC_ADDRESS_BROADCAST (1UL << 7)

Accept frames with Broadcast address.

## ◆ ARM_ETH_MAC_ADDRESS_MULTICAST

#define ARM_ETH_MAC_ADDRESS_MULTICAST (1UL << 8)

Accept frames with any Multicast address.

## ◆ ARM_ETH_MAC_ADDRESS_ALL

#define ARM_ETH_MAC_ADDRESS_ALL (1UL << 9)

Accept frames with any address (Promiscuous Mode)