EVE 1.0
pm_lock_t Struct Reference

#include <pm.h>

Collaboration diagram for pm_lock_t:

Data Fields

struct pm_lock_tnext
 
bool(* ready_cb )(uint32_t data)
 
uint32_t data
 
uint8_t level
 
uint8_t locked
 

Detailed Description

System power lock structure.

The power lock structure represents a request for a power level the system should be kept on while CPU is in idle.

The structure must be instantiated in the RAM memory using one of PM_LOCK_INIT() or DECLARE_PM_LOCK(). Note that the power request is not active unless PM_LOCK() is called for it.

Definition at line 78 of file pm.h.

Field Documentation

struct pm_lock_t* pm_lock_t::next

Linked list of the unlocked requests waiting for suspend.

Definition at line 85 of file pm.h.

bool(* pm_lock_t::ready_cb) (uint32_t data)

Ready callback.

See also
PM_UNLOCK(),
pm_relax() for details.

Definition at line 86 of file pm.h.

uint32_t pm_lock_t::data

User data for the ready callback

Definition at line 87 of file pm.h.

uint8_t pm_lock_t::level

pm_level_t, the given power level

Definition at line 88 of file pm.h.

uint8_t pm_lock_t::locked

Lock counter for the lock request

Definition at line 89 of file pm.h.