Embedded TCP/IP stack
4.7.0
|
fnet_return_t fnet_netif_init | ( | fnet_netif_desc_t | netif_desc, |
fnet_uint8_t * | hw_addr, | ||
fnet_size_t | hw_addr_size | ||
) |
Initializes network interface and adds it to FNET stack.
netif_desc | Network interface descriptor to be initialized (FNET_CPU_ETH0_IF,FNET_CPU_ETH1_IF). |
hw_addr | Buffer containing the hardware address (for the Ethernet interface, it contains the MAC address). |
hw_addr_size | Size of the hardware address in the hw_addr (for the Ethernet interface, it equals 6 ). |
This function initializes network interface defined by netif_desc
and adds it to the FNET stack.
FNET declares descriptors for Ethernet interfaces (FNET_CPU_ETH0_IF, FNET_CPU_ETH1_IF).