The friendly Operating System for the Internet of Things
drivers/include/net/netdev.h File Reference

Definitions low-level network driver interface. More...

Detailed Description

#include <stdint.h>
#include <sys/uio.h>
#include "net/netstats.h"
#include "net/netopt.h"
+ Include dependency graph for drivers/include/net/netdev.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  netdev_radio_rx_info
 Received packet status information for most radios. More...
 
struct  netdev
 Structure to hold driver state. More...
 
struct  netdev_driver
 Structure to hold driver interface -> function mapping. More...
 

Typedefs

typedef struct netdev netdev_t
 Forward declaration for netdev struct.
 
typedef void(* netdev_event_cb_t) (netdev_t *dev, netdev_event_t event)
 Event callback for signaling event to upper layers. More...
 
typedef struct netdev_driver netdev_driver_t
 Structure to hold driver interface -> function mapping. More...
 

Enumerations

enum  {
  NETDEV_TYPE_UNKNOWN, NETDEV_TYPE_RAW, NETDEV_TYPE_ETHERNET, NETDEV_TYPE_IEEE802154,
  NETDEV_TYPE_CC110X, NETDEV_TYPE_NRFMIN
}
 
enum  netdev_event_t {
  NETDEV_EVENT_ISR, NETDEV_EVENT_RX_STARTED, NETDEV_EVENT_RX_COMPLETE, NETDEV_EVENT_TX_STARTED,
  NETDEV_EVENT_TX_COMPLETE, NETDEV_EVENT_TX_NOACK, NETDEV_EVENT_TX_MEDIUM_BUSY, NETDEV_EVENT_LINK_UP,
  NETDEV_EVENT_LINK_DOWN
}
 Possible event types that are send from the device driver to the upper layer. More...