55 #ifndef ti_drivers_Power__include
56 #define ti_drivers_Power__include
67 #define Power_RESUME 2
70 #define Power_NOTIFYDONE 0
71 #define Power_NOTIFYERROR 1
76 #define Power_EINVALIDPOINTER 2
77 #define Power_ECHANGE_NOT_ALLOWED 3
81 #define Power_ACTIVE 1
82 #define Power_ENTERING_SLEEP 2
83 #define Power_EXITING_SLEEP 3
84 #define Power_ENTERING_SHUTDOWN 4
85 #define Power_CHANGING_PERF_LEVEL 5
91 typedef void (*Power_PolicyInitFxn)(void);
102 uintptr_t clientArg);
328 unsigned int eventTypes,
330 uintptr_t clientArg);
512 unsigned int Power_shutdown(
unsigned int shutdownState, uint32_t shutdownTime);
int(* Power_NotifyFxn)(unsigned int eventType, uintptr_t eventArg, uintptr_t clientArg)
Power notify function pointer.
Definition: Power.h:101
void Power_releaseDependency(unsigned int resourceId)
Release a previously declared dependency.
unsigned int Power_setPerformanceLevel(unsigned int level)
Set the MCU performance level.
void Power_releaseConstraint(unsigned int constraintId)
Release a previously declared constraint.
unsigned int Power_sleep(unsigned int sleepState)
Transition the device into a sleep state.
Power_NotifyFxn notifyFxn
Definition: Power.h:115
unsigned int eventTypes
Definition: Power.h:114
unsigned int Power_getPerformanceLevel(void)
Get the current performance level.
void(* Power_PolicyFxn)(void)
Power policy function pointer.
Definition: Power.h:96
uintptr_t clientArg
Definition: Power.h:116
void Power_setPolicy(Power_PolicyFxn policy)
Set a new Power policy.
unsigned int Power_getDependencyCount(unsigned int resourceId)
Get the current dependency count for a resource.
Power notify object structure.
Definition: Power.h:112
void Power_setConstraint(unsigned int constraintId)
Declare an operational constraint.
void Power_init(void)
Power initialization function.
void Power_unregisterNotify(Power_NotifyObj *pNotifyObj)
Unregister previously registered notifications.
void Power_disablePolicy(void)
Disable the configured power policy from running when the CPU is idle.
struct Power_NotifyObj Power_NotifyObj
Power notify object structure.
List_Elem link
Definition: Power.h:113
void Power_enablePolicy(void)
Enable the configured power policy to run when the CPU is idle.
unsigned int Power_getTransitionState(void)
Get the current transition state of the Power manager.
uint32_t Power_getTransitionLatency(unsigned int sleepState, unsigned int type)
Get the hardware transition latency for a sleep state.
void Power_idleFunc(void)
Power function to be added to the application idle loop.
void Power_setDependency(unsigned int resourceId)
Declare a dependency upon a resource.
unsigned int Power_shutdown(unsigned int shutdownState, uint32_t shutdownTime)
Put the device into a shutdown state.
unsigned int Power_getConstraintMask(void)
Get the constraints that have been declared with Power.
unsigned int Power_registerNotify(Power_NotifyObj *pNotifyObj, unsigned int eventTypes, Power_NotifyFxn notifyFxn, uintptr_t clientArg)
Register a function to be called upon a specific power event.
Linked List interface for use in drivers.