350 #ifndef ti_drivers_Power__include 351 #define ti_drivers_Power__include 359 #include <ti/devices/DeviceFamily.h> 370 #define Power_TOTAL (1U) 371 #define Power_RESUME (2U) 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_SLEEP (2U) 397 #define Power_EXITING_SLEEP (3U) 398 #define Power_ENTERING_SHUTDOWN (4U) 399 #define Power_CHANGING_PERF_LEVEL (5U) 405 typedef void (*Power_PolicyInitFxn)(void); 433 typedef int_fast16_t (*
Power_NotifyFxn)(uint_fast16_t eventType, uintptr_t eventArg, uintptr_t clientArg);
691 uint_fast16_t eventTypes,
693 uintptr_t clientArg);
936 int_fast16_t
Power_shutdown(uint_fast16_t shutdownState, uint_fast32_t shutdownTime);
961 int_fast16_t
Power_sleep(uint_fast16_t sleepState);
982 #if (DeviceFamily_PARENT == DeviceFamily_PARENT_CC13X0_CC26X0 || \ 983 DeviceFamily_PARENT == DeviceFamily_PARENT_CC13X1_CC26X1 || \ 984 DeviceFamily_PARENT == DeviceFamily_PARENT_CC13X2_CC26X2 || \ 985 DeviceFamily_PARENT == DeviceFamily_PARENT_CC13X4_CC26X3_CC26X4) 986 #include <ti/drivers/power/PowerCC26XX.h> 987 #elif (DeviceFamily_ID == DeviceFamily_ID_CC3220 || DeviceFamily_ID == DeviceFamily_ID_CC3200) 988 #include <ti/drivers/power/PowerCC32XX.h> 989 #elif (DeviceFamily_PARENT == DeviceFamily_PARENT_CC23X0) 991 #elif (DeviceFamily_PARENT == DeviceFamily_PARENT_CC27XX) 993 #elif (DeviceFamily_PARENT == DeviceFamily_PARENT_CC35XX) 994 #include <ti/drivers/power/PowerWFF3.h> uint_fast32_t Power_getTransitionLatency(uint_fast16_t sleepState, uint_fast16_t type)
Get the hardware transition latency for a sleep state.
int_fast16_t Power_getDependencyCount(uint_fast16_t resourceId)
Get the current dependency count for a resource.
Power manager interface for CC23X0 devices.
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.
Power_NotifyFxn notifyFxn
Definition: Power.h:449
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:433
int_fast16_t Power_setPerformanceLevel(uint_fast16_t level)
Set the MCU performance level.
int_fast16_t Power_setConstraint(uint_fast16_t constraintId)
Declare an operational constraint.
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.
void(* Power_PolicyFxn)(void)
Power policy function pointer.
Definition: Power.h:410
bool Power_disablePolicy(void)
Disable the configured power policy from running when the CPU is idle.
uintptr_t clientArg
Definition: Power.h:450
int_fast16_t Power_shutdown(uint_fast16_t shutdownState, uint_fast32_t shutdownTime)
Put the device into a shutdown state.
uint_fast16_t eventTypes
Definition: Power.h:448
uint_fast16_t Power_getPerformanceLevel(void)
Get the current performance level.
void Power_setPolicy(Power_PolicyFxn policy)
Set a new Power policy.
Power notify object structure.
Definition: Power.h:445
Power manager interface for CC27XX.
int_fast16_t Power_releaseDependency(uint_fast16_t resourceId)
Release a previously declared dependency.
void Power_unregisterNotify(Power_NotifyObj *pNotifyObj)
Unregister previously registered notifications.
void Power_reset(void)
Resets the system and causes it to reboot.
uint_fast32_t Power_getConstraintMask(void)
Get the constraints that have been declared with Power.
uint_fast16_t Power_getTransitionState(void)
Get the current transition state of the Power Manager.
List_Elem link
Definition: Power.h:447
int_fast16_t Power_releaseConstraint(uint_fast16_t constraintId)
Release a previously declared constraint.
int_fast16_t Power_setDependency(uint_fast16_t resourceId)
Declare a dependency upon a resource.
void Power_enablePolicy(void)
Enable the configured power policy to run when the CPU is idle.
void Power_idleFunc(void)
Power function to be added to the application idle loop.
Linked List interface for use in drivers.