11#ifndef ZEPHYR_INCLUDE_NET_OPENTHREAD_H_
12#define ZEPHYR_INCLUDE_NET_OPENTHREAD_H_
25#include <openthread/instance.h>
44struct openthread_context {
61 struct pkt_list_elem pkt_list[CONFIG_OPENTHREAD_PKT_LIST_SIZE];
147#define OPENTHREAD_L2_CTX_TYPE struct openthread_context
int openthread_api_mutex_try_lock(struct openthread_context *ot_context)
Try to lock internal mutex before accessing OT API.
void openthread_api_mutex_unlock(struct openthread_context *ot_context)
Unlock internal mutex after accessing OT API.
void openthread_api_mutex_lock(struct openthread_context *ot_context)
Lock internal mutex before accessing OT API.
int openthread_start(struct openthread_context *ot_context)
Starts the OpenThread network.
struct otInstance * openthread_get_default_instance(void)
Get pointer to default OpenThread instance.
k_tid_t openthread_thread_id_get(void)
Get OpenThread thread identification.
void openthread_set_state_changed_cb(otStateChangedCallback cb)
Sets function which will be called when certain configuration or state changes within OpenThread.
struct openthread_context * openthread_get_default_context(void)
Get pointer to default OpenThread context.
Public API for network interface.
__UINT8_TYPE__ uint8_t
Definition: stdint.h:58
__UINT16_TYPE__ uint16_t
Definition: stdint.h:59
Definition: kernel.h:2680
A structure used to hold work until it can be processed.
Definition: kernel.h:3770
A structure used to submit work.
Definition: kernel.h:3623
Network Interface structure.
Definition: net_if.h:468
Network packet.
Definition: net_pkt.h:62