Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
ieee802154.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2016 Intel Corporation.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
12#ifndef ZEPHYR_INCLUDE_NET_IEEE802154_H_
13#define ZEPHYR_INCLUDE_NET_IEEE802154_H_
14
15#include <limits.h>
16#include <net/net_mgmt.h>
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
30#define IEEE802154_MAX_ADDR_LENGTH 8
31#define IEEE802154_NO_CHANNEL USHRT_MAX
32
41 uint8_t _unused : 3;
42};
43
44/* This not meant to be used by any code but 802.15.4 L2 stack */
49 struct k_sem ack_lock;
52#ifdef CONFIG_NET_L2_IEEE802154_MGMT
53 struct ieee802154_req_params *scan_ctx;
54 union {
55 struct k_sem res_lock;
56 struct k_sem req_lock;
57 };
58 union {
61 } coord;
62 uint8_t coord_addr_len;
63#endif
64#ifdef CONFIG_NET_L2_IEEE802154_SECURITY
65 struct ieee802154_security_ctx sec_ctx;
66#endif
73 uint8_t _unused : 5;
74};
75
76#define IEEE802154_L2_CTX_TYPE struct ieee802154_context
77
78#ifdef __cplusplus
79}
80#endif
81
86#endif /* ZEPHYR_INCLUDE_NET_IEEE802154_H_ */
Crypto Cipher structure definitions.
#define IEEE802154_MAX_ADDR_LENGTH
Definition: ieee802154.h:30
net_l2_flags
Definition: net_l2.h:33
Network Management API public header.
__UINT32_TYPE__ uint32_t
Definition: stdint.h:60
__UINT8_TYPE__ uint8_t
Definition: stdint.h:58
__UINT16_TYPE__ uint16_t
Definition: stdint.h:59
__INT16_TYPE__ int16_t
Definition: stdint.h:43
Definition: cipher_structs.h:110
Definition: ieee802154.h:45
uint8_t ack_seq
Definition: ieee802154.h:69
uint8_t associated
Definition: ieee802154.h:72
uint8_t ack_received
Definition: ieee802154.h:70
uint8_t ext_addr[8]
Definition: ieee802154.h:51
uint8_t ack_requested
Definition: ieee802154.h:71
uint8_t sequence
Definition: ieee802154.h:68
struct k_sem ack_lock
Definition: ieee802154.h:49
uint16_t short_addr
Definition: ieee802154.h:50
int16_t tx_power
Definition: ieee802154.h:67
enum net_l2_flags flags
Definition: ieee802154.h:46
uint16_t channel
Definition: ieee802154.h:48
uint16_t pan_id
Definition: ieee802154.h:47
Scanning parameters.
Definition: ieee802154_mgmt.h:186
Definition: ieee802154.h:33
uint8_t key_len
Definition: ieee802154.h:38
uint8_t key[16]
Definition: ieee802154.h:37
uint8_t level
Definition: ieee802154.h:39
struct cipher_ctx dec
Definition: ieee802154.h:36
struct cipher_ctx enc
Definition: ieee802154.h:35
uint32_t frame_counter
Definition: ieee802154.h:34
uint8_t key_mode
Definition: ieee802154.h:40