![Logo](ti_logo.svg) |
xWRL6432 MMWAVE-L-SDK
05.05.00.00
|
|
Go to the documentation of this file.
348 #include <drivers/utils/List.h>
377 #define Power_NOTIFYDONE (0)
378 #define Power_NOTIFYERROR (-1)
384 #define Power_SOK (0)
385 #define Power_EFAIL (-1)
386 #define Power_EINVALIDINPUT (-2)
387 #define Power_EINVALIDPOINTER (-3)
388 #define Power_ECHANGE_NOT_ALLOWED (-4)
389 #define Power_EBUSY (-5)
395 #define Power_ACTIVE (1U)
396 #define Power_ENTERING_DEEPSLEEP (2U)
397 #define Power_EXITING_DEEPSLEEP (3U)
398 #define Power_ENTERING_SLEEP (4U)
399 #define Power_EXITING_SLEEP (5U)
400 #define Power_ENTERING_IDLE (6U)
401 #define Power_EXITING_IDLE (7U)
402 #define Power_CHANGING_PERF_LEVEL (8U)
408 typedef void (*Power_PolicyInitFxn)(void);
437 uintptr_t eventArg, uintptr_t clientArg);
706 uint_fast16_t eventTypes,
708 uintptr_t clientArg);
940 int_fast16_t Power_shutdown(uint_fast16_t shutdownState,
941 uint_fast32_t shutdownTime);
void(* Power_PolicyFxn)(unsigned long long sleepTimeus)
Power policy function pointer.
Definition: power.h:413
Power notify object structure.
Definition: power.h:449
void Power_unregisterNotify(Power_NotifyObj *pNotifyObj)
Unregister previously registered notifications.
void Power_setPolicy(Power_PolicyFxn policy)
Set a new Power policy.
uint_fast16_t Power_getTransitionState(void)
Get the current transition state of the Power Manager.
int_fast16_t Power_setDependency(uint_fast16_t resourceId)
Declare a dependency upon a resource.
int_fast16_t Power_releaseDependency(uint_fast16_t resourceId)
Release a previously declared dependency.
void Power_idleFunc(unsigned long long sleepTimeus)
Power function to be added to the application idle loop.
void Power_setThresholds(Power_SleepState sleepState, uint32_t latencyTime)
uint_fast32_t Power_getConstraintMask(void)
Get the constraints that have been declared with Power.
uint_fast16_t eventTypes
Definition: power.h:451
int_fast16_t Power_releaseConstraint(uint_fast16_t constraintId)
Release a previously declared constraint.
void Power_enablePolicy(void)
Enable the configured power policy to run when the CPU is idle.
@ POWER_SLEEP
Definition: power.h:368
Power_NotifyFxn notifyFxn
Definition: power.h:452
uintptr_t clientArg
Definition: power.h:453
@ POWER_NONE
Definition: power.h:370
@ POWER_LPDS
Definition: power.h:367
void Power_setLowPowModeTaken(Power_SleepState mode)
Power_SleepState Power_getLowPowModeTaken()
Power_SleepState
Definition: power.h:366
int_fast16_t Power_sleep(uint_fast16_t sleepState)
Transition the device into a sleep state.
int_fast16_t Power_init(void)
Power initialization function.
int_fast16_t Power_getDependencyCount(uint_fast16_t resourceId)
Get the current dependency count for a resource.
Power_LatencyType
Definition: power.h:357
List_Elem link
Definition: power.h:450
uint32_t Power_getTransitionLatency(Power_SleepState sleepState, Power_LatencyType type)
Get the hardware transition latency for a sleep state.
int_fast16_t Power_setConstraint(uint_fast16_t constraintId)
Declare an operational constraint.
void Power_setTransitionLatency(Power_SleepState sleepState, Power_LatencyType type, uint32_t latencyTime)
int_fast16_t Power_registerNotify(Power_NotifyObj *pNotifyObj, uint_fast16_t eventTypes, Power_NotifyFxn notifyFxn, uintptr_t clientArg)
Register a function to be called upon a specific power event.
@ Power_RESUME_LATENCY
Definition: power.h:359
@ POWER_IDLE
Definition: power.h:369
@ Power_TOTAL_LATENCY
Definition: power.h:358
int_fast16_t(* Power_NotifyFxn)(uint_fast16_t eventType, uintptr_t eventArg, uintptr_t clientArg)
Power notify callback function used with the Power_registerNotify()
Definition: power.h:436
int_fast16_t Power_setPerformanceLevel(uint_fast16_t level)
Set the MCU performance level.
uint_fast16_t Power_getPerformanceLevel(void)
Get the current performance level.
uint32_t Power_getThresholds(Power_SleepState sleepState)
bool Power_disablePolicy(void)
Disable the configured power policy from running when the CPU is idle.