Zephyr API Documentation
2.7.0-rc2
A Scalable Open Source RTOS
|
#include <ethernet.h>
Data Fields | |
atomic_t | flags |
struct k_work | carrier_work |
struct net_if * | iface |
enum net_l2_flags | ethernet_l2_flags |
bool | is_net_carrier_up: 1 |
bool | is_init: 1 |
Ethernet L2 context that is needed for VLAN
struct k_work ethernet_context::carrier_work |
Carrier ON/OFF handler worker. This is used to create network interface UP/DOWN event when ethernet L2 driver notices carrier ON/OFF situation. We must not create another network management event from inside management handler thus we use worker thread to trigger the UP/DOWN event.
enum net_l2_flags ethernet_context::ethernet_l2_flags |
This tells what L2 features does ethernet support.
atomic_t ethernet_context::flags |
Flags representing ethernet state, which are accessed from multiple threads.
struct net_if* ethernet_context::iface |
Network interface.
bool ethernet_context::is_init |
Is this context already initialized
bool ethernet_context::is_net_carrier_up |
Is network carrier up