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

Device PM info. More...

#include <device.h>

Data Fields

const struct devicedev
 Pointer to the device.
 
struct k_sem lock
 Lock to synchronize the get/put operations.
 
struct k_event event
 Event var to listen to the sync request events.
 
uint32_t usage
 Device usage count.
 
struct k_work_delayable work
 Work object for asynchronous calls.
 
atomic_t flags
 
enum pm_device_state state
 Device power state.
 
pm_device_action_cb_t action_cb
 Device PM action callback.
 

Detailed Description

Device PM info.

Field Documentation

◆ action_cb

pm_device_action_cb_t pm_device::action_cb

Device PM action callback.

◆ dev

const struct device* pm_device::dev

Pointer to the device.

◆ event

struct k_event pm_device::event

Event var to listen to the sync request events.

◆ flags

atomic_t pm_device::flags

◆ lock

struct k_sem pm_device::lock

Lock to synchronize the get/put operations.

◆ state

enum pm_device_state pm_device::state

Device power state.

◆ usage

uint32_t pm_device::usage

Device usage count.

◆ work

struct k_work_delayable pm_device::work

Work object for asynchronous calls.


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