13#ifndef ZEPHYR_INCLUDE_OFFLOADED_NETDEV_H_
14#define ZEPHYR_INCLUDE_OFFLOADED_NETDEV_H_
static const struct device * net_if_get_device(struct net_if *iface)
Get an network interface's device.
Definition net_if.h:954
offloaded_net_if_types
Types of offloaded netdev L2.
Definition offloaded_netdev.h:35
static bool net_off_is_wifi_offloaded(struct net_if *iface)
Check if the offloaded network interface supports Wi-Fi.
Definition offloaded_netdev.h:77
@ L2_OFFLOADED_NET_IF_TYPE_UNKNOWN
Unknown, device hasn't register a type.
Definition offloaded_netdev.h:37
@ L2_OFFLOADED_NET_IF_TYPE_ETHERNET
Ethernet devices.
Definition offloaded_netdev.h:40
@ L2_OFFLOADED_NET_IF_TYPE_MODEM
Modem.
Definition offloaded_netdev.h:43
@ L2_OFFLOADED_NET_IF_TYPE_WIFI
IEEE 802.11 Wi-Fi.
Definition offloaded_netdev.h:46
Public API for network interface.
state
Definition parser_state.h:29
const void * api
Address of the API structure exposed by the device instance.
Definition device.h:418
Network Interface structure.
Definition net_if.h:690
Extended net_if_api for offloaded ifaces/network devices, allowing handling of admin up/down state ch...
Definition offloaded_netdev.h:53
struct net_if_api iface_api
The net_if_api must be placed in first position in this struct so that we are compatible with network...
Definition offloaded_netdev.h:58
enum offloaded_net_if_types(* get_type)(void)
Types of offloaded net device.
Definition offloaded_netdev.h:64
int(* enable)(const struct net_if *iface, bool state)
Enable or disable the device (in response to admin state change)
Definition offloaded_netdev.h:61