Configuration of LAN8720 PHY and for Ethernet transport 
◆ ethernetif_init()
      
        
          | err_t ethernetif_init | ( | struct netif * | netif | ) |  | 
      
 
Should be called at the beginning of the program to set up the network interface. It calls the function low_level_init() to do the actual setup of the hardware.
This function should be passed as a parameter to netif_add().
- Parameters
- 
  
    | netif | the lwip network interface structure for this ethernetif |  
 
- Returns
- ERR_OK if the loopif is initialized ERR_MEM if private data couldn't be allocated any other err_t on error 
Definition at line 540 of file ethernet_driver.c.
 
 
◆ ethernetif_input()
      
        
          | void ethernetif_input | ( | void * | argument | ) |  | 
      
 
This function should be called when a packet is ready to be read from the interface. It uses the function low_level_input() that should handle the actual reception of bytes from the network interface. Then the type of the received packet is determined and the appropriate input function is called.
- Parameters
- 
  
    | netif | the lwip network interface structure for this ethernetif |  
 
Definition at line 483 of file ethernet_driver.c.
 
 
◆ ethernetif_notify_conn_changed()
      
        
          | void ethernetif_notify_conn_changed | ( | struct netif * | netif | ) |  | 
      
 
Function called on ethernet interface link change. 
- Parameters
- 
  
    | *netif | pointer to the network interface structure |  
 
- See also
- ethernet_driver.h for further information regarding this callback 
Definition at line 214 of file net.c.
 
 
◆ ethernetif_set_link()
      
        
          | void ethernetif_set_link | ( | void * | argument | ) |  | 
      
 
This function sets the netif link status. 
- Parameters
- 
  
    | netif | the network interface |  
 
- Return values
- 
  
  
Definition at line 610 of file ethernet_driver.c.
 
 
◆ sys_jiffies()
      
        
          | u32_t sys_jiffies | ( | void |  | ) |  | 
      
 
Returns the current time in milliseconds when LWIP_TIMERS == 1 and NO_SYS == 1. 
- Parameters
- 
  
  
- Return values
- 
  
  
Definition at line 587 of file ethernet_driver.c.
 
 
◆ sys_now()
Returns the current time in milliseconds when LWIP_TIMERS == 1 and NO_SYS == 1. 
- Parameters
- 
  
  
- Return values
- 
  
  
Definition at line 598 of file ethernet_driver.c.