Zephyr API 3.6.99
|
State associated with an on-off manager. More...
#include <onoff.h>
Data Fields | |
sys_slist_t | clients |
List of clients waiting for request or reset completion notifications. | |
sys_slist_t | monitors |
List of monitors to be notified of state changes including errors and transition completion. | |
const struct onoff_transitions * | transitions |
Transition functions. | |
struct k_spinlock | lock |
Mutex protection for other fields. | |
int | last_res |
The result of the last transition. | |
uint16_t | flags |
Flags identifying the service state. | |
uint16_t | refs |
Number of active clients for the service. | |
State associated with an on-off manager.
No fields in this structure are intended for use by service providers or clients. The state is to be initialized once, using onoff_manager_init(), when the service provider is initialized. In case of error it may be reset through the onoff_reset() API.
sys_slist_t onoff_manager::clients |
List of clients waiting for request or reset completion notifications.
uint16_t onoff_manager::flags |
Flags identifying the service state.
int onoff_manager::last_res |
The result of the last transition.
struct k_spinlock onoff_manager::lock |
Mutex protection for other fields.
sys_slist_t onoff_manager::monitors |
List of monitors to be notified of state changes including errors and transition completion.
uint16_t onoff_manager::refs |
Number of active clients for the service.
const struct onoff_transitions* onoff_manager::transitions |
Transition functions.