Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
openthread.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2017 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
10
11#ifndef ZEPHYR_INCLUDE_NET_OPENTHREAD_H_
12#define ZEPHYR_INCLUDE_NET_OPENTHREAD_H_
13
22
23#include <zephyr/kernel.h>
24#include <zephyr/net/net_if.h>
26
27#include <openthread.h>
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
39struct pkt_list_elem {
40 struct net_pkt *pkt;
41};
42
46struct openthread_context {
48 struct net_if *iface;
49
51 uint16_t pkt_list_in_idx;
52
54 uint16_t pkt_list_out_idx;
55
57 uint8_t pkt_list_full;
58
60 struct pkt_list_elem pkt_list[CONFIG_OPENTHREAD_PKT_LIST_SIZE];
61};
65
72struct openthread_context *openthread_get_default_context(void);
73
75
76#define OPENTHREAD_L2_CTX_TYPE struct openthread_context
77
79
80#ifdef __cplusplus
81}
82#endif
83
87
88#endif /* ZEPHYR_INCLUDE_NET_OPENTHREAD_H_ */
struct openthread_context * openthread_get_default_context(void)
Get pointer to default OpenThread context.
OpenThread stack public header.
Public kernel APIs.
Public API for network interface.
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
__UINT16_TYPE__ uint16_t
Definition stdint.h:89