Zephyr API 3.6.99
Loading...
Searching...
No Matches
openthread_state_changed_cb Struct Reference

OpenThread state change callback
More...

#include <openthread.h>

Data Fields

void(* state_changed_cb )(otChangedFlags flags, struct openthread_context *ot_context, void *user_data)
 Callback for notifying configuration or state changes.
 
void * user_data
 User data if required.
 
sys_snode_t node
 Internally used field for list handling.
 

Detailed Description

OpenThread state change callback

OpenThread state change callback structure

Used to register a callback in the callback list. As many callbacks as needed can be added as long as each of them are unique pointers of struct openthread_state_changed_cb. Beware such structure should not be allocated on stack.

Field Documentation

◆ node

sys_snode_t openthread_state_changed_cb::node

Internally used field for list handling.

  • user must not directly modify

◆ state_changed_cb

void(* openthread_state_changed_cb::state_changed_cb) (otChangedFlags flags, struct openthread_context *ot_context, void *user_data)

Callback for notifying configuration or state changes.

Parameters
flagsas per OpenThread otStateChangedCallback() aFlags parameter. See https://openthread.io/reference/group/api-instance#otstatechangedcallback
ot_contextthe OpenThread context the callback is registered with.
user_dataData to pass to the callback.

◆ user_data

void* openthread_state_changed_cb::user_data

User data if required.


The documentation for this struct was generated from the following file: