|
xWRL6432 MMWAVE-L-SDK
05.04.00.01
|
|
Go to the documentation of this file.
358 #include <drivers/utils/List.h>
387 #define Power_NOTIFYDONE (0)
388 #define Power_NOTIFYERROR (-1)
394 #define Power_SOK (0)
395 #define Power_EFAIL (-1)
396 #define Power_EINVALIDINPUT (-2)
397 #define Power_EINVALIDPOINTER (-3)
398 #define Power_ECHANGE_NOT_ALLOWED (-4)
399 #define Power_EBUSY (-5)
405 #define Power_ACTIVE (1U)
406 #define Power_ENTERING_DEEPSLEEP (2U)
407 #define Power_EXITING_DEEPSLEEP (3U)
408 #define Power_ENTERING_SLEEP (4U)
409 #define Power_EXITING_SLEEP (5U)
410 #define Power_ENTERING_IDLE (6U)
411 #define Power_EXITING_IDLE (7U)
412 #define Power_CHANGING_PERF_LEVEL (8U)
418 typedef void (*Power_PolicyInitFxn)(void);
447 uintptr_t eventArg, uintptr_t clientArg);
716 uint_fast16_t eventTypes,
718 uintptr_t clientArg);
950 int_fast16_t Power_shutdown(uint_fast16_t shutdownState,
951 uint_fast32_t shutdownTime);
void(* Power_PolicyFxn)(unsigned long long sleepTimeus)
Power policy function pointer.
Definition: power.h:423
Power notify object structure.
Definition: power.h:459
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:461
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:378
Power_NotifyFxn notifyFxn
Definition: power.h:462
uintptr_t clientArg
Definition: power.h:463
@ POWER_NONE
Definition: power.h:380
@ POWER_LPDS
Definition: power.h:377
void Power_setLowPowModeTaken(Power_SleepState mode)
Power_SleepState Power_getLowPowModeTaken()
Power_SleepState
Definition: power.h:376
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:367
List_Elem link
Definition: power.h:460
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:369
@ POWER_IDLE
Definition: power.h:379
@ Power_TOTAL_LATENCY
Definition: power.h:368
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:446
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.