Go to the documentation of this file.
   20 #ifndef NET_NETDEV_IEEE802154_H 
   21 #define NET_NETDEV_IEEE802154_H 
   43 #define NETDEV_IEEE802154_SEND_MASK         (0x0028)     
   44 #define NETDEV_IEEE802154_RAW               (0x0002)     
   48 #define NETDEV_IEEE802154_SRC_MODE_LONG     (0x0004) 
   52 #define NETDEV_IEEE802154_SECURITY_EN       (IEEE802154_FCF_SECURITY_EN) 
   57 #define NETDEV_IEEE802154_ACK_REQ           (IEEE802154_FCF_ACK_REQ) 
   62 #define NETDEV_IEEE802154_FRAME_PEND        (IEEE802154_FCF_FRAME_PEND) 
  
 
uint8_t short_addr[IEEE802154_SHORT_ADDRESS_LEN]
Short address in network byte order.
 
netopt_t
Global list of configuration options available throughout the network stack, e.g.
 
void netdev_ieee802154_reset(netdev_ieee802154_t *dev)
Reset function for ieee802154 common fields.
 
IEEE 802.15.4 header definitions.
 
uint8_t long_addr[IEEE802154_LONG_ADDRESS_LEN]
Long address in network byte order.
 
static void eui_short_from_eui64(eui64_t *addr_long, network_uint16_t *addr_short)
Get a short unicast address from an EUI-64.
 
EUI-48 and EUI-64 address provider.
 
A 16 bit integer in big endian aka network byte order.
 
uint16_t pan
IEEE 802.15.4 specific fields.
 
Definition of global configuration options.
 
uint8_t seq
sequence number
 
@ NETDEV_IEEE802154_CCA_MODE_1
Energy above threshold.
 
static void netdev_ieee802154_setup(netdev_ieee802154_t *dev)
Configure the hardware address of a IEEE 802.15.4 devices.
 
int netdev_ieee802154_set(netdev_ieee802154_t *dev, netopt_t opt, const void *value, size_t value_len)
Fallback function for netdev IEEE 802.15.4 devices' _set function.
 
Definitions low-level network driver interface.
 
#define IEEE802154_SHORT_ADDRESS_LEN
IEEE 802.15.4 address lengths.
 
Protocol type definitions.
 
netdev_t netdev
netdev_t base class
 
uint16_t flags
flags as defined above
 
Structure to hold driver state.
 
gnrc_nettype_t
Definition of protocol types in the network stack.
 
@ NETDEV_IEEE802154_CCA_MODE_2
Carrier sense only.
 
Extended structure to hold IEEE 802.15.4 driver state.
 
#define IEEE802154_LONG_ADDRESS_LEN
long address (EUI-64)
 
int netdev_ieee802154_dst_filter(netdev_ieee802154_t *dev, const uint8_t *mhr)
This function compares destination address and pan id with addresses and pan id of the device.
 
@ NETDEV_IEEE802154_CCA_MODE_4
ALOHA.
 
netdev_ieee802154_cca_mode_t
Option parameter to be used with NETOPT_CCA_MODE to set the mode of the clear channel assessment (CCA...
 
void netdev_eui64_get(netdev_t *netdev, eui64_t *addr)
Generates an EUI-64 address for the netdev interface.
 
Data type to represent an EUI-64.
 
int16_t txpower
tx power in dBm
 
Received frame status information for most radios.
 
@ NETDEV_IEEE802154_CCA_MODE_6
UWB preamble sense based on the packet with the multiplexed preamble.
 
int netdev_ieee802154_get(netdev_ieee802154_t *dev, netopt_t opt, void *value, size_t max_len)
Fallback function for netdev IEEE 802.15.4 devices' _get function.
 
@ NETDEV_IEEE802154_CCA_MODE_3
Carrier sense with energy above threshold.
 
@ NETDEV_IEEE802154_CCA_MODE_5
UWB preamble sense based on the SHR of a frame.