Functions | |
cy_rslt_t | cy_eth_phy_driver_init (void) |
Does general allocation and initialization of resources needed for the library. More... | |
cy_rslt_t | cy_eth_phy_init (uint8_t eth_idx, ETH_Type *reg_base) |
Ethernet PHY driver Initialization. More... | |
cy_rslt_t | cy_eth_phy_configure (uint8_t eth_idx, uint32_t duplex, uint32_t speed) |
Ethernet PHY driver Configure. More... | |
cy_rslt_t | cy_eth_phy_reset (uint8_t eth_idx, ETH_Type *reg_base) |
Ethernet PHY driver reset. More... | |
cy_rslt_t | cy_eth_phy_discover (uint8_t eth_idx) |
Ethernet PHY driver discover. More... | |
cy_rslt_t | cy_eth_phy_enable_ext_reg (ETH_Type *reg_base, uint32_t phy_speed) |
Enable extended Ethernet PHY driver Registers. More... | |
cy_rslt_t | cy_eth_phy_get_linkspeed (uint8_t eth_idx, uint32_t *duplex, uint32_t *speed) |
Ethernet PHY driver get link speed. More... | |
cy_rslt_t | cy_eth_phy_get_linkstatus (uint8_t eth_idx, uint32_t *link_status) |
Ethernet PHY driver get link status. More... | |
cy_rslt_t | cy_eth_phy_get_auto_neg_status (uint8_t eth_idx, uint32_t *neg_status) |
Get Ethernet PHY Auto Negotiation Status. More... | |
cy_rslt_t | cy_eth_phy_get_link_partner_cap (uint8_t eth_idx, uint32_t *duplex, uint32_t *speed) |
Get Ethernet PHY Link Partner Capabilities. More... | |
cy_rslt_t | cy_eth_phy_driver_deinit (void) |
Releases the resources allocated in the cy_eth_phy_driver_init function. More... | |
cy_rslt_t cy_eth_phy_driver_init | ( | void | ) |
Does general allocation and initialization of resources needed for the library.
This API function must be called before using any other Ethernet PHY Driver API.
cy_rslt_t cy_eth_phy_init | ( | uint8_t | eth_idx, |
ETH_Type * | reg_base | ||
) |
Ethernet PHY driver Initialization.
API initializes the required ethernet ports of the given PHY hardware and creates a PHY object. Subsequently, this same PHY object will be utilized to perform other ethernet PHY operations.
[in] | eth_idx | : Ethernet interface to be initialized |
[in] | reg_base | : Register base address of the ethernet interface |
cy_rslt_t cy_eth_phy_configure | ( | uint8_t | eth_idx, |
uint32_t | duplex, | ||
uint32_t | speed | ||
) |
Ethernet PHY driver Configure.
Configures ethernet PHY with given duplex mode and PHY speed.
[in] | eth_idx | : Ethernet port to be initialized |
[in] | duplex | : PHY duplex mode |
[in] | speed | : PHY speed |
cy_rslt_t cy_eth_phy_reset | ( | uint8_t | eth_idx, |
ETH_Type * | reg_base | ||
) |
Ethernet PHY driver reset.
Performs a full reset of ethernet PHY, including all ethernet PHY registers.
[in] | eth_idx | : Ethernet interface number |
[in] | reg_base | : Register base address of the ethernet interface |
cy_rslt_t cy_eth_phy_discover | ( | uint8_t | eth_idx | ) |
Ethernet PHY driver discover.
Discovers connected ethernet PHY at address zero.
[in] | eth_idx | : Ethernet interface number |
cy_rslt_t cy_eth_phy_enable_ext_reg | ( | ETH_Type * | reg_base, |
uint32_t | phy_speed | ||
) |
Enable extended Ethernet PHY driver Registers.
For the selected ethernet PHY chip, this API configures and enables extended registers according to the type of PHY interface and the PHY speed.
[in] | reg_base | : Register base address of the ethernet interface |
[in] | phy_speed | : PHY speed |
cy_rslt_t cy_eth_phy_get_linkspeed | ( | uint8_t | eth_idx, |
uint32_t * | duplex, | ||
uint32_t * | speed | ||
) |
Ethernet PHY driver get link speed.
Gets the configured PHY duplex mode and PHY speed of selected ethernet interface.
[in] | eth_idx | : Ethernet interface number |
[out] | duplex | : PHY duplex mode |
[out] | speed | : PHY speed |
cy_rslt_t cy_eth_phy_get_linkstatus | ( | uint8_t | eth_idx, |
uint32_t * | link_status | ||
) |
Ethernet PHY driver get link status.
Gets the ethernet PHY link status of selected ethernet interface.
[in] | eth_idx | : Ethernet interface number |
[out] | link_status | : PHY duplex mode |
cy_rslt_t cy_eth_phy_get_auto_neg_status | ( | uint8_t | eth_idx, |
uint32_t * | neg_status | ||
) |
Get Ethernet PHY Auto Negotiation Status.
Gets the current Auto-Negotiation status (completed or In-progress) of selected ethernet interface.
[in] | eth_idx | : Ethernet interface number |
[out] | neg_status | : PHY duplex mode |
cy_rslt_t cy_eth_phy_get_link_partner_cap | ( | uint8_t | eth_idx, |
uint32_t * | duplex, | ||
uint32_t * | speed | ||
) |
Get Ethernet PHY Link Partner Capabilities.
Gets the Link partner capabilities (speed and duplex) of selected ethernet interface.
[in] | eth_idx | : Ethernet interface number |
[out] | duplex | : PHY duplex mode |
[out] | speed | : PHY speed |
cy_rslt_t cy_eth_phy_driver_deinit | ( | void | ) |
Releases the resources allocated in the cy_eth_phy_driver_init function.