31 #ifndef _IOT_HAL_POWER_H_ 32 #define _IOT_HAL_POWER_H_ 45 #define IOT_POWER_SUCCESS ( 0 ) 46 #define IOT_POWER_INVALID_VALUE ( 1 ) 47 #define IOT_POWER_NOT_INITIALIZED ( 2 ) 48 #define IOT_POWER_GET_FAILED ( 3 ) 49 #define IOT_POWER_SET_FAILED ( 4 ) 50 #define IOT_POWER_FUNCTION_NOT_SUPPORTED ( 5 ) 55 struct IotPowerDescriptor; 94 typedef struct IotPowerWakeupSources
105 typedef enum IotPowerIoctlRequest
147 void * pvUserContext );
230 void * pvUserContext );
251 void *
const pvBuffer );
IotPowerIdleMode_t
Different Idle mode mappings to the threshold values set using the IOCTLs.
Definition: iot_power.h:80
Definition: iot_power.h:112
int32_t iot_power_ioctl(IotPowerHandle_t const pxPowerHandle, IotPowerIoctlRequest_t xRequest, void *const pvBuffer)
iot_power_ioctl is used to set power configuration and power properties like Wakeup time thresholds...
Definition: iot_power.h:73
uint16_t usLength
Definition: iot_power.h:98
int32_t iot_power_reset_mode(IotPowerHandle_t const pxPowerHandle)
iot_power_reset_mode is used to reset the mode (i,e remove the vote to set mode). When reset mode is ...
int32_t iot_power_set_mode(IotPowerHandle_t const pxPowerHandle, IotPowerMode_t xMode)
iot_power_set_mode is used to set or change the power mode to a specific mode. The actual changes mad...
struct IotPowerDescriptor * IotPowerHandle_t
IotPowerHandle_t type is the power handle returned by calling iot_power_open() this is initialized in...
Definition: iot_power.h:62
Definition: iot_power.h:71
IotPowerMode_t
Power modes supported by the driver. These power modes may perform different actions on different pla...
Definition: iot_power.h:69
Definition: iot_power.h:107
Definition: iot_power.h:113
Definition: iot_power.h:85
Wakeup source information.
Definition: iot_power.h:94
Definition: iot_power.h:82
int32_t iot_power_close(IotPowerHandle_t const pxPowerHandle)
iot_power_close is used to de-initialize power driver.
Definition: iot_power.h:128
Definition: iot_power.h:72
Definition: iot_power.h:83
Definition: iot_power.h:118
uint8_t * pucWakeupSources
Definition: iot_power.h:96
IotPowerHandle_t iot_power_open(void)
iot_power_open is used to Initialize the CPU power management driver. power_open sets up the default ...
void(* IotPowerCallback_t)(bool bIdleState, void *pvUserContext)
This callback type is used to set a callback for idle enter and exit notification callback type...
Definition: iot_power.h:146
Definition: iot_power.h:125
Definition: iot_power.h:123
int32_t iot_power_get_mode(IotPowerHandle_t const pxPowerHandle, IotPowerMode_t *xMode)
iot_power_get_mode is used to get the current power mode the target is in.
Definition: iot_power.h:130
void iot_power_set_callback(IotPowerHandle_t const pxPowerHandle, IotPowerCallback_t xCallback, void *pvUserContext)
iot_power_set_callback is used to set the callback to be called when the target is entering low power...
IotPowerIoctlRequest_t
Ioctl request types.
Definition: iot_power.h:105
Definition: iot_power.h:119
Definition: iot_power.h:87
Definition: iot_power.h:74