Microchip® Advanced Software Framework

netconn_http_stats_example/network/ethernet.h File Reference

Ethernet management for LwIP.

Copyright (c) 2013-2018 Microchip Technology Inc. and its subsidiaries.

#include <lwip/netif.h>

Functions

void init_ethernet (void)
 Initialize the ethernet interface. More...
 
void status_callback (struct netif *netif)
 Status callback used to print address given by DHCP. More...
 

void init_ethernet ( void  )

Initialize the ethernet interface.

Initialize the ethernet interface.

Initialize the ethernet interface.

Initialize the lwIP TCP/IP stack with the network interface driver.

References ethernet_configure_interface(), lwip_init(), NULL, sys_init_timing(), and tcpip_init().

Referenced by gfx_task(), and main().

void status_callback ( struct netif netif)

Status callback used to print address given by DHCP.

Parameters
netifInstance to network interface.

Status callback used to print address given by DHCP.

Parameters
netifThe network interface instance.

Status callback used to print address given by DHCP.

Callback function used to print the given IP address when the link is up.

Parameters
netifInstance to network interface.

References g_c_ipconfig, g_ip_mode, inet_ntoa, netif::ip_addr, and netif_is_up.