Zephyr API Documentation 4.2.99
A Scalable Open Source RTOS
 4.2.99
openthread_state_changed_callback Struct Reference

OpenThread state change callback. More...

#include </home/runner/work/zephyr/zephyr/zephyr/modules/openthread/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_callback.

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:
  • /home/runner/work/zephyr/zephyr/zephyr/modules/openthread/include/openthread.h