| * Copyright (c) 2016 Intel Corporation. |
| * SPDX-License-Identifier: Apache-2.0 |
| * @brief IEEE 802.15.4 L2 stack public header |
| #ifndef ZEPHYR_INCLUDE_NET_IEEE802154_H_ |
| #define ZEPHYR_INCLUDE_NET_IEEE802154_H_ |
| #include <net/net_mgmt.h> |
| #include <crypto/cipher_structs.h> |
| * @brief IEEE 802.15.4 library |
| * @defgroup ieee802154 IEEE 802.15.4 Library |
| #define IEEE802154_MAX_ADDR_LENGTH 8 |
| #define IEEE802154_NO_CHANNEL USHRT_MAX |
| struct ieee802154_security_ctx { |
| /* This not meant to be used by any code but 802.15.4 L2 stack */ |
| struct ieee802154_context { |
| u8_t ext_addr[IEEE802154_MAX_ADDR_LENGTH]; |
| #ifdef CONFIG_NET_L2_IEEE802154_MGMT |
| struct ieee802154_req_params *scan_ctx; |
| u8_t ext_addr[IEEE802154_MAX_ADDR_LENGTH]; |
| #ifdef CONFIG_NET_L2_IEEE802154_SECURITY |
| struct ieee802154_security_ctx sec_ctx; |
| #define IEEE802154_L2_CTX_TYPE struct ieee802154_context |
| #endif /* ZEPHYR_INCLUDE_NET_IEEE802154_H_ */ |