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

Device PM info. More...

#include <device.h>

Data Fields

const struct devicedev
 
struct k_mutex lock
 
bool enable: 1
 
atomic_t flags
 
uint32_t usage
 
enum pm_device_state state
 
struct k_work_delayable work
 
struct k_condvar condvar
 

Detailed Description

Device PM info.

Field Documentation

◆ condvar

struct k_condvar pm_device::condvar

Event conditional var to listen to the sync request events

◆ dev

const struct device* pm_device::dev

Pointer to the device

◆ enable

bool pm_device::enable

Device pm enable flag

◆ flags

atomic_t pm_device::flags

◆ lock

struct k_mutex 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: