|
AM263Px MCU+ SDK
10.00.00
|
|
Go to the documentation of this file.
71 #define ETHPHY_CMD_ENABLE_MII (0U)
75 #define ETHPHY_CMD_SOFT_RESTART (1U)
77 #define ETHPHY_CMD_ENABLE_AUTO_MDIX (2U)
81 #define ETHPHY_CMD_VERIFY_IDENTIFIER_REGISTER (3U)
83 #define ETHPHY_CMD_DISABLE_1000M_ADVERTISEMENT (4U)
89 #define ETHPHY_CMD_ENABLE_FAST_LINK_DOWN_DETECTION (5U)
95 #define ETHPHY_CMD_CONFIGURE_LED_SOURCE (6U)
101 #define ETHPHY_CMD_CONFIGURE_LED_BLINK_RATE (7U)
103 #define ETHPHY_CMD_ENABLE_EXTENDED_FD_ABILITY (8U)
105 #define ETHPHY_CMD_ENABLE_ODD_NIBBLE_DETECTION (9U)
107 #define ETHPHY_CMD_ENABLE_ENHANCED_IPG_DETECTION (10U)
109 #define ETHPHY_CMD_GET_LINK_STATUS (11U)
114 #define ETHPHY_CMD_GET_SPEED_AND_DUPLEX_CONFIG (12U)
119 #define ETHPHY_CMD_SET_SPEED_AND_DUPLEX_CONFIG (13U)
121 #define ETHPHY_CMD_ENABLE_LOW_LATENCY_10M_100M_RGMII (14U)
127 #define ETHPHY_CMD_SET_RX_HALF_FULL_THRESHOLD_RGMII (15U)
133 #define ETHPHY_CMD_SET_TX_HALF_FULL_THRESHOLD_RGMII (16U)
140 #define ETHPHY_CMD_GET_AUTONEG_COMPLETE_STATUS (17U)
147 #define ETHPHY_CMD_GET_LINK_PARTNER_AUTONEG_ABILITY (18U)
149 #define ETHPHY_CMD_ENABLE_IEEE_POWER_DOWN (19U)
151 #define ETHPHY_CMD_DISABLE_IEEE_POWER_DOWN (20U)
162 #define ETHPHY_SPEED_DUPLEX_CONFIG_AUTONEG (0U)
163 #define ETHPHY_SPEED_DUPLEX_CONFIG_10FD (1U)
164 #define ETHPHY_SPEED_DUPLEX_CONFIG_100FD (2U)
165 #define ETHPHY_SPEED_DUPLEX_CONFIG_1000FD (3U)
166 #define ETHPHY_SPEED_DUPLEX_CONFIG_10HD (4U)
167 #define ETHPHY_SPEED_DUPLEX_CONFIG_100HD (5U)
168 #define ETHPHY_SPEED_DUPLEX_CONFIG_1000HD (6U)
169 #define ETHPHY_SPEED_DUPLEX_CONFIG_INVALID (7U)
238 typedef struct ETHPHY_Params_s
246 typedef struct ETHPHY_Fxns_s
257 typedef struct ETHPHY_Attrs_s
267 typedef struct ETHPHY_Config_s
279 typedef struct ETHPHY_SpeedDuplexConfig_s
struct ETHPHY_Params_s ETHPHY_Params
Forward declaration of ETHPHY_Params.
Definition: ethphy.h:177
uint32_t phyAddress
Definition: ethphy.h:260
const ETHPHY_Attrs * ETHPHY_getAttrs(uint32_t instanceId)
Return ETHPHY attributes.
Data structure to be passed/returned when calling ETHPHY_command with ETHPHY_CMD_GET_SPEED_AND_DUPLEX...
Definition: ethphy.h:280
int32_t(* ETHPHY_OpenFxn)(ETHPHY_Config *config, const ETHPHY_Params *params)
Driver implementation to open a specific ETHPHY driver.
Definition: ethphy.h:196
ETHPHY_Attrs * attrs
Definition: ethphy.h:269
uint32_t mdioBaseAddress
Definition: ethphy.h:259
Parameters passed during ETHPHY_open()
Definition: ethphy.h:239
void * object
Definition: ethphy.h:271
uint32_t config
Definition: ethphy.h:281
void ETHPHY_close(ETHPHY_Handle handle)
Close ETHPHY driver.
ETHPHY_CommandFxn commandFxn
Definition: ethphy.h:250
ETHPHY_CloseFxn closeFxn
Definition: ethphy.h:249
int32_t(* ETHPHY_CommandFxn)(ETHPHY_Config *config, uint32_t command, void *data, uint32_t dataSize)
Driver implementation to send command to the ETHPHY using specific ETHPHY driver.
Definition: ethphy.h:224
void ETHPHY_Params_init(ETHPHY_Params *params)
Set default parameters in the ETHPHY_Params structure.
ETHPHY device attributes. These are filled by SysCfg based on the PHY device that is selected.
Definition: ethphy.h:258
ETHPHY Driver implementation callbacks.
Definition: ethphy.h:247
ETHPHY driver configuration. These are filled by SysCfg based on the PHY device that is selected.
Definition: ethphy.h:268
struct ETHPHY_Config_s ETHPHY_Config
Forward declaration of ETHPHY_Config.
Definition: ethphy.h:175
ETHPHY_OpenFxn openFxn
Definition: ethphy.h:248
ETHPHY_Handle ETHPHY_open(uint32_t instanceId, const ETHPHY_Params *params)
Open ETHPHY driver.
ETHPHY_Fxns * fxns
Definition: ethphy.h:270
int32_t ETHPHY_command(ETHPHY_Handle handle, uint32_t command, void *data, uint32_t dataSize)
Send a command to the ETHPHY.
void * ETHPHY_Handle
Handle to the ETHPHY driver returned by ETHPHY_open()
Definition: ethphy.h:173
uint32_t reserved
Definition: ethphy.h:240
void(* ETHPHY_CloseFxn)(ETHPHY_Config *config)
Driver implementation to close a specific ETHPHY driver.
Definition: ethphy.h:208