STM32Ethernet
Arduino Ethernet library for STM32 boards
Loading...
Searching...
No Matches
ethernetif.h
Go to the documentation of this file.
1
48#ifndef __ETHERNETIF_H__
49#define __ETHERNETIF_H__
50#ifdef __cplusplus
51extern "C" {
52#endif
53#include "lwip/err.h"
54#include "lwip/netif.h"
55/* Exported types ------------------------------------------------------------*/
61uint8_t ethernetif_is_init(void);
71err_t ethernetif_init(struct netif *netif);
80void ethernetif_input(struct netif *netif);
90void ethernetif_set_link(struct netif *netif);
102void ethernetif_update_config(struct netif *netif);
112void ethernetif_notify_conn_changed(struct netif *netif);
113
122void ethernetif_set_mac_addr(const uint8_t *mac);
129void ethernetif_get_mac_addr(uint8_t *mac);
130
131#if LWIP_IGMP
142err_t igmp_mac_filter(struct netif *netif, const ip4_addr_t *ip4_addr, netif_mac_filter_action action);
148void register_multicast_address(const uint8_t *mac);
149#endif
150
151#ifdef __cplusplus
152}
153#endif
154
155#endif
void ethernetif_get_mac_addr(uint8_t *mac)
Copy the MAC address used by the driver.
Definition ethernetif.cpp:595
void ethernetif_notify_conn_changed(struct netif *netif)
Notify the user that the link status has changed.
Definition ethernetif.cpp:580
void ethernetif_input(struct netif *netif)
Read one received frame from the MAC and pass it to LwIP.
Definition ethernetif.cpp:436
void ethernetif_update_config(struct netif *netif)
Apply the PHY auto-negotiation result to the MAC.
Definition ethernetif.cpp:526
void ethernetif_set_link(struct netif *netif)
Poll the PHY and update the LwIP link state of the interface.
Definition ethernetif.cpp:500
err_t ethernetif_init(struct netif *netif)
LwIP network interface initialization callback.
Definition ethernetif.cpp:464
void ethernetif_set_mac_addr(const uint8_t *mac)
Set the MAC address used by the driver.
Definition ethernetif.cpp:588
uint8_t ethernetif_is_init(void)
Check whether the Ethernet hardware has been initialized.
Definition ethernetif.cpp:459