Zephyr API Documentation
3.6.0
A Scalable Open Source RTOS
|
|
3.6.0 |
#include <dummy.h>
Data Fields | |
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 interface API. | |
int(* | send )(const struct device *dev, struct net_pkt *pkt) |
Send a network packet. | |
int(* | start )(const struct device *dev) |
Start the device. | |
int(* | stop )(const struct device *dev) |
Stop the device. | |
struct net_if_api dummy_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(* dummy_api::start) (const struct device *dev) |
Start the device.
Called when the bound network interface is brought up.
int(* dummy_api::stop) (const struct device *dev) |
Stop the device.
Called when the bound network interface is taken down.