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

Loading...
Searching...
No Matches
Data Structures | Macros | Typedefs
Driver_ETH_PHY.h File Reference

## Data Structures
struct | ARM_DRIVER_ETH_PHY
| Access structure of the Ethernet PHY Driver. More...

## Macros
#define | ARM_ETH_PHY_API_VERSION ARM_DRIVER_VERSION_MAJOR_MINOR(2,2) /* API version */
#define | _ARM_Driver_ETH_PHY_(n) Driver_ETH_PHY##n
#define | ARM_Driver_ETH_PHY_(n) _ARM_Driver_ETH_PHY_(n)
#define | ARM_ETH_PHY_SPEED_Pos 0
#define | ARM_ETH_PHY_SPEED_Msk (3UL << ARM_ETH_PHY_SPEED_Pos)
#define | ARM_ETH_PHY_SPEED_10M (ARM_ETH_SPEED_10M << ARM_ETH_PHY_SPEED_Pos)
| 10 Mbps link speed
#define | ARM_ETH_PHY_SPEED_100M (ARM_ETH_SPEED_100M << ARM_ETH_PHY_SPEED_Pos)
| 100 Mbps link speed
#define | ARM_ETH_PHY_SPEED_1G (ARM_ETH_SPEED_1G << ARM_ETH_PHY_SPEED_Pos)
| 1 Gpbs link speed
#define | ARM_ETH_PHY_DUPLEX_Pos 2
#define | ARM_ETH_PHY_DUPLEX_Msk (1UL << ARM_ETH_PHY_DUPLEX_Pos)
#define | ARM_ETH_PHY_DUPLEX_HALF (ARM_ETH_DUPLEX_HALF << ARM_ETH_PHY_DUPLEX_Pos)
| Half duplex link.
#define | ARM_ETH_PHY_DUPLEX_FULL (ARM_ETH_DUPLEX_FULL << ARM_ETH_PHY_DUPLEX_Pos)
| Full duplex link.
#define | ARM_ETH_PHY_AUTO_NEGOTIATE (1UL << 3)
| Auto Negotiation mode.
#define | ARM_ETH_PHY_LOOPBACK (1UL << 4)
| Loop-back test mode.
#define | ARM_ETH_PHY_ISOLATE (1UL << 5)
| Isolate PHY from MII/RMII interface.

## Typedefs
typedef int32_t(* | ARM_ETH_PHY_Read_t) (uint8_t phy_addr, uint8_t reg_addr, uint16_t *data)
| Pointer to ARM_ETH_MAC_PHY_Read : Read Ethernet PHY Register.
typedef int32_t(* | ARM_ETH_PHY_Write_t) (uint8_t phy_addr, uint8_t reg_addr, uint16_t data)
| Pointer to ARM_ETH_MAC_PHY_Write : Write Ethernet PHY Register.

## Macro Definition Documentation

## ◆ ARM_ETH_PHY_API_VERSION

#define ARM_ETH_PHY_API_VERSION ARM_DRIVER_VERSION_MAJOR_MINOR(2,2) /* API version */

## ◆ _ARM_Driver_ETH_PHY_

#define _ARM_Driver_ETH_PHY_ | ( |  | n | ) | Driver_ETH_PHY##n

## ◆ ARM_Driver_ETH_PHY_

#define ARM_Driver_ETH_PHY_ | ( |  | n | ) | _ARM_Driver_ETH_PHY_(n)

## ◆ ARM_ETH_PHY_SPEED_Pos

#define ARM_ETH_PHY_SPEED_Pos 0

## ◆ ARM_ETH_PHY_SPEED_Msk

#define ARM_ETH_PHY_SPEED_Msk (3UL << ARM_ETH_PHY_SPEED_Pos)

## ◆ ARM_ETH_PHY_DUPLEX_Pos

#define ARM_ETH_PHY_DUPLEX_Pos 2

## ◆ ARM_ETH_PHY_DUPLEX_Msk

#define ARM_ETH_PHY_DUPLEX_Msk (1UL << ARM_ETH_PHY_DUPLEX_Pos)