Microchip® Advanced Software Framework

ethernet_sam.h File Reference

Ethernet management definitions for the Standalone lwIP example.

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

#include <lwip/netif.h>

Functions

void ethernet_task (void)
 Manage the ethernet packets, if any received process them. More...
 
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 ethernet_task ( void  )

Manage the ethernet packets, if any received process them.

Manage the ethernet packets, if any received process them.

Manage the ethernet packets, if any received process them.

Process incoming ethernet frames, then update timers.

After managing the lwIP timers. trigger corresponding ethernet process.

References ethernetif_input(), gs_net_if, and timers_update().

Referenced by main(), and webserver_task().

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.

Initialize lwIP

Set hw and IP parameters, initialize MAC too

Initialize lwIP

Set hw and IP parameters, initialize MAC too

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.

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

Parameters
netifInstance to network interface.

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.