Zephyr API Documentation
3.6.99
A Scalable Open Source RTOS
|
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. | |
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.
sys_snode_t openthread_state_changed_cb::node |
Internally used field for list handling.
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.
flags | as per OpenThread otStateChangedCallback() aFlags parameter. See https://openthread.io/reference/group/api-instance#otstatechangedcallback |
ot_context | the OpenThread context the callback is registered with. |
user_data | Data to pass to the callback. |
void* openthread_state_changed_cb::user_data |
User data if required.