Definitions for netdev common IEEE 802.15.4 code. More...
Definitions for netdev common IEEE 802.15.4 code.
Definition in file ieee802154.h.
#include "net/eui_provider.h"#include "net/ieee802154.h"#include "net/gnrc/nettype.h"#include "net/netopt.h"#include "net/netdev.h" Include dependency graph for ieee802154.h:
 Include dependency graph for ieee802154.h: This graph shows which files directly or indirectly include this file:
 This graph shows which files directly or indirectly include this file:Go to the source code of this file.
| Data Structures | |
| struct | netdev_ieee802154_t | 
| Extended structure to hold IEEE 802.15.4 driver state.  More... | |
| struct | netdev_ieee802154_rx_info | 
| Received packet status information for IEEE 802.15.4 radios.  More... | |
| Typedefs | |
| typedef struct netdev_ieee802154_rx_info | netdev_ieee802154_rx_info_t | 
| Received packet status information for IEEE 802.15.4 radios. | |
| Enumerations | |
| enum | netdev_ieee802154_cca_mode_t { NETDEV_IEEE802154_CCA_MODE_1 = 1 , NETDEV_IEEE802154_CCA_MODE_2 , NETDEV_IEEE802154_CCA_MODE_3 , NETDEV_IEEE802154_CCA_MODE_4 , NETDEV_IEEE802154_CCA_MODE_5 , NETDEV_IEEE802154_CCA_MODE_6 } | 
| Option parameter to be used with NETOPT_CCA_MODE to set the mode of the clear channel assessment (CCA) defined in Std 802.15.4.  More... | |
| Functions | |
| static void | netdev_ieee802154_rx_info_set_timestamp (netdev_ieee802154_rx_info_t *dest, uint64_t timestamp) | 
| Write the given timestamp to the given RX info struct. | |
| static int | netdev_ieee802154_rx_info_get_timestamp (const netdev_ieee802154_rx_info_t *info, uint64_t *dest) | 
| Get the timestamp to from the RX info. | |
| void | netdev_ieee802154_reset (netdev_ieee802154_t *dev) | 
| Reset function for ieee802154 common fields. | |
| 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. | |
| 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. | |
| 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. | |
| static void | netdev_ieee802154_setup (netdev_ieee802154_t *dev) | 
| Configure the hardware address of a IEEE 802.15.4 devices. | |
| IEEE 802.15.4 netdev flags | |
| Flags for netdev_ieee802154_t::flags The flag-space  | |
| #define | NETDEV_IEEE802154_SEND_MASK (0x0028) | 
| flags to take for send packets | |
| #define | NETDEV_IEEE802154_RAW (0x0002) | 
| pass raw frame to upper layer | |
| #define | NETDEV_IEEE802154_SRC_MODE_LONG (0x0004) | 
| use long source address (set) or short source address (unset) | |
| #define | NETDEV_IEEE802154_SECURITY_EN (IEEE802154_FCF_SECURITY_EN) | 
| enable security | |
| #define | NETDEV_IEEE802154_ACK_REQ (IEEE802154_FCF_ACK_REQ) | 
| request ACK from receiver | |
| #define | NETDEV_IEEE802154_FRAME_PEND (IEEE802154_FCF_FRAME_PEND) | 
| set frame pending bit | |
| Flags for use in @ref netdev_ieee802154_rx_info::flags | |
| #define | NETDEV_RX_IEEE802154_INFO_FLAG_TIMESTAMP (0x01) | 
| Timestamp valid. | |