Zephyr API Documentation 4.1.99
A Scalable Open Source RTOS
 4.1.99
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
openthread_state_changed_callback Struct Reference

OpenThread state change callback
More...

#include <openthread.h>

Data Fields

otStateChangedCallback otCallback
 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.

Note
You may destroy the object only after it is unregistered from the callback list.

Field Documentation

◆ node

sys_snode_t openthread_state_changed_callback::node

Internally used field for list handling.

  • user must not directly modify

◆ otCallback

otStateChangedCallback openthread_state_changed_callback::otCallback

Callback for notifying configuration or state changes.

Parameters
otCallbackOpenThread callback to register. See https://openthread.io/reference/group/api-instance#otstatechangedcallback for details.

◆ user_data

void* openthread_state_changed_callback::user_data

User data if required.


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