Zephyr API Documentation
2.7.0-rc2
A Scalable Open Source RTOS
|
#include <ethernet.h>
Data Fields | |
struct net_if_api | iface_api |
int(* | start )(const struct device *dev) |
int(* | stop )(const struct device *dev) |
enum ethernet_hw_caps(* | get_capabilities )(const struct device *dev) |
int(* | set_config )(const struct device *dev, enum ethernet_config_type type, const struct ethernet_config *config) |
int(* | get_config )(const struct device *dev, enum ethernet_config_type type, struct ethernet_config *config) |
int(* | send )(const struct device *dev, struct net_pkt *pkt) |
enum ethernet_hw_caps(* ethernet_api::get_capabilities) (const struct device *dev) |
Get the device capabilities
int(* ethernet_api::get_config) (const struct device *dev, enum ethernet_config_type type, struct ethernet_config *config) |
Get hardware specific configuration
struct net_if_api ethernet_api::iface_api |
The net_if_api must be placed in first position in this struct so that we are compatible with network interface API.
int(* ethernet_api::set_config) (const struct device *dev, enum ethernet_config_type type, const struct ethernet_config *config) |
Set specific hardware configuration
int(* ethernet_api::start) (const struct device *dev) |
Start the device
int(* ethernet_api::stop) (const struct device *dev) |
Stop the device