Adapted to Lora Semtech + Nucleo
Fork of lwip_ppp_ethernet by
Various functions for controlling and monitoring the status of the DP83848 PHY. More...
|static s32_t||lpc_update_phy_sts (struct netif *netif, u32_t linksts)|
|Update PHY status from passed value. |
|err_t||lpc_phy_init (struct netif *netif)|
|Initialize the DP83848 PHY. |
|s32_t||lpc_phy_sts_sm (struct netif *netif)|
|Phy status update state machine. |
|PHY update flags. |
|Last PHY update flags, used for determing if something has changed. |
|PHY update counter for state machine. |
Various functions for controlling and monitoring the status of the DP83848 PHY.
In polled (standalone) systems, the PHY state must be monitored as part of the application. In a threaded (RTOS) system, the PHY state is monitored by the PHY handler thread. The MAC driver will not transmit unless the PHY link is active.
|err_t lpc_phy_init||(||struct netif *||netif )|
Initialize the DP83848 PHY.
Initialize the PHY.
This function initializes the DP83848 PHY. It will block until complete. This function is called as part of the EMAC driver initialization. Configuration of the PHY at startup is controlled by setting up configuration defines in lpc_phy.h.
[in] netif NETIF structure
- ERR_OK if the setup was successful, otherwise ERR_TIMEOUT
|s32_t lpc_phy_sts_sm||(||struct netif *||netif )|
|static s32_t lpc_update_phy_sts||(||struct netif *||netif,|
Update PHY status from passed value.
This function updates the current PHY status based on the passed PHY status word. The PHY status indicate if the link is active, the connection speed, and duplex.
[in] netif NETIF structure [in] linksts Status word from PHY
- 1 if the status has changed, otherwise 0
Generated on Mon Dec 17 2018 18:27:16 by 1.7.2