Go to the source code of this file.
Data Structures | |
struct | ETHPHY_Params |
Parameters passed during ETHPHY_open() More... | |
struct | ETHPHY_Fxns |
ETHPHY Driver implementation callbacks. More... | |
struct | ETHPHY_Attrs |
ETHPHY device attributes. These are filled by SysCfg based on the PHY device that is selected. More... | |
struct | ETHPHY_Config |
ETHPHY driver configuration. These are filled by SysCfg based on the PHY device that is selected. More... | |
struct | ETHPHY_SpeedDuplexityConfig |
Data structure to be passed/returned when calling ETHPHY_command with ETHPHY_CMD_GET_SPEED_AND_DUPLEXITY or ETHPHY_CMD_SET_SPEED_AND_DUPLEXITY More... | |
Macros | |
ETHPHY Commands | |
#define | ETHPHY_CMD_ENABLE_MII (0U) |
Command to configure the PHY in MII mode. More... | |
#define | ETHPHY_CMD_SOFT_RESTART (1U) |
Command for Soft Restart. It restarts the PHY without affecting registers. More... | |
#define | ETHPHY_CMD_ENABLE_AUTO_MDIX (2U) |
Command to enable Auto MDI-X (Automatic Crossover) More... | |
#define | ETHPHY_CMD_VERIFY_IDENTIFIER_REGISTER (3U) |
Command to verify the PHY Identifier Register. It checks if the PHYIDR1 register has the expected value. More... | |
#define | ETHPHY_CMD_DISABLE_1000M_ADVERTISEMENT (4U) |
Command to disable 1000M ability advertisement More... | |
#define | ETHPHY_CMD_ENABLE_FAST_LINK_DOWN_DETECTION (5U) |
Command to enable Fast Link Doen Detection. More... | |
#define | ETHPHY_CMD_CONFIGURE_LED_SOURCE (6U) |
Command to configure the source of PHY LEDs. More... | |
#define | ETHPHY_CMD_CONFIGURE_LED_BLINK_RATE (7U) |
Command to configure the blink rate of PHY LEDs. More... | |
#define | ETHPHY_CMD_ENABLE_EXTENDED_FD_ABILITY (8U) |
Command to enable the extended full duplex ability. More... | |
#define | ETHPHY_CMD_ENABLE_ODD_NIBBLE_DETECTION (9U) |
Command to enable odd nibble detection. More... | |
#define | ETHPHY_CMD_ENABLE_ENHANCED_IPG_DETECTION (10U) |
Command to enable enhanced IPG detection. More... | |
#define | ETHPHY_CMD_GET_LINK_STATUS (11U) |
Command to get Link Status for the PHY. More... | |
#define | ETHPHY_CMD_GET_SPEED_AND_DUPLEXITY (12U) |
Command to get Speed and Duplexity configuration for the PHY. More... | |
#define | ETHPHY_CMD_SET_SPEED_AND_DUPLEXITY (13U) |
Command to set Speed and Duplexity configuration for the PHY. More... | |
ETHPHY SPEED AND DUPLEXITY CONFIGURATIONS | |
#define | ETHPHY_SPEED_DUPLEXITY_CONFIG_AUTONEG (0U) |
#define | ETHPHY_SPEED_DUPLEXITY_CONFIG_10FD (1U) |
#define | ETHPHY_SPEED_DUPLEXITY_CONFIG_100FD (2U) |
#define | ETHPHY_SPEED_DUPLEXITY_CONFIG_1000FD (3U) |
#define | ETHPHY_SPEED_DUPLEXITY_CONFIG_10HD (4U) |
#define | ETHPHY_SPEED_DUPLEXITY_CONFIG_100HD (5U) |
#define | ETHPHY_SPEED_DUPLEXITY_CONFIG_1000HD (6U) |
#define | ETHPHY_SPEED_DUPLEXITY_CONFIG_INVALID (7U) |
Typedefs | |
typedef void * | ETHPHY_Handle |
Handle to the ETHPHY driver returned by ETHPHY_open() More... | |
typedef struct ETHPHY_Config_s | ETHPHY_Config |
Forward declaration of ETHPHY_Config. More... | |
typedef struct ETHPHY_Params_s | ETHPHY_Params |
Forward declaration of ETHPHY_Params. More... | |
ETHPHY driver implementation callbacks | |
typedef int32_t(* | ETHPHY_OpenFxn) (ETHPHY_Config *config, const ETHPHY_Params *params) |
Driver implementation to open a specific ETHPHY driver. More... | |
typedef void(* | ETHPHY_CloseFxn) (ETHPHY_Config *config) |
Driver implementation to close a specific ETHPHY driver. More... | |
typedef 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. More... | |
Functions | |
void | ETHPHY_Params_init (ETHPHY_Params *params) |
Set default parameters in the ETHPHY_Params structure. More... | |
ETHPHY_Handle | ETHPHY_open (uint32_t instanceId, const ETHPHY_Params *params) |
Open ETHPHY driver. More... | |
void | ETHPHY_close (ETHPHY_Handle handle) |
Close ETHPHY driver. More... | |
int32_t | ETHPHY_command (ETHPHY_Handle handle, uint32_t command, void *data, uint32_t dataSize) |
Send a command to the ETHPHY. More... | |
const ETHPHY_Attrs * | ETHPHY_getAttrs (uint32_t instanceId) |
Return ETHPHY attributes. More... | |