Functions | |
| cy_en_ephy_status_t | Cy_EPHY_Init (cy_stc_ephy_t *phy, cy_ephy_read_handle fnRead, cy_ephy_write_handle fnWrite) |
| This function initializes the private structure and assign a PHY-read, PHY-write function handle to its private data structure. More... | |
| cy_en_ephy_status_t | Cy_EPHY_Discover (cy_stc_ephy_t *phy) |
| Discovers connected PHY at address zero. More... | |
| cy_en_ephy_status_t | Cy_EPHY_Configure (cy_stc_ephy_t *phy, cy_stc_ephy_config_t *config) |
| Configures PHY with user provided speed and duplex mode. More... | |
| uint32_t | Cy_EPHY_GetLinkStatus (cy_stc_ephy_t *phy) |
| Get current link status of PHY. More... | |
| cy_en_ephy_status_t | Cy_EPHY_Reset (cy_stc_ephy_t *phy) |
| Soft reset PHY by enabling 15th bit of BMCR register. More... | |
| uint32_t | Cy_EPHY_GetAutoNegotiationStatus (cy_stc_ephy_t *phy) |
| Get current Auto-Negotiation status (completed or In-progress). More... | |
| cy_en_ephy_status_t | Cy_EPHY_getLinkPartnerCapabilities (cy_stc_ephy_t *phy, cy_stc_ephy_config_t *lpConfig) |
| Gets Link partner capabilities (speed and duplex) More... | |
| cy_en_ephy_status_t Cy_EPHY_Init | ( | cy_stc_ephy_t * | phy, |
| cy_ephy_read_handle | fnRead, | ||
| cy_ephy_write_handle | fnWrite | ||
| ) |
This function initializes the private structure and assign a PHY-read, PHY-write function handle to its private data structure.
| phy | pointer to PHY private data structure. |
| fnRead | pointer to read function implemented in application |
| fnWrite | pointer to write function implemented in application |
| cy_en_ephy_status_t Cy_EPHY_Discover | ( | cy_stc_ephy_t * | phy | ) |
Discovers connected PHY at address zero.
Reads ID1 and ID2 register to form PHY ID.
| phy | pointer to PHY private data structure |
| cy_en_ephy_status_t Cy_EPHY_Configure | ( | cy_stc_ephy_t * | phy, |
| cy_stc_ephy_config_t * | config | ||
| ) |
Configures PHY with user provided speed and duplex mode.
| phy | pointer to PHY private data structure |
| config | pointer to PHY configuration structure |
| uint32_t Cy_EPHY_GetLinkStatus | ( | cy_stc_ephy_t * | phy | ) |
Get current link status of PHY.
| phy | pointer to PHY private data structure |
| cy_en_ephy_status_t Cy_EPHY_Reset | ( | cy_stc_ephy_t * | phy | ) |
Soft reset PHY by enabling 15th bit of BMCR register.
| phy | pointer to PHY private data structure |
| uint32_t Cy_EPHY_GetAutoNegotiationStatus | ( | cy_stc_ephy_t * | phy | ) |
Get current Auto-Negotiation status (completed or In-progress).
| phy | pointer to PHY private data structure |
| cy_en_ephy_status_t Cy_EPHY_getLinkPartnerCapabilities | ( | cy_stc_ephy_t * | phy, |
| cy_stc_ephy_config_t * | lpConfig | ||
| ) |
Gets Link partner capabilities (speed and duplex)
| phy | Pointer to PHY private data structure |
| lpConfig | [Output] Speed and duplex information |