Structure holding GNRC netdev adapter state. More...

Detailed Description

This structure is supposed to hold any state parameters needed to use a netdev device from GNRC.

It can be extended

Definition at line 77 of file sys/include/net/gnrc/netdev.h.

#include <net/gnrc/netdev.h>

Data Fields

int(* send )(struct gnrc_netdev *dev, gnrc_pktsnip_t *snip)
 Send a pktsnip using this device. More...
 
gnrc_pktsnip_t *(* recv )(struct gnrc_netdev *dev)
 Receive a pktsnip from this device. More...
 
netdev_tdev
 netdev handle this adapter is working with
 
kernel_pid_t pid
 PID of this adapter for netapi messages.
 

Field Documentation

gnrc_pktsnip_t*(* gnrc_netdev::recv) (struct gnrc_netdev *dev)

This function should receive a raw frame from the underlying device and convert it into a pktsnip while adding a netif header and possibly marking out higher-layer headers.

Definition at line 93 of file sys/include/net/gnrc/netdev.h.

int(* gnrc_netdev::send) (struct gnrc_netdev *dev, gnrc_pktsnip_t *snip)

This function should convert the pktsnip into a format the underlying device understands and send it.

Definition at line 84 of file sys/include/net/gnrc/netdev.h.


The documentation for this struct was generated from the following file: