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

Device PM info. More...

#include <device.h>

Data Fields

const struct devicedev
 
struct k_sem lock
 
struct k_event event
 
uint32_t usage
 
struct k_work_delayable work
 
atomic_t flags
 
enum pm_device_state state
 
pm_device_action_cb_t action_cb
 

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: