40 #ifndef ENET_MOD_PHY_H_ 41 #define ENET_MOD_PHY_H_ 60 #define ENET_PHY_PUBLIC_IOCTL(x) (ENET_IOCTL_TYPE_PUBLIC | \ 61 ENET_IOCTL_PHY_BASE | \ 205 typedef struct EnetPhy_GenericInArgs_s
214 typedef struct EnetPhy_ReadRegInArgs_s
226 typedef struct EnetPhy_WriteRegInArgs_s
241 typedef struct EnetPhy_C45ReadRegInArgs_s
256 typedef struct EnetPhy_C45WriteRegInArgs_s
uint16_t val
Definition: enet_mod_phy.h:268
Enet_MacPort macPort
Definition: enet_mod_phy.h:229
Input args for ENET_PHY_IOCTL_WRITE_EXT_REG command.
Definition: enet_mod_phy.h:226
Check state-machine link state, that is, whether the state machine has reached the LINKED state.
Definition: enet_mod_phy.h:117
Check PHY alive status.
Definition: enet_mod_phy.h:107
Enet_MacPort macPort
Definition: enet_mod_phy.h:259
Print PHY registers.
Definition: enet_mod_phy.h:199
uint16_t reg
Definition: enet_mod_phy.h:220
uint16_t reg
Definition: enet_mod_phy.h:232
#define ENET_PHY_PUBLIC_IOCTL(x)
Helper macro to create PHY IOCTL commands.
Definition: enet_mod_phy.h:60
Input args for ENET_PHY_IOCTL_C45_WRITE_REG command.
Definition: enet_mod_phy.h:256
Get PHY identification.
Definition: enet_mod_phy.h:80
Read PHY extended register.
Definition: enet_mod_phy.h:163
Write PHY register.
Definition: enet_mod_phy.h:154
uint8_t mmd
Definition: enet_mod_phy.h:247
uint16_t val
Definition: enet_mod_phy.h:235
uint16_t reg
Definition: enet_mod_phy.h:265
Enet_MacPort macPort
Definition: enet_mod_phy.h:217
Generic input args.
Definition: enet_mod_phy.h:205
uint8_t mmd
Definition: enet_mod_phy.h:262
Input args for ENET_PHY_IOCTL_C45_READ_REG command.
Definition: enet_mod_phy.h:241
EnetPhy_Ioctl_e
PHY IOCTL commands.
Definition: enet_mod_phy.h:71
Write PHY extended register.
Definition: enet_mod_phy.h:172
Read PHY register using Clause-45 frame.
Definition: enet_mod_phy.h:181
Get the link speed and duplexity state after the state machine has reached the LINKED state.
Definition: enet_mod_phy.h:127
Enet_MacPort
MAC port.
Definition: enet_types.h:402
Read PHY register.
Definition: enet_mod_phy.h:145
Get PHY supported modes by local PHY device.
Definition: enet_mod_phy.h:89
Reset PHY.
Definition: enet_mod_phy.h:136
uint16_t reg
Definition: enet_mod_phy.h:250
Check if PHY is in loopback or not.
Definition: enet_mod_phy.h:98
This file contains the type definitions and helper macros for the Enet Module interface.
Write PHY register using Clause-45 frame.
Definition: enet_mod_phy.h:190
Input args for ENET_PHY_IOCTL_READ_EXT_REG command.
Definition: enet_mod_phy.h:214
Enet_MacPort macPort
Definition: enet_mod_phy.h:244
Enet_MacPort macPort
Definition: enet_mod_phy.h:208
This file contains the type definitions and helper macros for the Ethernet PHY interface.