Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
onoff_sync_service Struct Reference

State used when a driver uses the on-off service API for synchronous operations. More...

#include <onoff.h>

Data Fields

struct k_spinlock lock
 
int32_t count
 

Detailed Description

State used when a driver uses the on-off service API for synchronous operations.

This is useful when a subsystem API uses the on-off API to support asynchronous operations but the transitions required by a particular driver are isr-ok and not sleep. It serves as a substitute for onoff_manager, with locking and persisted state updates supported by onoff_sync_lock() and onoff_sync_finalize().

Field Documentation

◆ count

int32_t onoff_sync_service::count

◆ lock

struct k_spinlock onoff_sync_service::lock

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